Although LILO can be installed in many different ways, the choice is usually limited by the present setup and therefore, typically only a small number of configurations which fit naturally into an existing system remains.
The configuration file /etc/lilo.conf for the examples could look like this:
boot = /dev/hda2 compact image = /vmlinuz image = /vmlinuz.old other = /dev/hda1 table = /dev/hda label = msdos
It installs a Linux kernel image ( /vmlinuz), an alternate Linux kernel image ( /vmlinuz.old) and a chain loader to boot MS-DOS from /dev/hda1. The option compact on the second line instructs the map installer to optimize loading.
In all examples, the names of the IDE-type hard disk devices
( /dev/hda) are used. Everything applies to other disk types
(e.g. SCSI disks; /dev/sda
) too.