Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can:t restore lilo

Status
Not open for further replies.

shadylane

Programmer
Jan 23, 2003
21
JP
Hello there,
I'm trying to restore Lilo but the lilo.conf file seems to have disappeared from /etc/ although there is a file called lilo.conf.anaconda (it's Red Hat 8.0)
The reason I'm trying to restore lilo is because I installed Win 2k on one partition and now it boots straight into Windows - I have to use a linux boot disk to get into Red Hat.
I'm lazy so I don't like taking disks in and out to boot up the different OSes.
Any advice? Should I just try making my own lilo.conf or is this potentially disastrous?
Thanks
Greg
 
Boot from the Red Hat CD and enter rescue mode by entering "linux rescue" at the boot: prompt.

A prompt should appear asking if you want to mount your Red Hat installation under /mnt/sysimage, say YES. This will bring you to a bash prompt that will look something like this...sh-2.05b#. Type...

chroot /mnt/sysimage

...to make that directory the root of the filesystem.

Now, all you have to do is reinstall LILO into the MBR. Rename that lilo.conf.anaconda file to /etc/lilo.conf.

mv /etc/lilo.conf.anaconda /etc/lilo.conf

Edit the /etc/lilo.conf file to include your Windows parition, if you want this. When you file is complete, simply type the following to install LILO...

/sbin/lilo -v


ChrisP
 
Or, you can install a windows utility which lets you boot linux from the Win2k boot menu.

The utility is called Bootpart and has saved me many times. It lets you add an entry on the Win2k boot menu by writing a small file (place it where you like), and thus simulating a boot block.

A great little utility - it just works.
 
Hi

Nothing to worry about it.
just start the windows and insert in the redhat 8 (first cd ) into drive. there u will find "dosutils" directory just copy that directory onto ut hard drive.
then restart the computer in ms-dos mode. goto "dosutils" directory. u will find "autoboot.bat" file. edit that file.
it contains 1 or 2 line. just change to the following like this.
loadlin autoboot\vmlinuz root=/dev/hdc2 single ramdisk_size=9216 %1 %2 %3 %4 %5
%6 %7 %8 %9

note :-
hdc2 : is the partition name on which linux native is present.

save and exit that file.
and run IT WILL START LINUX.
After that goto /etc directory. rename the file from lilo.conf.anaconda to lilo.conf edit and make the appropriate changes and do not forget to run lilo.
reboot the machine.
the next time u will see lilo.


SANTOSH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top