2.9. Options in /etc/lilo.conf

The LILO configuration file is /etc/lilo.conf. The /sbin/lilo commands uses this file to determine what information to write to the MBR.

WarningWarning
 

Before editing /etc/lilo.conf, be sure to make a backup copy of the file. Also, have a working boot floppy available so that changes can be made to the MBR if there is a problem. See the man page for mkbootdisk for more information on creating a boot disk.

The /etc/lilo.conf file is used by the /sbin/lilo command to determine which operating system or kernel to load and where it should be installed.

A sample /etc/lilo.conf file looks like this:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
lba32
default=linux

image=/boot/vmlinuz-2.4.0-0.43.6
	label=linux
	initrd=/boot/initrd-2.4.0-0.43.6.img
	read-only
	root=/dev/hda5

other=/dev/hda1
	label=dos

This example shows a system configured to boot two operating systems: Red Hat Linux and DOS. Next is a more detailed look at the lines of this file: