[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problème grub2 suite update



Bonsoir à tous (et bon noël pour ceux qui le fêtent),

Il m'arrive un truc embêtant : mon grub2 ne veut plus démarrer suite à
une mise à jour sur ma sid/squeeze.

Après recherche, il apparait que je ne suis pas le seul :
http://forum.debian-fr.org/viewtopic.php?f=3&t=24708



J'ai exactement le même message d'erreur que razli :
----------------------------------------------------
GRUB loading.
Welcome to grub!

Entering rescue mode...
error: the symbol 'grub_printf_' not found
grub rescue>
----------------------------------------------------




Vu qu'il a réussi a se debugger avec aptitude, j'ai essayé la même
technique que lui a part que j'utilise un cd netinstall de lenny.
1 - Montage du disque en mode rescue
2 - Réinstallation des paquets à problème :
# aptitude reinstall grub grup-pc grub-common

Sans succès mais je pense que ça vient de ma configuration grub2 +
lvm2 + luks parce que quand j'édites le ficher grub.cfg il me parait
plus qu'étrange :

----------------------------------------------------
#
# 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
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set febef3a4-e631-445a-81d7-449d4bd64c95
if loadfont /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
set locale_dir=/boot/grub/locale
set lang=
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-amd64" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set febef3a4-e631-445a-81d7-449d4bd64c95
	linux	//vmlinuz-2.6.30-2-amd64 root=/dev/mapper/mimir-root ro  quiet vga=0x0318
	initrd	//initrd.img-2.6.30-2-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-amd64 (recovery mode)" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set febef3a4-e631-445a-81d7-449d4bd64c95
	linux	//vmlinuz-2.6.30-2-amd64 root=/dev/mapper/mimir-root ro single
	initrd	//initrd.img-2.6.30-2-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-amd64" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set febef3a4-e631-445a-81d7-449d4bd64c95
	linux	//vmlinuz-2.6.26-2-amd64 root=/dev/mapper/mimir-root ro  quiet vga=0x0318
	initrd	//initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-amd64 (recovery mode)" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set febef3a4-e631-445a-81d7-449d4bd64c95
	linux	//vmlinuz-2.6.26-2-amd64 root=/dev/mapper/mimir-root ro single
	initrd	//initrd.img-2.6.26-2-amd64
}
### END /etc/grub.d/10_linux ###

### 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.
### END /etc/grub.d/40_custom ###
----------------------------------------------------




Ce que je trouve étrange ce sont les chemins comme ceux-ci :
----------------------------------------------------
[...]
set locale_dir=/boot/grub/locale
[...]
linux	//vmlinuz-2.6.26-2-amd64 root=/dev/mapper/mimir-root ro single
[...]
----------------------------------------------------
J'ai l'impression qu'il manque aussi les modules lié au lvm et à luks non ?




J'ai aussi ce message d'erreur en faisant la réinstallation des
paquets mais je ne sais pas s'il y a une lien. D'ailleurs je ne vois
pas où grub-probe peut aller chercher hde. Effectivement mon pc est
normalement sous hde mais en l'occurence en chroot il est hda.
----------------------------------------------------
Setting up grub-common (1.98~20091210-1) ...
Setting up grub-pc (1.98~20091210-1) ...
/usr/sbin/grub-probe: error: Cannot stat `/dev/hde'
Invalid device `/dev/hde'.
Try ``/usr/sbin/grub-setup --help'' for more information.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.30-2-amd64
Found initrd image: /boot/initrd.img-2.6.30-2-amd64
Found linux image: /boot/vmlinuz-2.6.26-2-amd64
Found initrd image: /boot/initrd.img-2.6.26-2-amd64
done
----------------------------------------------------



Je sais qu'il y a des fondus de Grub2, si quelqu'un pouvait m'aider,
ça serait super !
Même juste me donner le contenu de vos grub.cfg si vous avez la même
config que moi :)

--
Kévin
Membre de Breizhtux, GULL de Saint-Brieuc et de Bretagne -
http://www.breizhtux.info
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
http://identi.ca/khi - http://twitter.com/kh_i - http://system-linux.eu


Reply to: