Skip to Content
Running Linux, Third Edition
book

Running Linux, Third Edition

by Matthias Kalle Dalheimer, Lar Kaufman, Matt Welsh
August 1999
Beginner
760 pages
23h 55m
English
O'Reilly Media, Inc.
Content preview from Running Linux, Third Edition

lilo Command Options

The following list describes the lilo command options. Multiple options are given separately:

% lilo -q -v

-C config-file

Specifies an alternative to the default configuration file (/etc/lilo.conf). lilo uses the configuration file to determine what files to map when it installs LILO.

-I label

Prints the path to the kernel specified by label to standard output or outputs an error message if no matching label is found. For example:

% lilo -I linux
/boot/vmlinuz-2.0.34-0.6

-q

Lists the currently mapped files. LILO maintains a file, by default /boot/map, containing the name and location of the kernels to boot. Running lilo with this option prints the names of the files in the map file to standard output, as in this example (in which the asterisk indicates that linux is the default):

% lilo -q
linux            *
test

-r root-directory

Specifies that before doing anything else, LILO should chroot to the indicated directory. This option is used for repairing a setup from a boot floppy-you can boot from a floppy but have LILO use the boot files from the hard drive. For example, if you issue the following commands, LILO will get the files it needs from the hard drive:

% mount /dev/hda2 /mnt
% lilo -r /mnt

-R command-line

Sets the default command for the boot loader the next time it executes. The command executes once and then is removed by the boot loader. This option is typically used in reboot scripts, just before calling shutdown -r.

-t

Indicates that this is a test and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Running Linux, 5th Edition

Running Linux, 5th Edition

Matthias Kalle Dalheimer, Matt Welsh
Linux Under the Hood

Linux Under the Hood

Sander van Vugt

Publisher Resources

ISBN: 156592469XCatalog PageErrata