Next Up Previous Contents Index

2.4 Step-By-Step Installation

Step-By-Step Installation

2.4.1 Starting the Installation System

Starting the Installation System

2.4.1.1 Booting

Booting

To begin installing Red Hat Linux, insert the boot floppy you just created into the floppy drive and reboot the machine (if you have MS-DOS installed on your machine, you can start installing directly from the CD-ROM; see Section 2.3.1.3 above). The boot: prompt appears; press [Enter] to boot. Watch the boot messages to see whether the Linux kernel detects your hardware. If it does not properly detect your hardware, you may need to reboot and enter some options at the boot: prompt, e.g.:

boot: linux hdc=cdrom

Press [Enter] to boot using those options. If you do need to specify some boot options, please make note of them; they will be needed later.

Please Note: Because Red Hat Linux supports installation on many different types of hardware, many drivers (including those for SCSI adapters, network cards, and many CD-ROMs) are not built into the Linux kernel used during installation; rather, they are available as modules and loaded as you need them during the installation process. You will have the chance to specify options for such drivers at the time they are loaded, and in fact these drivers will ignore any options you specify for them at the boot: prompt. Please see Section 2.2.2 above for more information about drivers built into the installation system.

2.4.1.2 Beginning the Installation

Beginning the Installation

After booting, the installation process begins by asking if you are using a color monitor (see Figure 2). Yes is the default; if you can't distinguish a cursor or highlight press [Tab] once, and then [Enter] to proceed. Next it presents a welcome message; press [Enter] to begin the installation. If you wish to abort the installation process, you may simply eject the boot floppy now and reboot your machine.

Figure 2:Beginning the Installation

2.4.2 Selecting a Keymap

Selecting a Keymap

After the welcome dialog, the installation program gives you an opportunity to select a keyboard map (see Figure 3). Select the keymap you wish to use on your Red Hat Linux system and press [Enter]; the keymap you select will be loaded automatically both for the remainder of the installation process and each time you boot your Red Hat Linux system.

If you wish to change your keymap after you have booted your Red Hat Linux system, you may use the /usr/sbin/kbdconfig command.

Figure 3:Selecting a Keymap

2.4.3 PCMCIA Support

PCMCIA Support

Next, the installation program asks you whether you need PCMCIA support. If you are using a PCMCIA device for installation (for example, a PCMCIA ethernet card for installing via NFS, or PCMCIA SCSI card for installing from CD) you should answer Yes; the installation program prompts you to insert the supplemental diskette. You should wait until the next dialog appears before inserting your PCMCIA card.

2.4.4 Selecting an Installation Method

Selecting an Installation Method

You can install Red Hat Linux via any of four basic methods (see Section 2.2.1, Installation Methods), some of which require the use of a supplemental diskette. To summarize:

CD-ROM
If you have a CD-ROM drive with the Red Hat Linux CD; does not require a supplemental diskette.

NFS
If you are installing from an NFS server which is exporting either the Red Hat Linux CD or a mirror of Red Hat Linux from the Red Hat FTP site; does not require a supplemental diskette.

Hard Drive
If you copied the Red Hat Linux files to one of your local hard drives; requires a supplemental diskette.

FTP
If you are installing directly from an FTP server; requires a supplemental diskette.

SMB image
If you are installing from a Microsoft Windows NT or Windows 95 shared volume; requires a supplemental diskette.

The next dialog asks what type of installation method you wish to use (see Figure 4). Highlight the appropriate choice and select OK, or press [Enter]. If you select FTP, or hard drive, and you're not using PCMCIA support, the installation program prompts you to insert the supplemental diskette.

2.4.4.1 CD-ROM Type

CD-ROM Type

If you choose to install Red Hat Linux/Intel from CD-ROM, the installation program prompts you for the type of CD-ROM:

IDE (ATAPI)
Most CD-ROMs available for Intel-based PCs are IDE (also known as ATAPI) CD-ROMs. The install program checks for a CD-ROM on all available IDE devices before giving up.

