The lilo Command

You need to run the lilo command to install the LILO boot loader and to update it whenever the kernel changes or to reflect changes to /etc/lilo.conf. Note that if you replace your kernel image without rerunning lilo, your system may be unable to boot.

The path to the lilo command is usually /sbin/lilo. The syntax of the command is:

lilo [options]

Some of the options correspond to /etc/lilo.conf keywords:

Configuration keyword

Command option

boot=bootdev

-b bootdev

compact

-c

delay=tsecs

-d tsecs

default=label

-D label

disktab=file

-f file

install=bootsector

-i bootsector

lba32

-L

linear

-l

map=mapfile

-m mapfile

fix-table

-P fix

ignore-table

-P ignore

backup=file

-s file

force-backup=file

-S file

verbose=level

-v

These options should be put in the configuration file whenever possible; putting them on the lilo command line instead of in /etc/lilo.conf is deprecated. The next section describes those options that can be given only on the lilo command line; the others were described earlier.

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.