Installing LILO

If you're performing a workstation- or server-class installation, please skip ahead to the section called Time Zone Configuration.

In order to be able to boot your Red Hat Linux system, you usually need to install LILO (the LInux LOader). You may install LILO in one of two places:

The master boot record (MBR)

The recommended place to install LILO, unless the MBR already starts another operating system loader, such System Commander or OS/2's Boot Manager. The master boot record is a special area on your hard drive that is automatically loaded by your computer's BIOS, and is the earliest point at which LILO can take control of the boot process. If you install LILO in the MBR, when your machine boots, LILO will present a boot: prompt. You can then boot Red Hat Linux or any other operating system you configure LILO to boot.

The first sector of your root partition

Recommended if you are already using another boot loader on your system (such as OS/2's Boot Manager). In this case, your other boot loader will take control first. You can then configure that boot loader to start LILO (which will then boot Red Hat Linux).

If you choose to install LILO, please select where you would like LILO to be installed on your system (see Figure 4-9). If your system will use only Red Hat Linux you should choose the master boot record (MBR). For systems with Win95/98, you also should install LILO to the MBR so that LILO can boot both operating systems.

If you have Windows NT (and you want to install LILO) you should choose to install LILO on the first sector of the root partition, not the MBR. Please be sure to create a boot disk. In a case such as this, you will either need to use the boot disk, or configure the NT system loader to boot LILO from the first sector of the root partition. Be sure to check out http://www.linuxdoc.org/HOWTO/mini/Linux+NT-Loader.html for more information on setting up LILO and NT.

CautionCaution
 

If you choose not to install LILO for any reason, you will not be able to boot your Red Hat Linux system directly, and will need to use another boot method (such as a boot diskette). Use this option only if you are sure you have another way of booting your Red Hat Linux system!

The Use linear mode button is selected by default. In most cases, linear mode should be enabled; if your computer cannot use linear mode to access your hard drives, deselect this option.

Figure 4-9. LILO Configuration

If you wish to add default options to the LILO boot command, enter them into the kernel parameters field. Any options you enter will be passed to the Linux kernel every time it boots.

Bootable Partition -- Every bootable partition is listed, including partitions used by other operating systems. The "Boot label" column will be filled in with the word linux on the partition holding your Red Hat Linux system's root filesystem. Other partitions may also have boot labels. If you would like to add boot labels for other partitions (or change an existing boot label), click once on the partition to select it. Once selected, you can change the boot label.

NotePlease Note
 

The "Boot label" column lists what you must enter at LILO's boot: prompt in order to boot the desired operating system. However, if you forget the boot labels defined on your system, you can always press Tab at LILO's boot: prompt to display a list of defined boot labels.

Configuring LILO

TipTip
 

To use the boot disk with rescue mode, you have several options:

  • Using the CD-ROM to boot, type linux rescue at the boot: prompt.

  • Using the network boot disk, type linux rescue at the boot: prompt. You will then be prompted to pull the rescue image from the network.

  • Using the boot disk included with the Red Hat Linux boxed set, type linux rescue at the boot: prompt. You then pick an installation method and choose a valid installation tree to load from.

For more information regarding rescue mode, refer to the System Administration chapter of the Official Red Hat Linux Reference Guide.

Alternatives to LILO

If you do not wish to use LILO to boot your Red Hat Linux system, there are several alternatives:

Boot Disk

As previously stated, you can use the boot disk created by the installation program (if you elected to create one).

LOADLIN

You can load Linux from MS-DOS. Unfortunately, it requires a copy of the Linux kernel (and an initial RAM disk, if you have a SCSI adapter) to be available on an MS-DOS partition. The only way to accomplish this is to boot your Red Hat Linux system using some other method (e.g., from LILO on a diskette) and then copy the kernel to an MS-DOS partition. LOADLIN is available from ftp://metalab.unc.edu/pub/Linux/system/boot/dualboot/ and associated mirror sites.

SYSLINUX

An MS-DOS program very similar to LOADLIN. It is also available from ftp://metalab.unc.edu/pub/Linux/system/boot/loaders/ and associated mirror sites.

Some commercial bootloaders

For example, System Commander and Partition Magic, which are able to boot Linux (but still require LILO to be installed in your Linux root partition).

SMP Motherboards and LILO

This section is specific to SMP motherboards only. If the installer detects an SMP motherboard on your system, it will automatically create two lilo.conf entries, rather than the usual single entry.

One entry will be called linux and the other will be called linux-up. The linux will boot by default. However, if you have trouble with the SMP kernel, you can elect to boot the linux-up entry instead. You will retain all the functionality as before, but you will only be operating with a single processor.