Bonjour,
Le problème s’est manifesté pour beaucoup, mais en ce qui me concerne, je n’ai pas encore trouvé de solution, alors je poste:
Migration vers Grub2 sans trop de difficulté; configuration de grub2 à l’air OK, notamment grâce à cette doc.
# cat 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 ###
set default=0
if terminal_input gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_input
terminal gfxterm
fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 3fefac6a-ec6a-4d60-ac1d-bcd321ef9787
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768x32 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
set timeout=10
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 3fefac6a-ec6a-4d60-ac1d-bcd321ef9787
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-kakulupia" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 3fefac6a-ec6a-4d60-ac1d-bcd321ef9787
linux /boot/vmlinuz-2.6.30-kakulupia root=/dev/sda3 ro acpi=off quiet vga=0x0365
}
menuentry "Debian GNU/Linux, Linux 2.6.26-kakulupia" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 3fefac6a-ec6a-4d60-ac1d-bcd321ef9787
linux /boot/vmlinuz-2.6.26-kakulupia root=UUID=3fefac6a-ec6a-4d60-ac1d-bcd321ef9787 ro acpi=off quiet vga=0x0365
initrd /boot/initrd.img-2.6.26-kakulupia
}
### END /etc/grub.d/10_linux ###
### 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.
#Windows sur /dev/sda1
insmod ntfs
insmod chain
menuentry "Microsoft Windows XP" {
set root=(hd0,1)
chainloader (hd0,1)+1
boot
}
### END /etc/grub.d/40_custom ###
Le kernel Linux 2.6.26-kakulupia boot sans problème ; XP aussi.
Le kernel Linux 2.6.30-kakulupia ne boot pas et tombe en kernel panic:
VFS: Cannot open root device "sda3" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs or unknown-block(0,0)
Pid: 1, comm:swapper Not tainted 2.6.30-kakulupia #2
Call Trace:
[<c02d58cf>] ? panic+0x38/0xd8
[..........] ? mount_block_root+0x1e9/0x1fd
[..........] ? mount_root+..........
[..........] ? prepare_namespace+......
[..........] ? kernel_init+........
[..........] ? kernel_init+........
[..........] ? kernel_thread_helper+....
J’ai compilé ce kernel comme d’habitude, en suivant la doc http://ashgenesis.developpez.com/linux/kernel-debian/, avant de migrer vers Grub2.
J’ai bien tenté de remplacer, dans grub.cfg, “root=/dev/sda3” par “root=UUID=3fefac6a-ec6a-4d60-ac1d-bcd321ef9787”, sans amélioration. Je vois bien aussi que je n’ai pas de initrd.img-2.6.30-kakulupia dans /boot
# ls -l /boot/
total 22948
-rw-r--r-- 1 root root 90327 janv. 24 2009 config-2.6.26-kakulupia
-rw-r--r-- 1 root root 97374 oct. 25 00:13 config-2.6.30-kakulupia
drwxr-xr-x 3 root root 4096 nov. 12 00:45 grub
-rw-r--r-- 1 root root 9138745 nov. 10 20:40 initrd.img-2.6.26-kakulupia
-rw-r--r-- 1 root root 9127526 oct. 22 07:25 initrd.img-2.6.26-kakulupia.bak
-rw-r--r-- 1 root root 876397 janv. 24 2009 System.map-2.6.26-kakulupia
-rw-r--r-- 1 root root 1007965 oct. 25 01:08 System.map-2.6.30-kakulupia
-rw-r--r-- 1 root root 1433456 janv. 24 2009 vmlinuz-2.6.26-kakulupia
-rw-r--r-- 1 root root 1648800 oct. 25 01:08 vmlinuz-2.6.30-kakulupia
Le problème vient de Grub2 ou du kernel, de l’absence de initrd ?