-Amaster-device[N]
Used with a single argument, inquire of active partition on device master-device; e.g. /dev/sda. With
N==0: deactivate all partitions on the device. With N in the range [1..n]: activate the specified
partition and deactivate all others. Normally, only primary partitions [1..4] may be activated, but
if the 'Extended Master Boot Loader' is present on the Master Boot Record (MBR) of the device (see
the -M option), any partition may be made active. Whether the actual OS in the partition will boot
from a logical partition depends on the characteristics of the OS. LILO boot records for Linux may be
booted from a logical partition.
-bbootdev
Set the boot device where the boot loader will be installed. For example "-b/dev/sda" set the Master
Boot Record (MBR) on the first disk as boot device. "-b/dev/sdb5" set the first logical partition on
the second disk as boot device.
-Bbitmap-file
Define a bitmap file for the boot-time graphics screen, preferably one already pre-processed with the
-E option.
-c Enable map compaction. This will merge read requests from adjacent sectors. Speeds up the booting
especially from floppy.
-Cconfig-file
Set another pathname and filename for the configuration file. The default configuration file is
/etc/lilo.conf.
-ddelay-time
Set the delay time in tenths of a second ('20' = 2 sec) before automatically booting the first image.
This give you time to interrupt the automatic boot process with: Shift, Alt, Ctrl, ScrollLock, or
CapsLock. If interrupted, the boot: prompt will be displayed.
This switch will be overridden by the appearance of prompt in the configuration file!
-Dlabel
Use the kernel with the given label as the default kernel to boot, instead of the first one in the
list of the configuration file.
-Efilename.xxx
If the extension .xxx is .bmp, then take the file to be a bitmap graphic file for use in the bitmap=
configuration file directive. Enter an interactive editor to create or update the color/placement
information in the LILO header of this bitmap file. (see bmp-colors, bmp-table, and bmp-timer on the
manual page for lilo.conf(5).)
If .xxx is .dat then take this file to be a configuration file to set bitmap graphic parameters,
which are transferred into the LILO header in the bitmap file of the same name.
When a .bmp file is modified using a graphics editor (e.g. GIMP), the LILO header will be lost. It
can be restored using the dat file, which is used as a text-based backup for the LILO header
information.
-fdisk-tab
Set another disk geometry parameter file. The default is /etc/disktab.
-F Override boot sector check for filesystems (e.g., swap, ext4, xfs ...) which might be destroyed by
the installation of the LILO boot sector on the first sector of the partition if these filesystems
use the first sector as a superblock.
Compare with -Pignore, which bypasses certain partition table checks.
-g Generate 'cylinder/head/sector' (CHS geometric) disk addresses. Limited to cylinders up to 1023.
Forces compatibility with very old versions of LILO (obsoleteswitch).
-H Override fatal halt if a RAID array does not have all disks active.
-Ilabel[D|a|i|k|r|R]label is taken to be the name of an image specified in the configuration file. This command will
print the path name of the corresponding kernel file, keytable file, initial ramdisk file, root
specification, or "append=" string ("i", "k", "r", "R", or "a" option). The "D" option ignores the
label parameter and prints the default "image=" label, or the first "image=" label is selected if no
default image is set.
-l Generate 24-bit linear sector addresses instead of cylinder/head/sector addresses.
-L Generate 32-bit Logical Block Addresses (LBA) instead of cylinder/head/sector (CHS) addresses,
allowing access to all partitions on disks with more than 1024 cylinders. (This is the default
geometry).
-mmap-file
Use another map file instead of the default file /boot/map.
-Mmaster-device{mbr|ext}
Install a Master Boot Record on the device specified as master-device, selecting the Standard or
Extended Master Boot Loader per option. The primary partition table on master-device is undisturbed.
If no valid Volume-ID (serial number) is present, then generate one and write it to the MBR. If mbr
is set, the Standard Master Boot Loader will search partitions 1-4 for an active flag, and boot the
flagged partition. Only one active flag is allowed. If ext is set, the search for an active partition
will include logical partitions as well. The presence of the Extended Master Boot Loader on the
Master Boot Record (MBR = sector 0) of a disk affects the operation of the -A option.
-p Require interactive entry of all passwords set as "" in the configuration file.
-P{fix|ignore|<global-option}>
Fix or ignore 'corrupt' partition tables, e.g. partition tables with linear and cylinder/head/sector
addresses that do not correspond. Always try ignore first, as fix will re-write the partition table,
possibly destroying all partitions on the disk.
ignore is also used to bypass the partition table check for partition types within the partition
table which might not allow the installation of a LILO boot sector. Compare with the '-F' flag, which
overrides the check of the actual boot sector.
<global-option> allows the passing of any global option which may appear in the global section (top)
of the configuration file (/etc/lilo.conf). For instance '-Pnowarn' will pass the 'nowarn' option,
just as though 'nowarn' appeared in the configuration file (same as the '-w' switch). Similarly '-Ptimeout=50' will add or override the 'timeout=' line in the configuration file. Note that the
general -P switch actually duplicates a number of command line option switches. However, it is not
strictly the same as some switches which cause an override of other options; e.g. '-g' (-P
geometric), '-L' (-P lba32).
-q List the currently mapped files. lilo maintains a file, by default /boot/map, containing each name
and location of the kernel(s) to boot. This option will list the names therein. Use with -v for more
detailed information about the installed boot loader.
-rroot-directory
Before doing anything else, do a 'chroot' to the indicated directory. The new root directory must
contain a /dev directory and may need a /boot directory. It may also need an /etc/lilo.conf file.
-Rcommand-line
This option sets the default command for the boot loader for the next time it executes. After
execution the boot loader will erase this line because it is a once-only command. It is typically
used in reboot scripts, just before calling 'shutdown -r'. Used without any arguments, it will cancel
a lock-ed or fallback command line.
This Command line starts with image identifier (as shown during map file update), then space, then
kernel parameters. The kernel parameters are appended to kernel command line constructed routinely.
In either case, it there were parameters or not, such one-time command will be treated by loaders
code, as if it is set at 'boot:' prompt. This could lead to 'password:' prompt at boot time. Be
warned! Refer to lilo.conf(5) for details.
-ssave-file
When lilo writes a new boot sector, it preserves the former contents of the boot sector in a file,
named by default /boot/boot.NNNN, where NNNN is the hexadecimal representation of the major and minor
device numbers of the drive/partition.
This option defines the backup save file in one of three ways: a save directory (default is '/boot')
using the default filename 'boot.NNNN' in the defined directory; a pathname template to which '.NNNN'
is appended (default would be '/boot/boot'); or the full pathname of the file, which must include the
correct '.NNNN' suffix. When used with the -u option, the full file pathname must be set.
-Ssave-file
Normally lilo will not overwrite an existing boot sector save file. This options says that
overwriting is to be forced. As with -s, the setting may be of a save directory, pathname template,
or full pathname (which includes the '.NNNN' suffix).
-t Test only. Do not really write a new boot sector or map file. Use together with -v to find out what
lilo is about to do.
-Toption
Print out system information, some of it extracted from system bios. This is more convenient than
booting the LILO diagnostic floppy on problem systems. option may be any one of the following:
help print a list of available diagnostics
ChRul list the partition types subject to
Change-Rules
EBDA list Extended BIOS Data Area information
geom=<drive> list drive geometry for bios drive;
e.g. geom=0x80
geom list drive geometry for all drives
table=<drive> list the primary partition table;
e.g. table=/dev/sda
video list graphic modes available to boot
loader
-u[device-name]
Uninstall lilo by copying the saved boot sector back. The -s and -C switches may be used with this
option. The device-name is optional. A time-stamp is checked.
-U[device-name]
The same as '-u', but do not check the time-stamp.
-v[number]
Increase verbosity. Giving one to five -v options will make lilo more verbose. The number (range
1..5) set verbosity level.
-V Print version number.
-w[+|-]
Used as -w or -w- to suppress warning messages. Used as '-w+' to override 'nowarn' in the
configuration file and show warning messages.
-xoption
For RAID installations only. The option may be any of the keywords: none, auto, mbr, mbr-only, or a
comma separated list of additional boot devices (no spaces allowed in the list).
RAID installations write the boot record to the RAID partition. Conditional writing of MBRs may occur
to aid in making the RAID set bootable in a recovery situation, but all default actions may be
overridden. Action similar to previous versions is achieved using the '-xmbr-only' switch.
-X Reserved for LILO internal use. May produce different output for different LILO versions. The line
beginning "CFLAGS=" will contain the compiler options used to generate this version of LILO.
-z When used with the '-M' switch, clears the Volume-ID. Usually used in the following sequence to
generate a new Volume-ID:
lilo -z -M /dev/sda
lilo -M /dev/sda
-Zoption
Tells the boot installer whether special precautions need to be taken because the BIOS fails to pass
the correct device code in DL (-Z0). Or may specify that the BIOS always gets DL right (-Z1).
Corresponds to, and overrides, the configuration file option 'bios-passes-dl='.