xfs
[Top] [All Lists]

Re: lilo -R

To: Keith Owens <kaos@xxxxxxxxxxxxxxxxx>
Subject: Re: lilo -R
From: John <jsh_45@xxxxxxxxx>
Date: Mon, 21 May 2001 20:22:30 -0700 (PDT)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <1190.990426986@xxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
This is starting to get to me.  I "thought" that
pulling the /dev/hdc drives cable and putting it on
the first ide controller would be the easy thing to
do, but that has been elusive.  I've tried almost
every combination of boot= and root= and I get one of
two results.  One nothing, no LI no failed boot
attempt pleas insert boot disk, just hangs with no
message.  The other is LI 01 01 01 01 01 01 01
01...(repeating on the screen till I kill the power). 
I tried a boot disk but it tried to mount everything
as ext2 partitions (ro cause of errors) and then
mounted hdc under /mnt (and there wasn't even a hdc,
hdc should have been hda cause it was on the first
controller).  

I thought I had a good idea and replaced the kernel on
the debian rescue disk (added XFS support).  The
rescue disk boots to a initial ram disk, but it's ro
(/dev/root on / ext2 ro).  I was going to try to mount
the XFS drive after I put it on the first ide
controller (hda) but can I mount hda5 at / then mount
hda1 at /boot and hda7 at /var or do I have to
approach this another way.

Now if I can do this I would think that I should edit
the lilo.conf for root=hda5 and boot=hda and run lilo.



Thanks for all the help guys,

John Herrington

--- Keith Owens <kaos@xxxxxxxxxxxxxxxxx> wrote:
> lilo -R selects an existing (installed) image, you
> have to run lilo
> normally first to create the MBR and boot map.  Edit
> lilo.conf to set
> 
>   boot=/dev/hdc
>   root=/dev/hdc<n>
> 
> then run
> 
>   ROOT=/mnt lilo -C /mnt/etc/lilo.conf
> 
> That will write the lilo MBR to hdc, using the
> specification in the hdc
> version of lilo.conf and the boot files from
> /mnt/boot.
> 
> How are you going to boot from hdc, by telling the
> bios to use hdc or
> by moving hdc to be the first disk (hdc -> hda)?  If
> you boot from hdc
> by using the bios then you need to tell lilo where
> the boot disk was,
> by adding these lines to lilo.conf.
> 
> disk=/dev/hdc
>   bios=0x80
> 
> If you move hdc to become hda then you should be
> able to boot lilo from
> the new hda, without the bios=0x80 setting.  You
> will almost certainly
> have to specify a root=/dev/hda<n> parameter because
> lilo will have
> installed using a root from hdc.  After booting
> successfully, edit
> lilo.conf to set boot=/dev/hda and root=current then
> rerun lilo.


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

<Prev in Thread] Current Thread [Next in Thread>