lilo Command Options
The following list describes the lilo command options. Multiple options are given separately:
% lilo -q -v
-
-Cconfig-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.
-
-Ilabel Prints the path to the kernel specified by
labelto 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
linuxis the default):%
lilo -qlinux * test-
-rroot-directory Specifies that before doing anything else, LILO should
chrootto 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-
-Rcommand-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 ...