Speaking of Grub: was Re: [lug] Dual boot from two hard drives, LILO

Ed Hill ed at eh3.com
Wed Jun 5 11:53:29 MDT 2002


On Wed, 2002-06-05 at 11:43, Michael D. Hirsch wrote:
> On Wednesday 05 June 2002 01:17 pm, Scott A. Herod wrote:
> > Speaking of grub, can someone tell me how to convert the marked lines in
> > my lilo.conf file to the appropriate ones in grub.conf?
> >
> > image=/boot/vmlinuz-2.4.18-itv
> >          label=linux-test
> >          initrd=/boot/initrd-2.4.18-itv.img
> >          read-only
> >          root=/dev/hda2
> > ->      vga=0x301
> > ->      append="console=/dev/tty2 CONSOLE=/dev/tty2"
> >
> >
> > Is something like the following correct?
> >
> > title Red Hat Linux (2.4.18-3)
> >          root (hd0,0)
> >          kernel /vmlinuz-2.4.18-3 ro root=/dev/hda2 vga=0x301 \
> > 		append="console=/dev/tty2 CONSOLE=/dev/tty2"
> >          initrd /initrd-2.4.18-3.img
> 
> I don't think you even need the "append=".  Just stick the options on the line 
> without any quotes or anything.


Yes!  The append="" stuff is part of the Lilo syntax as Michael pointed
out.  Your grub.conf file should look something like:

default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Example
        root (hd0,0)
        kernel /vmlinuz ro root=/dev/hda3 hdc=ide-scsi vga=1 \
console=/dev/tty2 CONSOLE=/dev/tty2
        initrd /initrd-2.4.18-whatever

where the "\" means line continuation.

hth,
Ed

-- 
Edward H. Hill III, PhD    |  Email:       ed at eh3.com, ehill at mines.edu
Post-Doctoral Researcher   |  URLs:        http://www.eh3.com
Division of ESE            |   http://wasser.mines.edu/people/edhill.php
Colorado School of Mines   |  Phone:       303-273-3483
Golden, CO  80401          |  Fax:         303-273-3311
Key fingerprint = 5BDE 4DA1 66BE 4F7B BC17  3A0C 932B 7266 1E76 F123



More information about the LUG mailing list