O'Reilly logo

Linux in a Nutshell, 6th Edition by Robert Love, Stephen Figgins, Ellen Siever, Arnold Robbins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required