SCSI
Select this if your CD-ROM is attached to a supported SCSI adapter; the installation program asks you to choose a SCSI driver. Choose the driver that most closely resembles your adapter. You may specify options for the driver if necessary; however, most drivers detect your SCSI adapter automatically.

Other
If your CD-ROM is neither an IDE nor a SCSI CD-ROM, it's an ``other''. The installation program presents a list of drivers for supported CD-ROMs; choose a driver and, if necessary, specify any driver options.

Figure 4:Selecting an Installation Method

2.4.5 If You Are Installing via NFS

If You Are Installing via NFS

If you are not installing Red Hat Linux via NFS, you may skip to Section 2.4.6 below.

2.4.5.1 Choosing a Network Driver

Choosing a Network Driver

If you are installing via NFS, you must have a supported network card installed in your computer. The installation program prompts you to choose the driver that supports your network card and to specify any options necessary for the driver to locate and recognize the card. Most of the time, the driver can locate the card automatically by probing; however, it is possible that probing your hardware might cause your machine to hang. If this happens, reboot the machine, start the installation again, and specify additional driver options when you get to this step (see Appendix A).

2.4.5.2 Configuring TCP/IP Networking

Configuring TCP/IP Networking

After the installation program has found your network card, it presents several dialogs for configuring TCP/IP networking. This information is only used during the installation process; you will be able to configure permanent networking information later. This feature allows greater flexibility if you want to install from a network other than the one where the machine will ``live''. Figure 5 contains example networking information.

Field Example Value
IP Address 10.0.2.15
Netmask 255.255.255.0
Default Gateway 10.0.2.254
Primary Nameserver 10.0.2.1
Domain Name redhat.com
Hostname pooh.redhat.com

Figure 5:Sample Networking Information

The first dialog asks you for IP and other network addresses (see Figure 6). Enter the IP address you are using during installation and press [Enter]. The installation program attempts to guess your Netmask based on your IP address; you may change the netmask if it is incorrect. Press [Enter]. The installation program guesses the Default gateway and Primary nameserver addresses from your IP address and netmask; you may change them if they are incorrect. Choose OK to continue.

Figure 6:Configuring TCP/IP

The second dialog prompts you for a domain name, a hostname, and other networking information (see Figure 7). Enter the Domain name for your system and press [Enter]; the installation program carries the domain name down to the Host name field. Enter the hostname you are using in front of the domain name to form a fully qualified domain name (FQDN). If your network has more than one nameserver, you may enter IP addresses for additional nameservers in the Secondary nameserver and Tertiary nameserver fields. Choose OK to continue.

Figure 7:Configuring Networking

2.4.5.3 NFS Server Information

NFS Server Information

The next dialog requests information about the NFS server (see Figure 8). Enter the name or IP address of your NFS server, and the name of the exported directory that contains the Red Hat Linux CD. For example, if the NFS server has the Red Hat Linux CD mounted on /mnt/cdrom, enter /mnt/cdrom in Red Hat directory. If the NFS server is exporting a mirror of the Red Hat Linux installation tree instead of a CD, enter the directory which contains the RedHat directory. For example, if your NFS server contains the directory /mirrors/redhat/i386/RedHat, enter /mirrors/redhat/i386.

Figure 8:Installing via NFS

2.4.6 Upgrading or Installing

Upgrading or Installing

