-->
Page 11
Page 12
One of the obvious differences between Red Hat Linux and other versions of Linux is the ease in which Red Hat can be installed. The process is quite straightforward and automated by the Red Hat installation program. The installation program can handle many different system configurations and problems nicely; so most problems are taken care of for you.
Before looking at the different methods used to install the operating system, you should understand the hardware system on which the operating system will be installed. After examining the hardware, the rest of this chapter guides you, step-by-step, through the installation process. This process is broken down, showing some of the differences between the four basic methods of installation. This chapter briefly presents the installation of LILO (Linux Loader), but leaves many of the details to Chapter 3, "LILO."
Understanding the hardware is essential for a successful installation of Red Hat Linux. Therefore, you should take a moment now and familiarize yourself with your hardware. Be prepared to answer the following questions:
a. Your IP address?
b. Your netmask?
c. Your gateway address?
d. Your Domain Name Server's IP address?
e. Your domain name?
Page 13
f. Your hostname? (I would suggest a hostname even if you were not connected to a network, because it helps give your computer some personality.)
g. Your type of network card?
NOTE |
If you are running OS/2, you must create your disk partitions with the OS/2 partitioning software; otherwise, OS/2 might not recognize the disk partitions. During the installation, do not create any new partitions, but do set the proper partition types for your Linux partitions by using the Linux fdisk. |
After you have answered these questions, the rest of the installation is fairly easy. The entire process is menu-driven, which means you don't have to remember all the configuration information you have to remember for other Linuxes you might want to install.
The installation or upgrade of Red Hat Linux can be done through any of several methods. Depending on which method you use, you need either one or two formatted high-density (1.44MB) 3.5-inch disks.
Installing from CD-ROM or via NFS requires only a boot disk. Installing from a hard
drive, via FTP, from an SMB volume, or from a PCM-CIA device (which includes PCM-CIA
CD-ROMs) requires both a boot disk and a supplemental disk.
Before you make the boot and supplemental disks, label the disks so that you will know which is which. The process for making the disks is the same, except for one difference. When the program asks for the filename, you enter boot.img for the boot disk, and supp.img for the supplemental disk. To make the floppies under MS-DOS, you need to use these commands (assuming your CD-ROM is drive D):
d: cd \images \dosutils\rawrite.exe
rawrite asks for the filename of the disk image. Enter boot.img. Insert a floppy into drive A. It will then ask for a disk to write to. Enter a:. Label the disk Red Hat boot disk. Run rawrite
Page 14
again, enter supp.img, insert another disk, and type a:. Label the disk Red Hat supplemental disk.
To create the disks under Linux, you can use the
dd utility. Mount the Red Hat Linux
CD-ROM, insert a floppy in the drive (do not mount it), and change directories
(cd) to the images directory on the CD-ROM. Use this command to create the boot disk:
dd if=boot.img of=/dev/fd0 bs=1440k
To make the supplemental disk, use the following command:
dd if=supp.img of=/dev/fd0 bs=1440k
If you have MS-DOS on your computer, you can install without using a boot floppy. The Red Hat installation program can be started by using these commands:
d: cd \dosutils autoboot.bat
Red Hat's installation goes beyond just a simple sequence of dialog boxes. In fact, while installing, you can look at different diagnostic messages during the installation process. There are actually five different virtual consoles that you can switch between, which can be helpful if problems are encountered during installation. Table 2.1 shows the five consoles, the key sequence to switch to each console, and the purpose of that particular console.
Table 2.1. Virtual console information.
Console | Keystroke | Purpose |
1 | Alt+F1 | Installation dialog box |
2 | Alt+F2 | Shell prompt |
3 | Alt+F3 | Install log (messages from the install program) |
4 | Alt+F4 | System log (messages from the kernel and other system programs) |
5 | Alt+F5 | Other messages |
Most of the installation time will be spent in console 1 working through the dialog boxes.
The dialog boxes consist of a simple question or statement. From this information, you choose one or more responses. To choose these responses, it is necessary to navigate the boxes. In most