[Résolu] Pb avec savedefault de Grub

Bonjour.
Depuis la mise à jour de mon systeme en Lenny et du Noyau 2.6.26 je n’arrive plus à utiliser la commande savedefault.

Le fichier /boot/grub/default contient la valeur 1 suite à la commande grub-set-default 1
Mais au reboot il démarre toujours sur la première entrée ?
d’ou peut venir le problème ?
voici mon fichier menu.lst

[code]# menu.lst - See: grub(8), info grub, update-grub(8)

grub-install(8), grub-floppy(8),

grub-md5-crypt, /usr/share/doc/grub

and /usr/share/doc/grub-doc/.

default num

Set the default entry to the entry number NUM. Numbering starts from 0, and

the entry number 0 is the default if the command is not used.

You can specify ‘saved’ instead of a number. In this case, the default entry

is the entry saved with the command ‘savedefault’.

default saved

timeout sec

Set a timeout, in SEC seconds, before automatically booting the default entry

(normally the first entry defined).

timeout 5

## End Default Options

title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.26-2-686
savedefault

title PowerOff
root (hd0,0)
savedefault 0
halt

title Debian GNU/Linux, kernel 2.6.26-2-686 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.26-2-686

title Debian GNU/Linux, kernel 2.6.18vdr
root (hd0,0)
kernel /boot/vmlinuz-2.6.18vdr root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18vdr

title Debian GNU/Linux, kernel 2.6.18vdr (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18vdr root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.18vdr

title Debian GNU/Linux, kernel 2.6.8-2-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.8-2-386

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.8-2-386

END DEBIAN AUTOMAGIC KERNELS LIST[/code]

la version de Grub

root@vdrbox:~# apt-cache policy grub grub: Installé : 0.97-47lenny2 Candidat : 0.97-47lenny2 Table de version : *** 0.97-47lenny2 0 500 http://ftp.fr.debian.org lenny/main Packages 100 /var/lib/dpkg/status root@vdrbox:~#

le problème c’est que savedefault n’est pas ecrit partout c’est pour ça

[code]# menu.lst - See: grub(8), info grub, update-grub(8)

grub-install(8), grub-floppy(8),

grub-md5-crypt, /usr/share/doc/grub

and /usr/share/doc/grub-doc/.

default num

Set the default entry to the entry number NUM. Numbering starts from 0, and

the entry number 0 is the default if the command is not used.

You can specify ‘saved’ instead of a number. In this case, the default entry

is the entry saved with the command ‘savedefault’.

default saved

timeout sec

Set a timeout, in SEC seconds, before automatically booting the default entry

(normally the first entry defined).

timeout 5

## End Default Options

title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.26-2-686
savedefault

title PowerOff
root (hd0,0)
savedefault 0
halt

title Debian GNU/Linux, kernel 2.6.26-2-686 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.26-2-686

title Debian GNU/Linux, kernel 2.6.18vdr
root (hd0,0)
kernel /boot/vmlinuz-2.6.18vdr root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18vdr
savedefault

title Debian GNU/Linux, kernel 2.6.18vdr (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18vdr root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.18vdr

title Debian GNU/Linux, kernel 2.6.8-2-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.8-2-386

END DEBIAN AUTOMAGIC KERNELS LIST[/code]

voila je t’ai rajouté quelque savedefault mais pas partout parceque pas super d’avoir les ligne avec single alors rajouter un savedefault derriere c’est du suicide

Merci te ton aide
Je viens d’essayer et c’est pareil
Par contre je viens de ma rendre compte que la version de Grub lors du démarrage est la 0.95 alors que sur la console j’avais 0.97 ?

root@vdrbox:~# apt-cache policy grub grub: Installé : 0.97-47lenny2 Candidat : 0.97-47lenny2 Table de version : *** 0.97-47lenny2 0 500 http://ftp.fr.debian.org lenny/main Packages 100 /var/lib/dpkg/status root@vdrbox:~#

Bizarre Non

aucune idée désolé

est ce que peut reinstaller Grub ?
si oui comment ?

oui bien sur on peut toujours mais je voit pas l’interet et surtout tu si tu foire ton coup tu te retrouve avec un pc qui ne pourra pas démarré

Je viens de trouver un message qui parle de ce problème:
http://dvbkivabien2.info/viewtopic.php?f=21&t=9404&hilit=+nvram+wakeup+
ou puis je trouver ce paquet ?
grub_0.95+cvs20040624-19_i386.deb

après 2 3 recherche sur google je n’ai pas trouvé autre chose que des infos sur ce que tu viens de dire lol
il faudrait demander au autre

grub-install ?

Bonjour,

Peux tu tenter ceci :

Remplace :title PowerOff root (hd0,0) savedefault 0 halt par title PowerOff root (hd0,0) savedefault 0 cat /boot/grub/default halt

Merci de votre aide
Je veux bien essayer ceci mais le pb est que j’arrive pas à booter sur un autre entrée que la 0 la première.

J’ai désinstallé Grub et installé les sources et depuis cela remarche mais en modifiant la commande dans mon script d’arrêt de VDR.

ne marchait plus alors j’ai mis