After you choose an installation method (and, if you're installing via NFS or SMB volume, after you configure networking information), the installation program prompts you to either install or upgrade (see Figure 9).

2.4.6.1 Installing

Installing

You usually install Red Hat Linux on a clean disk partition or set of partitions, or over another installation of Linux. Installing Red Hat Linux over another installation of Linux (including Red Hat Linux) does not preserve any of the prior installation.

If you wish to perform a full install, choose Install.

2.4.6.2 Upgrading

Upgrading

The installation process for Red Hat Linux 4.2 includes the ability to upgrade from prior versions of Red Hat Linux (2.0, 2.1, 3.0.3, 4.0, and 4.1) which are based on RPM technology. Upgrading your system installs the modular 2.0.x kernel as well as updated versions of the packages which are installed on your machine. The upgrade process preserves existing configuration files using a .rpmsave extenstion (e.g., sendmail.cf.rpmsave) and leaves a log telling what actions it took in /tmp/upgradelog. As software evolves, configuration file formats can change, so you should carefully compare your original configuration files to the new files before integrating your changes.

If you wish to upgrade your Red Hat Linux/Intel system, choose Upgrade.

Please Note: Some upgraded packages may ``depend'' on other packages which may not be installed on your system. The upgrade procedure takes care of these dependencies, but it may need to install additional packages in order to satisfy them.

Figure 9:Upgrading or Installing

2.4.7 SCSI Support

SCSI Support

After you choose whether to perform an upgrade or a full install, the installation program asks you whether you have any SCSI adapters. If you choose Yes, the following dialog presents a list of SCSI drivers. Choose the driver that most closely resembles your SCSI adapter. The installation program then gives you an opportunity to specify options for the SCSI driver you selected; most SCSI drivers detect your hardware automatically, however.

2.4.8 If You Are Installing via FTP or SMB

If You Are Installing via FTP or SMB

If you are not installing Red Hat Linux via FTP or via an SMB volume, you may skip to Section 2.4.9 below.

2.4.8.1 Choosing a Network Driver

Choosing a Network Driver

If you are installing via FTP or via an SMB volume, you must have a supported network card installed in your computer. The installation program prompts you to choose the driver that supports your network card and to specify any options necessary for the driver to locate and recognize the card. Most of the time, the driver can locate the card automatically by probing; however, it is possible that probing your hardware might cause your machine to hang. If this happens, reboot the machine, start the installation again, and specify additional driver options when you get to this step (see Appendix A).

2.4.8.2 Configuring TCP/IP Networking

Configuring TCP/IP Networking

After the installation program has found your network card, it presents several dialogs for configuring TCP/IP networking. This information is only used during the installation process; you will be able to configure permanent networking information later. This feature allows greater flexibility if you want to install from a network other than the one where the machine will ``live''. Figure 5 contains example networking information.

The first dialog asks you for IP and other network addresses (see Figure 6). Enter the IP address you are using during installation and press [Enter]. The installation program attempts to guess your Netmask based on your IP address; you may change the netmask if it is incorrect. Press [Enter]. The installation program guesses the Default gateway and Primary nameserver addresses from your IP address and netmask; you may change them if they are incorrect. Choose OK to continue.

The second dialog prompts you for a domain name, a hostname, and other networking information (see Figure 7). Enter the Domain name for your system and press [Enter]; the installation program carries the domain name down to the Host name field. Enter the hostname you are using in front of the domain name to form a fully qualified domain name (FQDN). If your network has more than one nameserver, you may enter IP addresses for additional nameservers in the Secondary nameserver and Tertiary nameserver fields. Choose OK to continue.

2.4.8.3 FTP Server Information

FTP Server Information

If you're installing via FTP, the next dialog requests information about the FTP server (see Figure 10). Enter the name or IP address of the FTP site you are installing from, and the name of the directory there which contains the RedHat directory for your architecture. For example, if the FTP site contains the directory /pub/mirrors/redhat/i386/RedHat, enter /pub/mirrors/redhat/i386. If you are not using anonymous FTP, or if you need to use a proxy FTP server (if you're behind a firewall, for example), another dialog requests the FTP account or proxy information.

Figure 10:Installing via FTP

2.4.8.4 SMB Server Information

SMB Server Information

If you're installing via SMB volume, the next dialog requests information about the SMB server (see Figure 11). Enter the name or IP address of your SMB server, the name of the shared volume which contains the Red Hat Linux CD, and the account name and password for the volume.

Figure 11:Installing via SMB volume

2.4.9 Creating Partitions for Red Hat Linux

Creating Partitions for Red Hat Linux

