Linux lilo Command
The Linux lilo command is used to install the kernel loader and boot manager.
lilo (Linux loader) is a Linux system kernel loader that also has boot management capabilities. When executed alone, the lilo command reads the /etc/lilo.conf
configuration file and installs lilo based on its contents.
Syntax
lilo [-clqtV][-b<device identifier>][-C<configuration file>][-d<delay time>][-D<label>][-f<geometry file>][-i<boot sector file>][-I<label>][-m<map file>][-P<fix/ignore>][-r<root directory>][-R<command>...][-s<backup file>][-S<backup file>][-uU<device identifier>][-v...]
Parameter Description:
-b<device identifier>
: Specifies the device identifier where lilo is to be installed.-c
: Uses compact map mode.-C<configuration file>
: Specifies the lilo configuration file.-d<delay time>
: Sets the boot delay time.-D<label>
: Specifies the default operating system or kernel label to boot after startup.-f<geometry file>
: Specifies the disk geometry configuration file.-i<boot sector file>
: Specifies the boot sector file to be used, the default is theboot.b
file in the/boot
directory.-I<label>
: Displays where the system kernel is stored.-l
: Generates linear sector addresses.-m<map file>
: Specifies the map file.-P<fix/ignore>
: Determines whether to fix or ignore partition table errors.-q
: Lists the mapped kernel files.-r<root directory>
: Sets the directory to be mounted as the root directory at system startup.-R<command>
: Sets the command to be executed first next time the system boots.-s<backup file>
: Specifies the backup file.-S<backup file>
: Forces the specified backup file.-t
: Does not execute the command, only lists the actions that would be taken.-u<device identifier>
: Removes lilo.-U<device identifier>
: This parameter is similar to the-u
parameter, but does not check timestamps.-v
: Displays the command execution process.-V
: Displays version information.
Example
Install lilo on the third primary partition of the first SCSI hard drive, using level 3 mode.
# lilo -b /dev/sda3 -v -v -v
Specify the lilo configuration file and backup file.
# lilo -C /etc/lilo.conf2 -s /boot/boot.Backup