📄 lilo.8
字号:
'\" t.\" @(#)lilo.8 1.0 950728 aeb.\" This page is based on the lilo docs, which carry the following.\" COPYING condition:.\".\" LILO program code, documentation and auxiliary programs are.\" Copyright 1992-1998 Werner Almesberger..\" Extensions to LILO, documentation and auxiliary programs are.\" Copyright 1999-2002 John Coffman..\" All rights reserved by the respective copyright holders..\" .\" Redistribution and use is subject to the terms set forth in.\" the file COPYING in the source directory..\".\" Original version, Andries Brouwer (aeb@cwi.nl), 950728.\" Added t directive, as Daniel Quinlan asked, 950824.\" Added L switch, John Coffman, 991118.\" Added T switch, John Coffman, 001001.\" Added p switch, John Coffman, 010402.\" Added x switch, John Coffman, 010409.\" Added A switch, John Coffman, 010417.\" Added M switch, John Coffman, 010417.\" Added g switch, John Coffman, 010526.\" Added z switch, John Coffman, 010829.\" Added E switch, John Coffman, 020409.\" Added B,F & X switches, John Coffman, 020418.\" Added "k" option to I switch, John Coffman, 020609.\".TH LILO 8 "09 Jun 2002".SH NAMElilo \- install boot loader.SH SYNOPSISMain function:.LP.B " /sbin/lilo"\- install boot loader.LPAuxiliary uses:.LP.B " /sbin/lilo -q"\- query map.br.B " /sbin/lilo -T"\- tell more about specified topic.br.B " /sbin/lilo -R"\- set default command line for next reboot.br.B " /sbin/lilo -A"\- activate/show active partition.br.B " /sbin/lilo -E"\- edit header or update a bitmap file.br.B " /sbin/lilo -M "\- write a Master Boot Record on a device.br.B " /sbin/lilo -I"\- inquire path name of current kernel.br.B " /sbin/lilo {-u|-U}"\- uninstall LILO boot loader.SH DESCRIPTION.LP.B liloinstalls a boot loader that will be activated next time you boot.It has lots of options..LP.TP.BI "\-\^A " "master-device [ N ]"Inquire of active partition on device.IR master-device ;e.g., "/dev/hda". With a number in the range 1 to 4, activate the specifiedpartition on the master device..TP.BI "\-\^b " bootdevSpecify the boot device; i.e., where the boot loader will be installed."-b /dev/hda" specifies the Master Boot Record; "-b /dev/sdb5" specifiesthe first extended partition on the second SCSI disk..TP.BI "\-\^B " bitmap-fileSpecify a bitmap file for the boot-time graphics screen..TP.B "\-\^c"Enable map compaction. This will merge read requests from adjacentsectors. Speeds up the booting (especially from floppy)..TP.BI "\-\^C " config-file.B liloreads its instructions about what files to map from the specifiedconfiguration file. This option overrides the use of the default configfile,.IR "/etc/lilo.conf" ..TP.BI "\-\^d " delaySpecifies the delay time in tenths of a second (20 = 2 sec) beforeautomatically booting the first image. Gives you time to interrupt theautomatic boot process with Shift, Alt, Ctrl, ScrollLock, or CapsLock. Ifinterrupted, the `boot:' prompt is displayed. This switch is overriden bythe appearance of.I promptin the config-file..TP.BI "\-\^D " labelUse the kernel with the given label, instead of the first onein the list, as the default kernel to boot..TP.BI "\-\^E " filename.extIf \fB.ext\fP is \fB.bmp\fP, then take the file to be a bitmap graphic file for usein the "bitmap=" configuration file directive. Enter an interactiveeditor to create or update the color/placement information in thebitmap file LILO header.If \fB.ext\fP is \fB.dat\fP, then take the file to be a configuration file whichspecifies bitmap graphic parameters, which are transferred into the LILOheader in the bitmap file of the same name..TP.BI "\-\^f " disk-tabSpecify disk geometry parameter file. (The default is.IR /etc/disktab .).TP.BI "\-\^F"Override boot sector check for filesystems (e.g., swap, XFS, ...) which might bedestroyed by the installation of the LILO boot sector on the first sector ofthe partition. These filesystems use the first sector as a superblock.Compare with "-P ignore", which bypasses certain partition table checks..TP.BI "\-\^g"Generate cylinder/head/sector (geometric) disk addresses. Limited tocylinders up to 1023. Forces compatibility with older versions of LILO..TP.BI "\-\^i " boot-loaderSpecify a file to be used as the new boot loader. (The default is.IR /boot/boot.b .).TP.BI "\-\^I " "label" "\[i|r\]"The label of the running kernel can be found in the environmentvariable BOOT_IMAGE after startup, or in the pseudo-file `/proc/cmdline'.This command will print path name of the corresponding kernel file, keytablefile, or ofany initial ramdisk file ("i", "k", or "r" option). .TP.BI "\-\^l"Generate 24-bit linear sector addresses instead of cylinder/head/sectoraddresses..TP.BI "\-\^L"Generate 32-bit Logical Block Addresses instead of cylinder/head/sectoraddresses, allowingaccess to all partitions on disks with more than 1024 cylinders..TP.BI "\-\^m " map-fileUse specified map file instead of the default..TP.BI "\-\^M " "master-device [ mbr-file ]"Install a Master Boot Record on the device specified as.IR master-device .The new MBR is copied by default from "mbr.b", whichis built into.I /sbin/lilo(version 22.3), unless a specificfile is named as the second argument. The primary partition table on.I master-deviceis undistrubed. If no device serial number is present, then generate oneand write it to the MBR..TP.BI "\-\^p"Require interactive entry of all passwords specified as.B """""" in the configuration file..TP.BI "\-\^P " "{fix|ignore}"Fix or ignore `corrupt' partition tables, i.e., partition tableswith linear and cylinder/head/sector addresses that do not correspond.Always try.I -P ignorefirst, as.I -P fixwill re-write the partition table, possibly destroying all partitionson the disk..I -P ignoreis also used to bypass the partition table check for partition types withinthe partition table whichmight not allow the installation of a LILO boot sector. Compare with the"-F" flag, which overrides the check of the actual boot sector..TP.B \-\^qList the currently mapped files..B lilomaintains a file, by default.IR "/boot/map" ,containing the name and location of the kernel(s) to boot.This option will list the names therein. Use with \fB-v\fP formore detailed information about the installed boot loader..TP.BI "\-\^r " root-directoryBefore doing anything else, do a \fIchroot\fP to the indicateddirectory. The new root directory must contain a.I /devdirectory, and may need a.I /bootdirectory. It may also need an.IR /etc/lilo.conf " file."Used by the.I mkbootdiskshell script for creating a bootable floppy..TP.BI "\-\^R " "command line"This option sets the default command for the boot loader the nexttime it executes. The boot loader will then erase this line: thisis a once-only command. It is typically used in reboot scripts,just before calling `shutdown -r'. Used without any arguments, it willcancel a \fIlock\fP-ed or \fIfallback\fP command line..TP.BI "\-\^s " save-fileWhen.B lilooverwrites the boot sector, it preserves the old contents ina file, by default.I /boot/boot.NNNNwhere NNNN depends on the device. This option specifies analternate save file for the boot sector. (Or, together with the\fB-u\fP option, specifies from where to restore the boot sector.).TP.BI "\-\^S " save-fileNormally,.B lilowill not overwrite an existing save file. This options saysthat overwriting is allowed..TP.BI "\-\^t "Test only. Do not really write a new boot sector or map file.Use together with \fB-v\fP to find out what.B lilois about to do..TP.BI "\-\^T " optionPrint out system information, some of it extracted from the systembios. This is more convenient than booting the LILO diagnosticfloppy on problem systems..I optionmay be any one of the following:.IP.nf 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.fi.TP.BI "\-\^u " [device-name]Uninstall \fIlilo\fP by copying the saved boot sector back.The '-s' and '-C' switches may be used with this option.The \fIdevice-name\fP is optional. A time-stamp is checked..TP.BI "\-\^U " [device-name]Idem, but do not check the time-stamp..TP.B "\-\^v"Increase verbosity. Giving one to five \fB-v\fP optionswill make lilo more verbose, or use, \fB-v\fP \fIn\fP (n=1..5) toset verbosity level '\fIn\fP'..TP.B "\-\^V"Print version number..TP.B "\-\^w"Suppress warning messages..TP.BI "\-\^x " optionFor RAID installations only. The option may be any of the keywords.IR none ,.IR auto ,.IR mbr-only ,or a comma separated list of additional boot devices (no spaces allowed inthe list)..TP.BI "\-\^X"Reserved for LILO internal use. May produce differentoutput for different LILO versions. The line beginning "CFLAGS="will contain the compiler options used to generate this version of LILO..TP.B "\-\^z"When used with the -M switch, clears the device serial number. Usually usedin the following sequence to generate a new device serial number:.nf lilo -z -M /dev/hda lilo -M /dev/hda.fi.br.LPThe above command line options correspond to the key wordsin the config file indicated below..IP.TSl l.-b bootdev boot=bootdev-B file.bmp bitmap=file.bmp-c compact-d dsec delay=dsec-D label default=label-i boot-loader install=boot-loader-f file disktab=file-g geometric-l linear-L lba32-m mapfile map=mapfile-P fix fix-table-P ignore ignore-table-s file backup=file-S file force-backup=file-v [N] verbose=N-w nowarn-x option raid-extra-boot=option.TE.SH "BOOT OPTIONS"The options described here may be specified at on the command line when akernel image is booted. These options are processed by LILO, and areremoved from the command line passed to the kernel, unless otherwise noted..LP.TP.BI lockLocks the command line, as though 'lock' had been specified in 'lilo.conf.'.TP.BI "mem=###[,K,M]"Specifies the maximum memory in the system in bytes, kilobytes, or megabytes.This option is not removed from the command line, and is always passed tothe kernel..TP.BI nobdSuppresses collection of BIOS data. This option is reserved for use withnon-IBM-compliant BIOS's which hang with the lines:.sp.nf Loading............... BIOS data check .fi.TP.BI "vga=[ASK,EXT,EXTENDED,NORMAL]"Allows overriding the default video mode upon kernel startup..br.SH BOOT ERRORSThe boot process takes place in two stages. The first stage loader is asingle sector, and is loaded by the BIOS or by the loader in the MBR. Itloads the multi-sector second stage loader, but is very space limited. Whenthe first stage loader gets control, it types the letter "L"; when it isready to transfer control to the second stage loader it types the letter"I". If any error occurs, like a disk read error, it will put out ahexadecimil error code, and then it will re-try the operation. All hexerror codes are BIOS return values, except for the lilo-generated 40, 99 and 9A.A partial list of error codes follows:.br.IP.TSl l.00 no error01 invalid disk command0A bad sector flag0B bad track flag20 controller failure40 seek failure (BIOS)40 cylinder>1023 (LILO)99 invalid second stage index sector (LILO)9A no second stage loader signature (LILO)AA drive not readyFF sense operation failed.TE.br.LPError code 40 is generated by the BIOS, or by LILO during the conversion ofa linear (24-bit) disk address to a geometric (C:H:S) address. On oldersystems which do not support lba32 (32-bit) addressing, this error may alsobe generated. Errors 99 and 9A usually mean the map file (-m or map=) isnot readable, likely because LILO was not re-run after some system change,or there is a geometry mis-match between what LILO used (lilo -v3 todisplay) and what is actually being used by the BIOS (one of the lilodiagnostic disks, available in the source distribution, may be needed todiagnose this problem).When the second stage loader has received control from the first stage, itprints the letter "L", and when it has initialized itself, includingverifying the "Descriptor Table" - the list of kernels/others to boot - itwill print the letter "O", to form the full word "LILO", in uppercase.All second stage loader error messages are English text, and try topinpoint, more or less successfully, the point of failure..br.SH INCOMPATIBILITIES.B lilois known to have problems with the.I reiserfsintroduced with the 2.2.x kernels, unless the file system ismounted with the 'notail' option. This incompatibilty has beenresolved with reiserfs 3.6.18 and lilo 21.6..spBeginning with version 22.0, RAID installations write the boot record tothe RAID partition. Conditional writing of MBRs may occur to aid in makingthe RAID set bootable in a recovery situation, but all default actions maybe overridden. Action similar to previous versions isachieved using the `-x mbr-only' switch..SH BUGSConfiguration file options `backup' and `force-backup' are not yet correctlyimplemented for RAID installations. Use of the default boot record backupmechanism seems to work okay, and should be used..SH "SEE ALSO"fdisk(8), lilo.conf(5), mkrescue(8), mkinitrd(8)..spThe lilo distribution comes with very extensive documentation.(lilo 21).SH "AUTHORS"Werner Almesberger <almesber@lrc.epfl.ch> (versions 0 to 21).brJohn Coffman <johninsd@san.rr.com> (21.2 to present)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -