DistributedNetworks DistributedNetworks

Compiling Kernel   «Prev 

Keywords in /etc/lilo.conf stanzas

Keywords in the /etc/lilo.conf stanzas include
  1. boot=/dev/hda: The location of the first stage loader.
  2. map=/boot/map: The map file to install.
  3. install=/boot/boot.b: The second stage loader. If this is omitted, the default is /boot/boot.b.
  4. prompt: Displays the LILO prompt without requiring the user to press the Shift key. If this is set, but the timeout is not set, the prompt will wait indefinitely.
  5. timeout=50: The time, in tenths of a second, the computer will wait for the user to intervene at the LILO prompt. If this value is not set, the computer will wait indefinitely.
  6. delay=50: The time, in tenths of a second, the computer will wait before booting the default image. If this value is absent or zero, the computer boots the default image immediately.
  7. message=/etc/lilo.msg: A file containing a message to be displayed at the LILO prompt.
  8. linear: Generates linear sector addresses rather than sector/cylinder/head addresses for hard drives. This is needed only for some hardware, but should not be changed without first consulting your hardware's documentation.
  9. password=redhat: A password is required to boot the machine. Because the password is kept unencrypted in /etc/lilo.conf, you should be certain that the file is readable only by root. To do this, type chmod 400 /etc/lilo.conf.
  10. restricted: A password is required only if parameters are passed at the LILO prompt.
  11. default=linux: Specifies the default image to be booted if none is specified by the user. (If none, use image in first stanza.)


Here is an example of a lilo.conf file. The delay switch receives a number in tenths of a second. So the delay below is three seconds, not thirty.
boot = /dev/hda
delay = 30
image = /boot/vmlinuz
root = /dev/hda1
label = Red Hat 5.2
image = /boot/vmlinuz
root = /dev/hda2
label = S.U.S.E. 8.0
other = /dev/hda4
table = /dev/hda
label = MS-DOS 6.22

The configration file shows three example stanzas. The first one boots Red Hat from the first partition on the first disk (hda1). The second stanza boots Suse 8.0 from the next partition. The last one loads MS-DOS.