Debian grub2 et gentoo

salut,

je viens d’installer une gentoo en partant du stage 3 à l’aide de ma debian sid…

tout s’est très bien passé sauf pour le grub…

je précise que gentoo est sur mon deuxième disque dur :

sdb1 : /boot
sdb2 : swap
sdb3 : /

j’ai fait plusieurs essais pour lancer gentoo avec le grub de debian, toujours la même réponse de la part de grub : file not find…

voila mon grub :

[code]

BEGIN /etc/grub.d/10_linux

menuentry “Debian GNU/Linux, with Linux 2.6.32-3-amd64” --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root=’(hd0,5)‘
search --no-floppy --fs-uuid --set 6f32e405-12b4-4395-93d3-96f97c99cef9
echo Loading Linux 2.6.32-3-amd64 …
linux /boot/vmlinuz-2.6.32-3-amd64 root=UUID=6f32e405-12b4-4395-93d3-96f97c99cef9 ro quiet
echo Loading initial ramdisk …
initrd /boot/initrd.img-2.6.32-3-amd64
}
menuentry “Debian GNU/Linux, with Linux 2.6.32-3-amd64 (recovery mode)” --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root=’(hd0,5)‘
search --no-floppy --fs-uuid --set 6f32e405-12b4-4395-93d3-96f97c99cef9
echo Loading Linux 2.6.32-3-amd64 …
linux /boot/vmlinuz-2.6.32-3-amd64 root=UUID=6f32e405-12b4-4395-93d3-96f97c99cef9 ro single
echo Loading initial ramdisk …
initrd /boot/initrd.img-2.6.32-3-amd64
}
menuentry “Debian GNU/Linux, with Linux 2.6.30-1-amd64” --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root=’(hd0,5)‘
search --no-floppy --fs-uuid --set 6f32e405-12b4-4395-93d3-96f97c99cef9
echo Loading Linux 2.6.30-1-amd64 …
linux /boot/vmlinuz-2.6.30-1-amd64 root=UUID=6f32e405-12b4-4395-93d3-96f97c99cef9 ro quiet
echo Loading initial ramdisk …
initrd /boot/initrd.img-2.6.30-1-amd64
}
menuentry “Debian GNU/Linux, with Linux 2.6.30-1-amd64 (recovery mode)” --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root=’(hd0,5)'
search --no-floppy --fs-uuid --set 6f32e405-12b4-4395-93d3-96f97c99cef9
echo Loading Linux 2.6.30-1-amd64 …
linux /boot/vmlinuz-2.6.30-1-amd64 root=UUID=6f32e405-12b4-4395-93d3-96f97c99cef9 ro single
echo Loading initial ramdisk …
initrd /boot/initrd.img-2.6.30-1-amd64
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/30_os-prober

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/30_otheros

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sdb3.

menuentry “Gentoo Linux 2.6.32 (on /dev/sdb3)” {
set root=(hd1,1)
search --no-floppy --fs-uuid --set 7064e832-06cf-4b9c-8e9e-64cff1a465da
linux /boot/kernel-2.6.32-gentoo-perso-r7 root=/dev/sdb3
}

END /etc/grub.d/30_otheros

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

menuentry “Gentoo Linux 2.6.32 (on /dev/sdb3)” {

Partition where the kernel image (or operating system) is located

root (hd1,0)
kernel /boot/kernel-2.6.32-gentoo-perso-r7 root=/dev/sdb1

END /etc/grub.d/40_custom ###[/code]

et le fichier /etc/grub.d/40_custom, que j’ai rentré en m’aidant du tuto… à mon avis soit je me trompe de partitions, soit il manque des choses…

[code]
#!/bin/sh
exec tail -n +3 $0

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

menuentry “Gentoo Linux 2.6.32 (on /dev/sdb3)” {

Partition where the kernel image (or operating system) is located

root (hd1,0)
kernel /boot/kernel-2.6.32-gentoo-perso-r7 root=/dev/sdb1[/code]

voila merci de m’aider !!!

Salut,

#!/bin/sh
exec tail -n +3 $0

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

menuentry “Gentoo Linux 2.6.32 (on /dev/sdb3)” {

Partition where the kernel image (or operating system) is located

root (hd1,0)
kernel /boot/kernel-2.6.32-gentoo-perso-r7 root=/dev/sdb1

sdb1 : /boot
sdb2 : swap
sdb3 : /

je viens de faire la modif et toujours pareil… j’ai directement effectué la modif dans le fichier : /etc/grub.d/30_otheros, puis update-grub…
voila le grub modifié :

[code]# This entry automatically added by the Debian installer for an existing

linux installation on /dev/sdb3.

menuentry “Gentoo Linux 2.6.32 (on /dev/sdb3)” {
set root=(hd1,1)
search --no-floppy --fs-uuid --set 7064e832-06cf-4b9c-8e9e-64cff1a465da
linux /boot/kernel-2.6.32-gentoo-perso-r7 root=/dev/sdb1
}
[/code]

Bonjour,
C’est grub2 ?
que donnerai un truc comme ça:

menuentry "Gentoo Linux 2.6.32 (on /dev/sdb3)" { insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid "UUID de ta partition" linux /boot/kernel-2.6.32-gentoo-perso-r7 root=/dev/sdb1 ro quiet }
Oups, grillé par ggoodluck47 :laughing:
Edit;= doublement grillé :005
:arrow_right: :arrow_right:

Re,

Et qui fais update-grub après la modif :laughing:

comment ça ? après la modif il fait comme d’habitude sauf que dans le fichiet /boot/grub/grub.c, la modif est prise en compte…