bug-grub
[Top][All Lists]
Advanced

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

Re: Restart if boot fail


From: Alban Crequy
Subject: Re: Restart if boot fail
Date: Tue, 27 Jul 2004 15:30:29 +0200
User-agent: Mutt/1.5.6+20040523i

Le mardi 27 juillet 2004 à 14:06, Tech -  Seeyes.it a écrit:
> Hello,
> Is possible with Grub restart and try with another Grub entry when the Grub
> default entry fail to start?

Yes it is possible with the new savedefault/fallback features. You need
the last version from CVS to do that. I tested this feature
successfully.

You need to read the documentation in the cvs version, in docs/grub.info
or docs/grub.texi, and search for the options "savedefault" and
"fallback", and "grub-set-default".

The fallback setting is usefull when grub fails to load a kernel.
The savedefault is usefull when a kernel panic. You may use the kernel
command line option "panic=10", if you use Linux, if you want Linux to
automatically reboot after 10 secondes of kernel panic.

> These function is more useful when recompile a Linux kernel from remote PC,
> and the new kernel fail to start the PC.

Here is my menu.lst (for example).

default saved
fallback 0
hiddenmenu
timeout 10
foreground = 000000
background = c0c0c0
splashimage (hd0,0)/grub/splash.xpm.gz

title Terminal
kernel (hd0,0)/boot/default/vmlinuz root=/dev/ram0 init=/linuxrc rw vga=788
initrd (hd0,0)/boot/default/initrd
savedefault

title Test mode
kernel (hd0,0)/boot/test/vmlinuz root=/dev/ram0 init=/linuxrc rw
initrd (hd0,0)/boot/test/initrd
savedefault 0

title Administration
kernel (hd0,0)/boot/default/vmlinuz root=/dev/ram0 init=/linuxrc rw
initrd (hd0,0)/boot/default/initrd
savedefault 0

-- 
Alban





reply via email to

[Prev in Thread] Current Thread [Next in Thread]