2.4. Can You Install Using the CD-ROM or DVD?
- Insert a blank, writeable CD into your computer's CD or DVD burner. On some computers, a window opens and displays various options when you insert the disc. If you see a window like this, look for an option to launch your chosen disc burning program. If you do not see an option like this, close the window and launch the program manually.
- Launch your disc burning program. On some computers, you can do this by right-clicking (or control-clicking) on the image file and selecting a menu option with a label like Copy image to CD, or Copy CD or DVD image. Other computers might provide you with a menu option to launch your chosen disc burning program, either directly or with an option like . If none of these options are available on your computer, launch the program from an icon on your desktop, in a menu of applications such as the menu on Windows operating systems, or in the Mac
- In your disc burning program, select the option to burn a CD from an image file. For example, in Nero Burning ROM, this option is called and is located on the menu.Note that you can skip this step when using certain CD burning software; for example, Disk Utility on Mac OS X does not require it.
- Browse to the disc image file that you downloaded previously and select it for burning.
- Click the button that starts the burning process.
2.4.1. Alternative Boot Methods
- Boot DVD/CD-ROM
- If you can boot using the DVD/CD-ROM drive, you can create your own CD-ROM to boot the installation program. This may be useful, for example, if you are performing an installation over a network or from a hard drive. Refer to Section 2.4.2, “Making an Installation Boot CD-ROM” for further instructions.
- USB pen drive
- If you cannot boot from the DVD/CD-ROM drive, but you can boot using a USB device, such as a USB pen drive, the following alternative boot method is available.Your system firmware must support booting from a USB device in order for this boot method to work. Refer to the hardware vendor's documentation for details on specifying the device from which the system boots.
ImportantWhen configuring partitions and file systems during installation, ensure you verify the USB device's size, name, and type. The order in which names are assigned to USB-attached storage devices can vary because certain devices may take longer to initialize than others. Consequently, a device may receive a different name than you expect, such as
- Make a copy of the Red Hat Enterprise Linux 5 installation files available. Either:
- Insert the Red Hat Enterprise Linux 5 installation DVD or CD-ROM#1.
- Mount an image of the Red Hat Enterprise Linux 5 installation DVD or CD-ROM#1.
- Ensure that the installation files are available on a network location accessible by your system, for example, on an NFS share that it can access.
- Attach a USB flash drive to your system. The following steps presume a system that runs Red Hat Enterprise Linux 5.
dmesgto identify the device name for the drive. If you run
dmesgshortly after you attach the drive, the device name appears in the most recent lines of output. For example, the following
dmesgoutput shows a flash drive that receives the device name
Initializing USB Mass Storage driver... scsi2 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 5 usb-storage: waiting for device to settle before scanning usbcore: registered new driver usb-storage USB Mass Storage support registered. Vendor: USB 2.0 Model: Flash Disk Rev: 5.00 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdb: 2043904 512-byte hdwr sectors (1046 MB) sdb: Write Protect is off sdb: Mode Sense: 0b 00 00 08 sdb: assuming drive cache: write through SCSI device sdb: 2043904 512-byte hdwr sectors (1046 MB) sdb: Write Protect is off sdb: Mode Sense: 0b 00 00 08 sdb: assuming drive cache: write through sdb: sdb1 sd 2:0:0:0: Attached scsi removable disk sdb sd 2:0:0:0: Attached scsi generic sg1 type 0 usb-storage: device scan complete
- Unmount any partitions on the flash drive that are currently mounted. It is likely that your system automatically mounted any available partitions when you attached the flash drive.
- Use the
mountcommand to find any mounted partitions on the flash drive. For example, the following output shows a single partition on
/dev/sdbis mounted, the partition named
$ mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext3 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sdb1 on /media/BOOTUSB type vfat (rw,nosuid,nodev,uid=500,utf8,shortname=mixed,flush)
- Unmount partitions with the
umountcommand. For example, to unmount
umountfor each partition on the flash drive that is mounted.
fdiskto partition the flash drive to contain a single partition only, with the following parameters:
- partition type is set to
- flagged as bootable.
mkdosfsto format the partition created in the previous step as FAT. For example:
- Mount the partition. For example:
mount /dev/sdb1 /mnt
- Copy the contents of the
isolinux/directory of the installation DVD or CD-ROM#1 onto the flash drive.
- Rename the configuration file from
syslinux.cfg. For example, if the flash drive is mounted on
cd /mnt/; mv isolinux.cfg syslinux.cfg
- If necessary, edit
syslinux.cfgfor your particular environment. For example, to configure the installation to use a kickstart file shared over NFS, specify:
- Copy the
images/pxeboot/initrd.imgfile from the installation DVD or CD-ROM#1 onto the flash drive.
- Unmount the flash drive. For example:
- Make the USB flash drive bootable. For example:
- Mount the flash drive again. For example:
mount /dev/sdb1 /mnt
- Install the GRUB boot loader on the USB flash drive. For example:
grub-install --root-directory=/mnt /dev/sdb
- Verify that the USB flash drive has a /boot/grub directory. If it does not, create the directory manually; for example:
mkdir -p /mnt/boot/grub
- Create the
boot/grub/grub.conffile on the flash drive as follows:
default=0 timeout=5 root (hd1,0) title Red Hat Enterprise Linux installer kernel /vmlinuz initrd /initrd.img
- Unmount the flash drive. For example:
- Detach the USB flash drive.
- Attach the USB disk to the system on which you wish to install Red Hat Enterprise Linux.
- Boot the target system from the USB flash drive.
2.4.2. Making an Installation Boot CD-ROM
isolinux(not available for Itanium systems) is used for booting the Red Hat Enterprise Linux installation CD. To create your own CD-ROM to boot the installation program, use the following instructions:
isolinux/directory from the Red Hat Enterprise Linux DVD or CD #1 into a temporary directory (referred to here as
<path-to-workspace>) using the following command:
<path-to-workspace>directory you have created:
chmod u+w isolinux/*
mkisofs -o file.iso -b isolinux.bin -c boot.cat -no-emul-boot \ -boot-load-size 4 -boot-info-table -R -J -v -T isolinux/
file.isoand located in
<path-to-workspace>) to a CD-ROM as you normally would.