Bon alors j'ai un problème de grub. Après quelques tatonnements j'ai réussi à afficher le menu de grub, éditer 40_custom pour chainload, rajouté plusieurs entrées pour lui faire trouver le menu.lst de Fedora (j'ai bien vérifié qu'il existe), rendu 40_custom exécutable, updaté grub (sudo update-grub et là c'est le drame, je reçois ce message :
invalid signature
C'est pourtant la bonne partition, j'ai eu le réflexe d'appuyer sur e pour changer manuellement dans le menu de boot l'entrée, et j'ai changé root de 0,0 à 0,6 sans résultat, je suis sûr que 0,4 est le bon paramètre (la partition de boot est sur sda3, elle vient après la partition Ubuntu qui répond à 0,3)...
Bref, je suis bloqué et j'ai besoin encore de votre précieuse aide.
Edit : je donne des détails :
sudo fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 1 3187 25599546 83 Linux
/dev/sda2 29698 30401 5654880 5 Extended
/dev/sda3 * 3188 3213 204800 83 Linux
/dev/sda4 3213 29697 212736775 8e Linux LVM
/dev/sda5 29698 30401 5654848+ 82 Linux swap / Solaris
Partition table entries are not in disk order
sudo gedit /etc/grub.d/40_custom:
#!/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 "Grub 1 de Fedora 12" {
set root=(hd0,3)
chainloader +1
}
menuentry "Grub 1 de Fedora 12" {
set root=(hd0,4)
chainloader +1
}
sudo gedit /boot/grub/grub.cfg:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ffba7f9e-adce-4dce-a89f-e25eeac7dcdc
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ffba7f9e-adce-4dce-a89f-e25eeac7dcdc
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ffba7f9e-adce-4dce-a89f-e25eeac7dcdc ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ffba7f9e-adce-4dce-a89f-e25eeac7dcdc
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ffba7f9e-adce-4dce-a89f-e25eeac7dcdc ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### 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 "Grub 1 de Fedora 12" {
set root=(hd0,3)
chainloader +1
}
menuentry "Grub 1 de Fedora 12" {
set root=(hd0,4)
chainloader +1
}
### END /etc/grub.d/40_custom ###
Le menu de Fedora que je veux appeler par grub2
sudo gedit /media/464a2aa8-d553-4abb-9180-66294db38cd8/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_p3nguinlaptop-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.31.12-174.2.3.fc12.x86_64)
root (hd0,2)
kernel /vmlinuz-2.6.31.12-174.2.3.fc12.x86_64 ro root=/dev/mapper/vg_p3nguinlaptop-lv_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=fr-pc rhgb quiet
initrd /initramfs-2.6.31.12-174.2.3.fc12.x86_64.img
title Fedora (2.6.31.5-127.fc12.x86_64)
root (hd0,2)
kernel /vmlinuz-2.6.31.5-127.fc12.x86_64 ro root=/dev/mapper/vg_p3nguinlaptop-lv_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=fr-pc rhgb quiet
initrd /initramfs-2.6.31.5-127.fc12.x86_64.img