Linux lilo command
The Linux lilo command is used to install the kernel loader and boot manager.
lilo (linux loader) is a kernel loader for Linux systems that also has boot management functions. When run on its own, the lilo command reads the lilo.conf configuration file in the /etc/ directory and installs lilo according to its contents.
Syntax
lilo [-clqtV][-b<外围设备代号>][-C<配置文件>][-d<延迟时间>][-D<识别标签>][-f<几何参数文件>][-i<开机磁区文件>][-I<识别标签>][-m<映射文件>][-P][-r<根目录>][-R<执行指令>...][-s<备份文件>][-S<备份文件>][-uU<外围设备代号>][-v...]
Parameter Description:
- -b
Specify the device where lilo is to be installed. - -c Use compact map mode.
- -C
Specify the lilo configuration file. - -d
Set the boot delay time. - -D
- -f
Specify the disk geometry configuration file. - -i
Specify the boot sector file to use; the default is the boot.b file in the /boot directory. - -I
- -l Generate linear sector addresses.
- -m
- -P
Decide whether to fix or ignore partition table errors. - -q List the mapped kernel files.
- -r
Set the directory to be mounted as the root directory at system startup. - -R
Set the command to be executed first at the next system startup. - -s
Specify the backup file. - -S
Force the specification of the backup file. - -t Do not execute; only list the actions that would be performed.
- -u
Remove lilo. - -U
This parameter is similar to specifying the "-u" parameter, but does not check timestamps. - -v Display the command execution process.
- -V Display version information.
Example
Install lilo on the third primary partition of the first SCSI hard disk, using level 3 mode.
# lilo -b /dev/sda3 -v -v -v
Specify the configuration file and backup file for installing lilo.
# lilo -C /etc/lilo.conf2 -s /boot/boot. Backup
Linux Command Reference