lilo vs grub

Chris Ricker kaboom at gatech.edu
Sun Oct 26 12:28:45 UTC 2003


On Fri, 24 Oct 2003, Thomas Dodd wrote:

> 
> 
> Chris Ricker wrote:
> > grub has that feature, it's just poorly documented and complicated to use
> > 
> > grub> savedefault --default=# --once
> > 
> > makes # the default for the next boot only
> 
> Ok Chris (or Jeremy).
> 
> I have linux, Win98(for my son's games), and memtest86 entried in 
> grub.con and lilo.conf
> 
> With lilo, if I want to boot win98:
> # lilo -R win98; reboot
> 
> To check memory:
> # lilo -R memtest;shutdown
> 
> How do I do these with grub?

Assuming a grub.conf with three stanzas:

title linux
	...
title win98
	...
title memtest
	...

you'd do something like

# grub
(probes for a bit, then displays a prompt)
grub> 
(at this prompt, enter the command)
grub> savedefault --default=2 --once
grub> quit

Here, the first stanza (linux, in my example) is 0 (--default=0), the second 
is 1, the third is 2, so the above command should make memtest the default 
next time only

There's also a --batch option to the grub command which will let you 
automate it a bit....

later,
chris





More information about the test mailing list