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

Re: Lost Linux



Joe Cooper wrote:
> "Peter van Alphen (ETM)" wrote:
> >
> > I reinstalled Windows98 on my Linux Redhat 6.0 PC. This PC used
> > LILO to boot. As you guess i lost LILO. I do not have a rescue disk.
> 
> This ones an easy one (though not immediately obvious...I've had this
> same problem myself in the past).  Boot from the boot.img disk first.
> Choose rescue from the menu, then put in the rescue.img disk when it
> asks for it.
> 
> From there you can mount and then chroot to whatever your root linux
> partition is (for example /dev/hda5):
> 
> mkdir /myroot
> mount -t ext2 /dev/hda5 /myroot
> 
> chroot /myroot
> 
> And then rerun lilo:
> 
> /sbin/lilo
> 
> That should fix it.  (Hope I haven't left anything out...someone will
> correct me if I did, I'm sure.)

That will work fine.  You can skip the chroot, though,
by using "/sbin/lilo -r /myroot" (treats /myroot as
the root for the purposes of LILO).

	- Kevin Colby
	  kevinc grainsystems com



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