After choosing whether to use SCSI support (and, if you're installing via FTP, after you configure networking information), the installation program presents a list of the hard disks it can find on your system and prompts you to set aside at least one disk partition for Red Hat Linux. If you need to create one or more partitions, select the disk you wish to partition and press [Enter]; the installation program starts the Linux fdisk utility. Please see Section 2.2.3 for recommendations about partitions for Red Hat Linux.

2.4.9.1 Using fdisk

Using <tt>fdisk</tt>

fdisk includes online help which is terse but useful. Here are a few tips:

2.4.9.2 Numbering Partitions

Numbering Partitions

Linux refers to disk partitions using a combination of letters and numbers which may be confusing to inexperienced users. Here is a summary:

The letters
denote the device the partition is on, e.g., /dev/hda (the first IDE hard disk) or /dev/sdb (the second SCSI disk).

The number
denotes the partition. The first four (primary or extended) partitions are numbered 1 through 4. Logical partitions start at 5. E.g., /dev/hda3 is the third primary or extended partition on the first IDE hard disk; /dev/sdb6 is the second logical partition on the second SCSI hard disk.

2.4.9.3 Changing the Partition Table

Changing the Partition Table

When you are finished partitioning your disks, press Done; you may see a message indicating that the installation program needs to reboot. This is a normal occurrence after changing a disk's partition data; it usually happens if you created, changed, or deleted any extended partitions. After you press OK, your machine will reboot. Follow the same installation steps you did up until Partitioning Disks; then simply choose Done.

2.4.10 Initializing Swap Space

Initializing Swap Space

After creating partitions for Red Hat Linux, the installation program looks for swap partitions. If it finds any, it asks whether you want to initialize them. Select the partition(s) you wish to initialize as swap space using [Space]; if you wish to check the partitions for bad blocks, make sure the Check for bad blocks during format box is checked. Choose OK.

If the installation program can't find your swap partition, make sure you have set the partition type to Linux swap; see Section 2.4.9 above.

2.4.11 Filesystem Configuration

Filesystem Configuration

Since Red Hat Linux may be distributed across several disk partitions, you need to choose which disk partitions go with which filesystem.

2.4.11.1 Selecting the Root Partition

Selecting the Root Partition

If you are performing a full install, the installation program presents a list of the Linux partitions it can find and prompts you to choose a root partition. The root partition (or root filesystem) is the one which holds everything necessary to boot your Red Hat Linux system; it is mounted on / (the root directory) when your system boots. Select the root partition you wish to use and press [Enter].

If you are performing an upgrade, the installation program tries to find your root partition automatically; if it finds one, it goes on to the next step.

2.4.11.2 Other Partitions

Other Partitions

The next dialog presents a list of most of the disk partitions on your system (including MS-DOS and other partitions Linux can read), giving you the opportunity to assign other partitions to different parts of the filesystem. The partitions you assign will be automatically mounted when your Red Hat Linux system boots. Select the partition you wish to assign and press [Enter] (or choose Edit); then enter the mount point for that partition, e.g., /usr (see Figure 12).

Figure 12:Filesystem Configuration

Additionally, Red Hat Linux allows you to mount NFS volumes when your system boots; this allows directory trees to be shared across a network. Choose Add NFS; then enter the hostname of the NFS server, the path to the NFS volume, and the local mount point for that volume (see Figure 13).

Figure 13:Adding an NFS Mount

2.4.11.3 Formatting Partitions

Formatting Partitions

The next installation dialog presents a list of partitions to format. Most partitions should be formatted, especially if they are newly created; however, partitions such as /home or /usr/local do not need to be formatted if they contain data you wish to keep. Select each partition to format and press [Space]. If you wish to check for bad blocks while formatting each filesystem, select Check for bad blocks during format. Press OK.

2.4.12 Selecting and Installing Packages

Selecting and Installing Packages

After your partitions are configured and formatted, you are ready to select packages to install. You can select system components, which group packages together according to function, select individual packages, or select a combination of the two.

2.4.12.1 Selecting System Components

Selecting System Components

System components group packages together according to the function your Red Hat Linux system should be able to perform: for example, C Development, Networked Workstation, or Web Server. Select each component you wish to install and press [Space]. Selecting Everything installs all packages included with Red Hat Linux (see Figure 14).

If you wish to select or deselect individual packages as well as system components, choose Select individual packages.

Figure 14:Selecting System Components

2.4.12.2 Selecting Individual Packages

Selecting Individual Packages

After selecting the components you wish to install, you may select or deselect individual packages. The installation program presents a list of the package groups available; select a group to examine and press [Enter]. The installation program presents a list of the packages in that group, which you may select or deselect using [Space]. You may view a detailed description of a package by pressing [F1] (see Figure 15). When you are finished selecting individual packages, press OK in the Select Group dialog.

Please Note: Some packages (such as the kernel and certain libraries) are required for every Red Hat Linux system and are not available to select or deselect.

Figure 15:Selecting Packages

2.4.12.3 Package Dependencies

Package Dependencies

Many software packages, in order to work correctly, depend on other software packages or libraries to be installed on your system. For example, many of the graphical Red Hat system administration tools require the python and pythonlib packages. To make sure your system has all the packages it needs in order to be fully functional, Red Hat Linux checks dependencies each time you install or uninstall software packages.

After you have finished selecting packages to install, the installation program checks the list of selected packages for dependencies. If any package requires another package which you have not selected to install, the program presents a list of these unresolved dependencies and gives you the opportunity to resolve them (see Figure 16). If you simply press OK, the program will resolve them automatically by adding all required packages to the list of selected packages.

Figure 16:Unresolved Dependencies

2.4.12.4 Package Installation

Package Installation

After all package dependencies are resolved, the installation program begins to install packages; it leaves a complete log of what it installs in /tmp/install.log on your Red Hat Linux system.

2.4.13 Configuring a Mouse

Configuring a Mouse

To configure your mouse, choose the mouse type that best matches your mouse and press [Enter]. If you have a 2 button mouse and want to emulate the third (middle) button by clicking the left and right buttons at the same time, choose Emulate 3 Buttons.

If you choose a serial mouse, the next dialog prompts you for the serial (COM) port your mouse is connected to. Choose the correct port and press [Enter].

Please Note: If your mouse is connected to a PS/2 mouse port, you should select PS/2 Mouse, no matter what kind of mouse it is.

If you wish to change your mouse configuration after you have booted your Red Hat Linux system, you may use the /usr/sbin/mouseconfig command.

2.4.14 Configuring X Windows

Configuring X Windows

After setting up your mouse, if you installed the X Windows packages, you have the opportunity to configure your X server. If you did not choose to install the X Window System, you may skip to Section 2.4.15 below.

2.4.14.1 Configuring the Metro-X Server

Configuring the Metro-X Server

If you are installing from an Official Red Hat Linux/Intel CD, you may install one copy of MetroLink's Metro-X server, a high-quality commercial X server for Linux. Please see the MetroLink license (paper copy) accompanying your Red Hat Linux CD for license information. If you choose to use Metro-X, the install program launches the Metro-X configuration utility configX; please see Chapter 5, Section 5.3 for more information on how to use configX.

2.4.14.2 Configuring an XFree86 Server

Configuring an XFree86 Server

If you wish to use XFree86 (because Metro-X may not support your video card, because you have already installed Metro-X on another machine, because Metro-X was not included with your copy of Red Hat Linux/Intel, or because you simply prefer to use XFree86), the install program launches the Xconfigurator utility, which is described in detail in Chapter 5, Section 5.2.

Xconfigurator first presents a list of video cards. Select your video card from the list and press [Enter]. If your video card does not appear on the list, XFree86 may not support it; however, if you have technical knowledge about your card, you may choose Unlisted Card and attempt to configure it anyway.

Once you have selected your video card, the installation program installs the appropriate XFree86 server, and Xconfigurator presents a list of monitors. If your monitor appears on the list, select it and press [Enter]. Otherwise, select Custom. If you do select Custom, Xconfigurator prompts you to select the horizontal sync range and vertical sync range of your monitor (these values are generally available in the documentation which accompanies your monitor, or from your monitor's vendor or manufacturer).

Please Note: It is not recommended to select a monitor ``similar'' to your monitor unless you are certain that the monitor you are selecting does not exceed the capabilities of your monitor. If you do so, it is possible you may overclock your monitor and damage or destroy it.

Next, Xconfigurator prompts you for the amount of video memory installed on your video card. If you are not sure, please consult the documentation accompanying your video card. It ought not to damage your video card by choosing more memory than is available, but the XFree86 server may not start correctly if you do.

If the video card you selected might have a video clockchip, Xconfigurator presents a list of clockchips. The recommended choice is No Clockchip Setting, since XFree86 can automatically detect the proper clockchip in most cases.

Finally, Xconfigurator prompts you to select the video modes you wish to use; select one or more modes by pressing [Space]. Xconfigurator then writes a configuration file containing all of your choices to /etc/X11/XF86Config.

2.4.15 Configuring Networking

Configuring Networking

After assisting you in configuring an X server, the installation program gives you an opportunity to configure (or reconfigure) networking. If you are installing from CD-ROM or from a local hard disk, the installation program asks if you want to configure networking. If you choose No, your Red Hat Linux system will be a standalone workstation. If you choose Yes, you may configure networking as described below.

If you are installing Red Hat Linux via NFS or FTP, you will have already configured temporary networking information. The install program offers you three choices:

2.4.15.1 Network Configuration Dialogs

Network Configuration Dialogs

After the installation program has found your network card, it presents several dialogs for configuring your sytem's permanent TCP/IP networking. Figure 5 contains example networking information.

The first dialog asks you for IP and other network addresses (see Figure 6). Enter the IP address you are using during installation and press [Enter]. The installation program attempts to guess your Netmask based on your IP address; you may change the netmask if it is incorrect. Press [Enter]. The installation program guesses the Default gateway and Primary nameserver addresses from your IP address and netmask; you may change them if they are incorrect. Choose OK to continue.

The second dialog prompts you for a domain name, a hostname, and other networking information (see Figure 7). Enter the Domain name for your system and press [Enter]; the installation program carries the domain name down to the Host name field. Enter the hostname you are using in front of the domain name to form a fully qualified domain name (FQDN). If your network has more than one nameserver, you may enter IP addresses for additional nameservers in the Secondary nameserver and Tertiary nameserver fields. Choose OK to continue.

2.4.16 Configuring a Printer

Configuring a Printer

After you have set up networking, the installation program asks whether you would like to configure a printer. If you choose Yes, a series of dialogs will assist you in configuring your printer. The following information applies to all printers:

Local printers also require the following information:

Remote LPD printers also require the following information:

LAN Manager printers also require the following information:

When you have finished configuring a printer, the installation program will ask you to confirm the choices you made. After you confirm them, you may configure another printer, or you may continue with the installation.

2.4.17 Configuring the Clock

Configuring the Clock

Next, the installation program presents a dialog to help you configure your Red Hat Linux system's timezone.

If you wish to set the hardware (CMOS) clock to GMT (Greenwich Mean Time, also known as UTC, or Coordinated Universal Time), select Hardware clock set to GMT. Setting your hardware clock to GMT means your Red Hat Linux system will properly handle daylight savings time, if your timezone uses it. Most networks use GMT.

Select the timezone your system will be operating in from the list, and press [Enter].

If you wish to change your timezone configuration after you have booted your Red Hat Linux system, you may use the /usr/sbin/timeconfig command.

2.4.18 Setting a Root Password

Setting a Root Password

After you have set up your system's timezone, the installation program prompts you to set a root password for your system; this is the password you will use to log into your Red Hat Linux system for the first time.

The root password must be at least six characters long; the password you type is not echoed to the screen. You must enter the password twice; if the two passwords do not match, the installation program will ask you to enter them again. You ought to make the root password something you can remember, but not something that is easy for someone else to guess. Your name, your phone number, qwerty, password, root, 123456, and anteater are all examples of poor passwords. Good passwords mix numerals with upper and lower case letters and do not contain dictionary words: Aard387vark or 420BMttNT, for example. Remember that the password is case-sensitive. Write down this password and keep it in a secure place.

Please Note: The root user (also known as the superuser) has complete access to the entire system; for this reason, logging in as the root user is best done only to perform system maintenance or administration, so that critical system files are not inadvertently changed, moved, or deleted. Please see Section 8.1 for instructions on how to add a user for yourself after you reboot your system.

2.4.19 Installing LILO

Installing LILO

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 several places:

The Master Boot Record (MBR)
is the recommended place to install LILO, unless another operating system loader (e.g., System Commander or OS/2's Boot Manager) is already installed there. When your machine boots, LILO starts and presents the boot: prompt; you can boot Red Hat Linux or any other operating system you configure LILO to boot (see below).

The first sector of your root partition
is recommended if you are already using another boot loader on your system (such as OS/2's Boot Manager); then you can setup that boot loader to start LILO and boot Red Hat Linux.

The first sector of a floppy diskette
is an alternative either of the above options; to boot Red Hat Linux, insert the LILO diskette into your machine's floppy drive and reboot. LILO starts from the floppy and presents the boot: prompt.

Select the location you wish to install LILO and press OK. If you do not wish to install LILO, press Skip.

Figure 17:Installing LILO

2.4.19.1 Limitations of LILO

Limitations of LILO

LILO is subject to some limitations imposed by most PC BIOSes. Specifically, most BIOSes can't access more than two hard drives and they can't access beyond cylinder 1023 (the 1024th cylinder) of any drive. Some more recent BIOSes do not have these limitations.

All the things which LILO needs to access at boot time (including the kernel) are located in the /boot directory of your root partition.

Here are the ``rules'' of where /boot must live if you want to install LILO on a hard drive:

  1. If you have 2 IDE (or EIDE) drives, /boot must live on one of them. This also includes any IDE CD-ROM drives on your primary controller. If you have one IDE hard drive, and one IDE CD-ROM on the primary controller, /boot must live on the hard drive.

  2. If you have one IDE (or EIDE) drive and one or more SCSI drives, /boot must live either on the IDE drive or the SCSI drive that is at ID 0. No other SCSI IDs will work.

  3. If you have SCSI only, /boot must live on a drive at ID 0 or ID 1. No other SCSI IDs will work.

  4. In any case, /boot must live below cylinder 1023. For IDE (or EIDE) drives, this generally means below the 512 MB mark; for SCSI drives, it's generally below the 1 GB mark.

2.4.19.2 Adding Options to the LILO Boot Command Line

Adding Options to the LILO Boot Command Line

Finally, the installation program will ask if you wish to add default options to the LILO boot command. Any options you enter will be passed to the Linux kernel every time it boots. If you have an LBA drive, check Use linear mode. Press OK when finished.

Figure 18:LILO options

2.4.19.3 Alternatives to LILO

Alternatives to LILO

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

LOADLIN
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 floppy) and then copy the kernel an MS-DOS partition. LOADLIN is available from
ftp://sunsite.unc.edu/system/Linux-boot/ and sunsite's various mirror sites.

SYSLINUX
is an MS-DOS program very similar to LOADLIN; it is also available from ftp://sunsite.unc.edu/system/Linux-boot/ and sunsite's various mirror sites.

Some commercial bootloaders,
such as System Commander, are able to boot Linux (but may still require LILO to be installed in your Linux root partition).

2.4.20 Finishing Up ...or Starting Up

Finishing Up ...or Starting Up

After you have completed LILO installation, the installation program will reboot your system. Please don't forget to remove the installation floppy from the diskette drive.

At the boot: prompt, press [Enter] and watch your Red Hat Linux system boot. When it presents the login: prompt, enter root; at the Password: prompt, type the root password you set for your machine in Section 2.4.18.


Next Up Previous Contents Index