The most popular way to boot Linux on Intel platforms is the LInux LOader, LILO, whose configuration and use are described in the sectionx "Section 5.2.2, "Using LILO"" in Chapter 5, "Essential System Management". This appendix summarizes the options you can specify in the /etc/lilo.conf file and on the /sbin/lilo command line.
The configuration file starts with a section of global options, described in the next section. Global options are those that apply to every system boot, regardless of what operating system you are booting.
Following the global section, there is one section of options for each Linux kernel. While the variety of kernel options--many of them hardware specific--make it unfeasible to list them all here, the section "Section G.3, "Kernel Options "" later in this chapter describes the most common ones.
Finally, the configuration file contains a section for each non-Linux operating system that you want LILO to be able to boot. Each of those sections is referred to as an image section, because each boots a different kernel image (shorthand for a binary file containing a kernel) or another operating system. Each Linux image section begins with an image= line. Options found in these sections are described in the section "Section G.2, "Image Options "" later in this chapter.
In addition to the options listed here, the kernel options append, read-only, read-write, root, and vga (described in the section "Kernel options" later) can also be set as global options:
Sets the name of the device that contains the boot sector. boot defaults to the device currently mounted as the root, such as /dev/hda2. Specifying a device, such as /dev/hda (without a number), indicates that LILO should be installed in the master boot record; the alternative is to set it up on a particular partition, such as /dev/hda2.
Defines parameters for the disk specified by device-name if LILO can't figure them out. Normally, LILO can determine the disk parameters itself and this option isn't needed. When disk is specified, it is followed by one or more parameter lines:
Note that this option is not the same as the disk geometry parameters you can specify with the hd boot command-line option. With disk, the information is given to LILO; with hd, it is passed to the kernel. The parameters that can be specified with disk are briefly listed here. They are described in detail in the LILO User's Guide which comes with the LILO distribution.disk=/dev/sda bios = 0x80 # First disk is usually 0x80, second is usually 0x81 sectors= ... heads= ...
If set, allows LILO to adjust 3D addresses (addresses specified as sector/head/cylinder) in partition tables. This is sometimes necessary if a partition isn't track aligned and another operating system, such as MS-DOS, is on the same disk. See the lilo.conf manpage for details.
Generates linear sector addresses, which do not depend on disk geometry, instead of 3D (sector/head/cylinder) addresses. If LILO can't determine your disk's geometry itself, you can try using linear; if that doesn't work, then you need to specify the geometry with disk=. Note, however, that linear sometimes doesn't work with floppy disks, and it may conflict with compact.
Specifies a file containing a message to be displayed before the boot prompt. The message can include a formfeed character (Ctrl-L) to clear the screen. The map file must be rebuilt by rerunning the lilo command if the message file is changed or moved. The maximum length of the file is 65,535 bytes.
Specifies that any image that is not available when the map is created should be omitted and not offered as an option at the boot prompt. Like the per-image option optional, but it applies to all images.
Specifies a password that the user is prompted to enter when trying to load an image. The password is not encrypted in the configuration file, so if passwords are used, permissions should be set so that only the superuser is able to read the file. This option is like the per-image password option, except that all images are password protected and they all have the same password.
Can be used with password to indicate that a password needs to be entered only if the user specifies parameters on the command line. It is like the per-image restricted option, but applies to all images.
Allows the boot loader to accept input from a serial line as well as from the keyboard. Sending a break on the serial line corresponds to pressing a Shift key on the console to get the boot loader's attention. All boot images should be password protected if serial access is insecure (e.g., if the line is connected to a modem). Setting serial automatically raises the value of delay to 20 (i.e., two seconds) if it is less than that. The parameter string parameters has the following syntax:
For example, to initialize COM1 with the default parameters:port[,bps[parity[bits]]]
The parameters are:serial=0,2400n8
Sets a timeout (specified in tenths of a second) for keyboard input. If no key has been pressed after the specified time, the default image is automatically booted. timeout is also used to determine when to stop waiting for password input. The default timeout is infinite.
Turns on verbose output, where higher values of level produce more output. If -v is also specified on the LILO command line, the level is incremented by one for each occurrence of -v. The maximum verbosity level is 5.
Copyright © 2001 O'Reilly & Associates. All rights reserved.