Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[GRUB] Partition de boot [RESOLU]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sat Sep 20, 2008 7:43 am    Post subject: [GRUB] Partition de boot [RESOLU] Reply with quote

Bonjour à tous! Je suis à l'étape de rédémarrage de la machine et lors du démarrage du grub je n'ai pas le choix de Gentoo!! J'ai donc changé le menu.lst sur ma Ubuntu et rajouté ceci:
Code:

title      Gentoo
root      (hd1,7)
savedefault
chainloader   +1



En effet Gentoo est sur mon second DD externe et sur la 7ème partition..Mais j'ai une erreur 13 lorsque je veux booter dessus..Comment faire? Merci!


Last edited by Silvering on Sat Sep 27, 2008 1:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1887
Location: 127.0.0.1

PostPosted: Sat Sep 20, 2008 9:01 am    Post subject: Reply with quote

Salut,

Quote:
En effet Gentoo est sur mon second DD externe et sur la 7ème partition..

Alors c'est root (hd1,6) et non 7.
Lis le handbook, configuration de grub (clic), Code Listing 2.3, tu dois dire à grub quel kernel il doit chercher.
Dans ton code ci-dessus, les 2 dernières lignes sont inutiles.
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sat Sep 20, 2008 9:14 am    Post subject: Reply with quote

Alors je pense m'approché du but. En effet j'avais oublié que sdb7 correspond à (hd1,6).. En mettant (hd1,6) je rentre dans un nouveau grub avec Gentoo <nom du noyau>, j'édite le boot en (hd1,6), je boote dessus et ils m'affichent Error 15: File don't exist..
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1887
Location: 127.0.0.1

PostPosted: Sat Sep 20, 2008 9:18 am    Post subject: Reply with quote

ok, donc tu as 2 grub. Vérifie la configuration du 2ème alors.
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sat Sep 20, 2008 9:21 am    Post subject: Reply with quote

Voici le grub.conf (le second):

Code:

# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.24-r5
root (hd1,6)
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

# vim:ft=conf:

Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sat Sep 20, 2008 12:42 pm    Post subject: Reply with quote

Je crois que la version du kernel qui est inscrite dans grub.conf n'est pas la bonne. Comment connaitre la version de mon kernel? Aussi je vois genkernel, or j'ai installé le noyau manuellement et si je me souvient bien genkernel permet de le faire automatiquement et ceux n'est pas mon cas.
Back to top
View user's profile Send private message
Ezka
Guru
Guru


Joined: 17 Feb 2005
Posts: 352
Location: par là, mais vraiment ...

PostPosted: Sat Sep 20, 2008 1:00 pm    Post subject: Reply with quote

En cas de problème tu peux aller voir là : http://www.gentoo.org/doc/fr/grub-error-guide.xml

Sinon ce qui est important dans ton menu.lst :
Quote:
title <- ça on s'en fiche tu mets ce que tu veux
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 (<- là c'est important, tu nommes le fichier de ton kernel comme tu veux toto.titi mais il faut que son chemin et nom soient correct) root=/dev/ram0 real_root=/dev/sda3 (<- ça aussi mais ça dépend de ton genkernel, si tu le fais à la main je pense que tu peux te contenter de root=...)
initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5 (<- pareil que le kernel, tu peux le nommer comme tu veux, mais il faut que le nom ici soit correct)


Sinon avoir 2 grub je vois pas l'intérêt, celui qui est lancé au boot est important l'autre pas, tu choisis celui que tu veux lancer, ensuite tu adaptes son menu.lst.
_________________
Ez.
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sat Sep 20, 2008 1:13 pm    Post subject: Reply with quote

Oki merci par contre comment se rappeller de la version du kernel. Je sais que sa commence par 2.6.xx-gentoo-ry, il me manque x et y..
Back to top
View user's profile Send private message
_Seth_
Guru
Guru


Joined: 15 Sep 2004
Posts: 539
Location: encore paumé dans un labo ;)

PostPosted: Sat Sep 20, 2008 6:56 pm    Post subject: Reply with quote

le plus facile c'est que tu démarres avec ubuntu et que tu montes ton partition gentoo. Tu regardes dans le répertoire boot le nom exact du kernel ;)
_________________
no tears to cry, no feelings left
the species has amused itself to death
amused itself to death
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sat Sep 20, 2008 7:12 pm    Post subject: Reply with quote

J'ai bien monté la partition sur Ubuntu mais je n'ai pas de kernel.. Dans le dossier j'ai:
-sous dossier grub
-fichier bzImge
-sous dossier boot (qui n'est rien d'autre qu'un renvoi à la racine de cette partition)
Back to top
View user's profile Send private message
Tuxicomane
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 290
Location: Val-de-Marne, FRANCE

PostPosted: Sat Sep 20, 2008 7:27 pm    Post subject: Reply with quote

bzImage c'est ton kernel !

Mais, dis donc, tu devrais noter au fur à mesure ce que tu fais si tu n'es pas capable de te rappeller quel nom tu as donné à ton kernel ...
Back to top
View user's profile Send private message
_Seth_
Guru
Guru


Joined: 15 Sep 2004
Posts: 539
Location: encore paumé dans un labo ;)

PostPosted: Sat Sep 20, 2008 7:35 pm    Post subject: Reply with quote

l'archive bzImage est ton kernel. Tu peux la renommer comme tu le souhaites ;) Habituellement, c'est quelque chose comme vmlinuz-X.Y.Z-identifiant, où l'identifiant sert à repérer les différentes versions d'un même noyau.
Tu peux retrouver la version de ton noyau sans faire de chroot en affichant le répertoire vers lequel pointe le lien /usr/src/linux sur ta partition gentoo (ls -l).

Sinon, compiler ton noyau avec la commande:
Code:
make install

permet de copier automatiquement la bzImage (ainsi que le .config et le System.map) dans /boot, en la renommant de façon automatique (kernel-X.Y.Z-gentoo-rV). En prime, il y a un symlink qui pointe vers le dernier noyau compilé ;)
_________________
no tears to cry, no feelings left
the species has amused itself to death
amused itself to death
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sat Sep 20, 2008 7:41 pm    Post subject: Reply with quote

Alors attend si j'ai bien compris sur Ubuntu je me place dans la partition ou il y a l'image du kernel et je fait un make install c'est ça?
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sat Sep 20, 2008 8:00 pm    Post subject: Reply with quote

J'ai fais ce que tu m'a ditdonc voici mon grub.conf:

title Gentoo
kernel /boot/vmlinuz-2.6.25-gentoo-r7
root=/dev/ram0 real_root=/dev/sdb7
initrd /boot/vmlinuz-2.6.25-gentoo-r7

Quand je boot dessus: Error 11: Unrecognized device string
Back to top
View user's profile Send private message
_Seth_
Guru
Guru


Joined: 15 Sep 2004
Posts: 539
Location: encore paumé dans un labo ;)

PostPosted: Sat Sep 20, 2008 8:46 pm    Post subject: Reply with quote

Silvering wrote:
Alors attend si j'ai bien compris sur Ubuntu je me place dans la partition ou il y a l'image du kernel et je fait un make install c'est ça?

Non ;) Si tu veux utiliser le make install, tu dois avoir fait un chroot dans ta partition gentoo.

Pour l'instant, laisse tout ça de coté. Renomme juste le bzImage qui est sur le /boot de ta partition gentoo en vmlinuz-2.6.25-gentoo-r7 et change ton grub.conf :
Code:
title Gentoo
root (hd1,6)
kernel /boot/vmlinuz-2.6.25-gentoo-r7 root=/dev/sdb7


car
Silvering wrote:
title Gentoo
kernel /boot/vmlinuz-2.6.25-gentoo-r7
root=/dev/ram0 real_root=/dev/sdb7
initrd /boot/vmlinuz-2.6.25-gentoo-r7

c'est un grub.conf pour un noyau compilé avec genkernel.
_________________
no tears to cry, no feelings left
the species has amused itself to death
amused itself to death
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sun Sep 21, 2008 7:46 am    Post subject: Reply with quote

Arf.. maintenant le problème c'est l'impossibilité de renommer:

Code:

sudo rename -f bzImage vmlinuz-2.6.25-gentoo-r7
Bareword "bzImage" not allowed while "strict subs" in use at (eval 1) line 1.
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sun Sep 21, 2008 8:53 am    Post subject: Reply with quote

Pour renommer un fichier, ce n'est pas "rename", mais "mv" qu'il faut utiliser ;)
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
Tuxicomane
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 290
Location: Val-de-Marne, FRANCE

PostPosted: Sun Sep 21, 2008 8:54 am    Post subject: Reply with quote

Je connais pas rename et l'option -f n'est pas référencée dans ma page de man ...

Tu as essayé avec mv ? :)
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sun Sep 21, 2008 9:14 am    Post subject: Reply with quote

Ok c'est bon pour ça alors j'arrive à booter mais biensur new message d'erreur:

Quote:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Back to top
View user's profile Send private message
Tuxicomane
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 290
Location: Val-de-Marne, FRANCE

PostPosted: Sun Sep 21, 2008 9:28 am    Post subject: Reply with quote

Tu as bien compilé le support pour le système de fichier de ta partition racine ( ext3 par exemple ) en dur dans le noyau et non pas en tant que module ?

Le noyau doit évidemment pouvoir accéder au système de fichier avant de pouvoir charger les modules.
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sun Sep 21, 2008 9:31 am    Post subject: Reply with quote

Ca correspond à quel paramètre dans le panneau de config du kernel?
Back to top
View user's profile Send private message
Tuxicomane
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 290
Location: Val-de-Marne, FRANCE

PostPosted: Sun Sep 21, 2008 9:35 am    Post subject: Reply with quote

Ben c'est dans File Systems :)

Mais c'est marqué dans le handbook ça ...
http://www.gentoo.org/doc/fr/handbook/handbook-x86.xml?part=1&chap=7
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sun Sep 21, 2008 9:47 am    Post subject: Reply with quote

Comme dans le handbook mon menuconfig à exactement sa:

Quote:

File systems --->
Pseudo Filesystems --->
[*] /proc file system support
[*] Virtual memory file system support (former shm fs)


<*> Reiserfs support
<*> Ext3 journalling file system support
<*> JFS filesystem support
<*> Second extended fs support
<*> XFS filesystem support

Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sun Sep 21, 2008 10:50 am    Post subject: Reply with quote

Je ne comprends pas tout à l'air nikel..dans le menuconfig du noyau..
Back to top
View user's profile Send private message
Silvering
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2008
Posts: 85

PostPosted: Sun Sep 21, 2008 4:45 pm    Post subject: Reply with quote

Personne n'a une ptite idée :lol: ? Merci!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum