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

Re: Grub vs LILO



Romain Lerallut wrote:

Brian May wrote:

"Romain" == Romain Lerallut <lerallut@eleves.enpc.fr> writes:

    Romain> I use grub, including scsi emulation for my CDR burner,
    Romain> and I had no problem installing, none at all :-)

    Romain> However I'd like to know how to pass arguments to the
    Romain> kernel when I boot: For instance, how do I start in
    Romain> single-user mode ?  Do I have to predefine such things in
    Romain> menu.lst, or is there another way ?  One that would not
    Romain> clutter the nice menu.

In my grub I have:

kernel (hd0,0)/boot/vmlinuz-2.2.18 root=/dev/hda1 video=0x319


But you can't modify those options before you actually log in, can you ?

I seem to remember that lilo allowed you to specify new options by using
the command line when booting.

What I mean is "interact at boot time":
http://www.linuxdoc.org/HOWTO/mini/LILO-2.html#ss2.3

not just choosing from a pre-defined set of operating modes of a given
kernel.

Romain

Yes you can. Suppose you boot your machine using a floppy (which has grub installed so that you'd get the menu), just press "c" when the menu waits to be selected. You'd have the grub's prompt, and then you could type something like:
root (hd0,0)
kernel /a-test-kernel root=/dev/your-root-partition single
boot

Another situation: you already have your system running and then want to have a newly compiled kernel to be booted:
run grub
do the same thing as the above

Oki



Reply to: