Linux Know-How provides a collection of introductory texts on often needed Linux skills. |
Home Newbie Guide Administrator FAQ Startup Issues LILO hangs | ||
See also: LILO and GRUB | ||
Search the VIAS Library | Index | ||
LILO hangsI quote from my good handbook "RedHat Linux Unleashed" by Kamran Hussain, Timothy Parker, et al., published by SAMS Publishing: "When LILO loads itself, it displays the word LILO. Each letter is printed before or after performing some specific action. If LILO fails at some point, the letters printed so far can be used to identify the problem. [...] LI [...] This is caused either by geometry mismatch or by moving /etc/lilo/boot.b without running the map installer. LIL [...] This is typically caused by media failure or geometry mismatch." The geometry means the number of sectors/heads/cylinders used in the hard drive configuration of your BIOS. Hope this helps!
With a LILO error like above, you can boot your machine using a Linux or DOS boot floppy. There seems to be several general possibilities to correct such a LILO error, depending on what is wrong:
lilo -u /dev/hda or, under DOS: FDISK/MBR which rewrites the hard drive master boot record (MBR), in which LILO resides, and replaces it with "clean" DOS stuff. You will lose access to Linux if you rebooted your computer after removing LILO (if this happened, you can boot Linux from the floppy and re-install LILO on top of the DOS MBR). To re-install LILO, simply re-run the command lilo (as root).
linear at the top of your /etc/lilo.conf file. This is particularly useful for large drives (>8 GB). See man lilo.conf for details. The option "linear" is safe--it should not affect a properly working system, so you can specify this option is any case. You may also want to play with the method by which BIOS accesses your harddrive. Fore example, turn the LBA ("linear or large block access") mode on/off in your BIOS to see if this helps. Instead of the option "linear" you may try specifying the option (helpful to overcome the 1024 cylinder limit with larger harddrives and newer BIOSes): lba32 This is a new option so it won't work with the stock LILO supplied with RH6.1 or lower. Use the latest Mandrake or RedHat if having the "LI" kind of problems--hard drives are bigger and bigger, and BIOS makers put new tricks to support them.
hdparm -g /dev/hda You can typically easily find the recommended manufacturer geometry on the web using Google to search for your harddrive model number.
|
||
Home Newbie Guide Administrator FAQ Startup Issues LILO hangs |