You are Here: FAQ ->Dedicated Servers->Linux Root Server->How To?->Article #13


How to rewrite Lilo


If configuration changes or updates have somehow altered lilo preventing the machine from booting you can rewrite lilo from the rescue system.

Symptoms would include:

-The machine booting successfully into linux rescue

-After logging into the machine with serial console nothing appears to occur when booting into local/normal mode

However:

-You can detect the drives with a fdisk –l
-You have checked the file system for file system errors and the file system is clean or you have already repaired the file system

You will need to:
-Boot into rescue if you have not done so

Assuming you have software raid you will need to mount the partition on each of the drives by using /md instead of /sda

mount /dev/md1 /mnt
mount –t proc none /mnt/proc
chroot /mnt
lilo
exit
umount –al

If you are not using software raid then you would use /dev/sda1 or /dev/hda1 depending on your server hardware. When you use the fdisk –l command to list the partitions you can see if it is sda or hda based on what is printed to the screen.

Then reboot into local/normal mode and watch in serial console to see what occurs.


Disclaimer: 1&1 provides the scripts and related information on this page as a courtesy, subject to 1&1's General Terms and Conditions of Service (the "GT&C"). As set forth in more detail in the GT&C, the scripts and information are provided "as-is", without any warranty, and 1&1 is not liable for any damages resulting from your use of the scripts or information.


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5