Pb dans le menu.lst avec update des linux-image

Bonjour à tous,

j’ai un petit soucis quand je mets à jour mon linux-image et mes linux-headers: lors de l’update mon fichier de configuration de grub menu.lst est modifié:

au lieu d’avoir:

title		Debian GNU/Linux, kernel 2.6.26-2-amd64
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.26-2-amd64 root=/dev/sda2 ro quiet
initrd		/boot/initrd.img-2.6.26-2-amd64

title		Debian GNU/Linux, kernel 2.6.26-2-amd64 (single-user mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.26-2-amd64 root=/dev/sda2 ro single
initrd		/boot/initrd.img-2.6.26-2-amd64

title		Debian GNU/Linux, kernel 2.6.26-1-amd64
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.26-1-amd64 root=/dev/sda2 ro quiet
initrd		/boot/initrd.img-2.6.26-1-amd64

title		Debian GNU/Linux, kernel 2.6.26-1-amd64 (single-user mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.26-1-amd64 root=/dev/sda2 ro single
initrd		/boot/initrd.img-2.6.26-1-amd64

j’ai:

title		Debian GNU/Linux, kernel 2.6.26-2-amd64
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.26-2-amd64 root=/dev/sda3 ro quiet
initrd		/boot/initrd.img-2.6.26-2-amd64

title		Debian GNU/Linux, kernel 2.6.26-2-amd64 (single-user mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.26-2-amd64 root=/dev/sda3 ro single
initrd		/boot/initrd.img-2.6.26-2-amd64

title		Debian GNU/Linux, kernel 2.6.26-1-amd64
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.26-1-amd64 root=/dev/sda3 ro quiet
initrd		/boot/initrd.img-2.6.26-1-amd64

title		Debian GNU/Linux, kernel 2.6.26-1-amd64 (single-user mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.26-1-amd64 root=/dev/sda3 ro single
initrd		/boot/initrd.img-2.6.26-1-amd64

Le (hd0,1) s’est décallé en (hd0,2) et le root=/dev/sda2 s’est décallé en root=/dev/sda3

et je suis obligé de remodifier mon menu.lst: ce qui est un peu lours c’est qu’à chaque mise à jour du paquet linux-image je suis obligé de faire la même bidouille…

Je précise que j’avais avant Windows vista et que j’ai supprimer la partition correpondant pour ré-installer Windows XP. Ceci explique peut-être cela?

Quelqu’un pourrait-il m’aider?

Merci d’avance,

Vincent

update-grub (ou grub-update, je sais plus) reprend les valeurs de # kopt= et # groot= (avec le # devant, c’est normal, il faut le laisser) de menu.lst, il faut les modifier pour refléter la nouvelle organisation du disque.

Ha oui effectivment j’avais:

# kopt=root=/dev/sda3 ro
# groot=(hd0,2)

dans mon menu.lst.

Ca c’est un sujet vite résolu!!!

Merci,

:smt006

Vincent