?? readme
字號:
-b <boot_device> Specifies the boot device. See also sections "Options corresponding to configuration variables" and "Global options". -c Enables map compaction. See also sections "Options corresponding to configuration variables" and "Global options". -C <config_file> Specifies an alternate configuration file. See also section "Show current installation". -d <delay> Sets the delay before LILO boots the default image. Note that the delay is specified in _tenths_ of a second. See also sections "Options corresponding to configuration variables" and "Global options". -D <name> Specifies the default image. See also sections "Options corresponding to configuration variables" and "Global options". -f <disk_tab> Specifies a disk parameter table file. See also sections "Options corresponding to configuration variables" and "Global options". -i <boot_sector> Specifies an alternate boot file. See also sections "Options corresponding to configuration variables" and "Global options". -L Enables lba32 sector addresses. See also sections "Options corresponding to configuration variables" and "Global options". -l Enables linear sector addresses. See also sections "Options corresponding to configuration variables" and "Global options". -m <map_file> Specifies an alternate map file. See also sections "Options corresponding to configuration variables" and "Global options". -P <mode> Specifies how invalid partition table entries should be handled. See also sections "Options corresponding to configuration variables" and "Global options". -r <root_directory> Chroots to the specified directory before doing anything else. This is useful when running the map installer while the normal root file system is mounted somewhere else, e.g. when recovering from an installation failure with a recovery disk. The -r option is implied if the environment variable ROOT is set.* The current directory is changed to the new root directory, so using relative paths may not work. -s <save_file> Specifies an alternate boot sector save file. See also sections "Options corresponding to configuration variables" and "Global options". -S <save_file> Like -s , but overwrites old save files. -t Test only. This performs the entire installation procedure except replacing the map file, writing the modified boot sector and fixing partition tables. This can be used in conjunction with the -v option to verify that LILO will use sane values. -v ... Increase verbosity. See also sections "Options corresponding to configuration variables" and "Global options". * E.g. if your root partition is mounted on /mnt, you can update the map by simply running ROOT=/mnt /mnt/sbin/lilo Change default command line- - - - - - - - - - - - - -Changes LILO's default command line. See also section "Boot image selection". /sbin/lilo [ -C <config_file> ] [ -m <map_file> ] -R [ <word> ... ] -C <config_file> Specifies an alternate configuration file. See also section "Show current installation". -m <map_file> Specifies an alternate map file. See also sections "Options corresponding to configuration variables" and "Global options". -R <word ...> Stores the specified words in the map file. The boot loader uses those words as the default command line when booting the next time. That command line is removed from the map file by the boot loader by overwriting the sector immediately after reading it. The first word has to be the name of a boot image. If -R is not followed by any words, the current default command line in the map file is erased.* If the command line isn't valid, the map installer issues an error message and returns a non-zero exit code. * -R is typically used in reboot scripts, e.g. #!/bin/sh cd / /sbin/lilo -R "$*" && rebootKernel name translation- - - - - - - - - - - -Determines the path of the kernel. /sbin/lilo [ -C <config_file> ] -I <name> [ <options> ] -C <config_file> Specifies an alternate configuration file. See also section "Show current installation". -I <name> [ <options> ] Translates the specified label name to the path of the corresponding kernel image and prints that path on standard output. This can be used to synchronize files that depend on the kernel (e.g. the ps database). The image name can be obtained from the environment variable BOOT_IMAGE . An error message is issued and a non-zero exit code is returned if no matching label name can be found. The existence of the image file is verified if the option character v is added. De-installation- - - - - - - -Restores the boot sector that was used before the installation of LILO. Note that this option only works properly if LILO's directories (e.g. /boot) have not been touched since the first installation. See also section "LILO de-installation". /sbin/lilo [ -C <config_file> ] [ -s <save_file> ] -u | -U [ <boot_device> ] -C <config_file> Specifies an alternate configuration file. See also section "Show current installation". -s <save_file> Specifies an alternate boot sector save file. See also sections "Options corresponding to configuration variables" and "Global options". -u [ <device_name> ] Restores the backup copy of the specified boot sector. If no device is specified, the value of the boot variable is used. If this one is also unavailable, LILO uses the current root device. The name of the backup copy is derived from the device name. The -s option or the backup variable can be used to override this. LILO validates the backup copy by checking a time stamp. -U [ <device_name> ] Like -u, but does not check the time stamp. Print version number- - - - - - - - - - /sbin/lilo -V -V Print the version number and exit. Options corresponding to configuration variables- - - - - - - - - - - - - - - - - - - - - - - -There are also many command-line options that correspond to configuration variables. See section "Global options" for a description.Command-line option | Configuration variable -------------------------------------------------b <boot_device> | boot=<boot_device> -c | compact -d <tsecs> | delay=<tsecs> -D <name> | default=<name> -i <boot_sector> | install=<boot_sector> -L | lba32 -l | linear -m <map_file> | map=<map_file> -P fix | fix-table -P ignore | ignore-table -s <backup_file> | backup=<backup_file> -S <backup_file> | force-backup=<backup_file>-v ... | verbose=<level> Configuration-------------The configuration information is stored in the file /etc/lilo.conf and consists of variable assignments.Syntax- - -The following syntax rules apply: - flag variables consist of a single word and are followed by whitespace or the end of the file. - string variables consist of the variable name, optional whitespace, an equal sign, optional whitespace, the value and required whitespace, or the end of the file. - a non-empty sequence of blanks, tabs, newlines and comments counts as whitespace. - variable names are case-insensitive. Values are usually case-sensitive, but there are a few exceptions. (See below.) - tabs and newlines are special characters and may not be part of a variable name or a value. The use of other control characters and non-ASCII characters is discouraged. - blanks and equal signs may only be part of a variable name or a value if they are escaped by a backslash or if the value is embedded in double quotes. An equal sign may not be the only character in a name or value. - an escaped tab is converted to an escaped blank. An escaped newline is removed from the input stream. An escaped backslash (i.e. two backslashes) is converted to a backslash. Inside quoted strings, only double quotes, backslashes, dollar signs, and newlines can be escaped. - quoted strings can be continued over several lines by ending each incomplete line with a backslash. A single space is inserted in the string for the line end and all spaces or tabs that follow immediately on the next line. - environment variables can be used by specifying them in the form $<name> or ${<name>}. Dollar signs can be escaped. - comments begin with a number sign and end with the next newline. All characters (including backslashes) until the newline are ignored. Example:boot = $FDinstall = $MNT/boot.bmap = $MNT/mapcompactread-onlyappend = "nfsroot=/home/linux-install/root \ nfsaddrs=128.178.156.28:128.178.156.24::255.255.255.0:lrcinst"image = $MNT/zImageGlobal options- - - - - - -/etc/lilo.conf begins with a possibly empty global options section. Many global options can also be set from the command line, but storing permanent options in the configuration file is more convenient.The following global options are recognized: BACKUP=<backup_file> Copy the original boot sector to <backup_file> (which may also be a device, e.g. /dev/null) instead of /boot/boot.<number> BOOT=<boot_device> Sets the name of the device (e.g. a hard disk partition) that contains the boot sector. If BOOT is omitted, the boot sector is read from (and possibly written to) the device that is currently mounted as root. CHANGE-RULES Defines partition type numbers. See section "Partition type change rules" for details. COMPACT Tries to merge read requests for adjacent sectors into a single read request. This drastically reduces load time and keeps the map smaller. Using COMPACT is especially recommended when booting from a floppy disk. COMPACT may conflict with LINEAR or LBA32, see section "Other problems". DEFAULT=<name> Uses the specified image as the default boot image. If DEFAULT is omitted, the image appearing first in the configuration file is used. DELAY=<tsecs> Specifies the number of _tenths_ of a second LILO should wait before booting the first image. This is useful on systems that immediately boot from the hard disk after enabling the keyboard. LILO doesn't wait if DELAY is omitted or if DELAY is set to zero. DISK=<device_name> Defines non-standard parameters for the specified disk. See section "Disk geometry" for details. FIX-TABLE Allows LILO to adjust 3D addresses in partition tables. Each partition entry contains a 3D (sector/head/cylinder) and a linear 32-bit address of the first and the last sector of the partition. If a partition is not track-aligned and if certain other operating systems (e.g. PC/MS-DOS or OS/2) are using the same disk, they may change the 3D address. LILO can store its boot sector only on partitions where both address types correspond. LILO re-adjusts incorrect 3D start addresses if FIX-TABLE is set. _WARNING:_ This does not guarantee that other operating systems may not attempt to reset the address later. It is also possible that this change has other, unexpected side-effects. The correct fix is to re-partition the drive with a program that does align partitions to tracks. Also, with some disks (e.g. some large EIDE disks with address translation enabled), under some circumstances, it may even be unavoidable to have conflicting partition table entries. FORCE-BACKUP=<backup_file> Like BACKUP, but overwrite an old backup copy if it exists. BACKUP=<backup_file> is ignored if FORCE-BACKUP appears in the same configuration file. IGNORE-TABLE Tells LILO to ignore corrupt partition tables and to put the boot sector even on partitions that appear to be unsuitable for that. INSTALL=<boot_sector> Install the specified file as the new boot sector. If INSTALL is omitted, /boot/boot.b is used as the default. KEYTABLE=<table_file> Re-map the keyboard as specified in this file. See section "Keyboard translation" for details. LBA32 Generate 32-bit Logical Block Addresses instead of sector/head/cylinder addresses. If the BIOS supports packet addressing, then packet calls will be used to access the disk. This allows booting from any partition on disks with more than 1024 cylinders. If the BIOS does not support packet addressing, then LBA32 addresses are translated to C:H:S, just as for LINEAR. All floppy disk references are retained in C:H:S form. Use of LBA32 is recommended on all post-1998 systems. LBA32 may conflict with COMPACT, see section "Other problems". LINEAR Generate linear sector addresses instead of sector/head/cylinder addresses. Linear addresses are translated at run time and do not depend on disk geometry. Note that boot disks may not be portable if LINEAR is used, because the BIOS service to determine the disk geometry does not work reliably for floppy disks. When using LINEAR with large disks, /sbin/lilo may generate references to inaccessible disk areas (see section "BIOS restrictions"), because 3D sector addr
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -