Questo contenuto non è disponibile nella lingua selezionata.
3.2. Making Installation USB Media
3.2.1. Making Installation USB Media on Linux
Warning
Procedure 3.1. Making USB Media on Linux
- Connect a USB flash drive to the system and execute the
dmesg
command. A log detailing all recent events will be displayed. At the bottom of this log, you will see a set of messages caused by the USB flash drive you just connected. It will look like a set of lines similar to the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow [ 170.171135] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 170.171135] sd 5:0:0:0: [sdb] Attached SCSI removable disk
Note the name of the connected device - in the above example, it issdb
. - Log in as
root
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow su -
$ su -
Provide your root password when prompted. - Make sure that the device is not mounted. First, use the
findmnt device
command and the device name you found in the earlier steps. For example, if the device name issdb
, use the following command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow findmnt /dev/sdb
# findmnt /dev/sdb
If the command displays no output, you can proceed with the next step. However, if the command does provide output, it means that the device was automatically mounted and you must unmount it before proceeding. A sample output will look similar to the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow findmnt /dev/sdb
# findmnt /dev/sdb TARGET SOURCE FSTYPE OPTIONS /mnt/iso /dev/sdb iso9660 ro,relatime
Note theTARGET
column. Next, use theumount target
command to unmount the device:Copy to Clipboard Copied! Toggle word wrap Toggle overflow umount /mnt/iso
# umount /mnt/iso
- Use the
dd
command to write the installation ISO image directly to the USB device:Copy to Clipboard Copied! Toggle word wrap Toggle overflow dd if=/image_directory/image.iso of=/dev/device bs=blocksize
# dd if=/image_directory/image.iso of=/dev/device bs=blocksize
Replace /image_directory/image.iso with the full path to the ISO image file you downloaded, device with the device name as reported by thedmesg
command earlier, and blocksize with a reasonable block size (for example,512k
) to speed up the writing process. Thebs
parameter is optional, but it can speed up the process considerably.Important
Make sure to specify the output as the device name (for example,/dev/sda
), not as a name of a partition on the device (for example,/dev/sda1
).For example, if the ISO image is located in/home/testuser/Downloads/rhel-server-7-x86_64-boot.iso
and the detected device name issdb
, the command will look like the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow dd if=/home/testuser/Downloads/rhel-server-7-x86_64-boot.iso of=/dev/sdb bs=512k
# dd if=/home/testuser/Downloads/rhel-server-7-x86_64-boot.iso of=/dev/sdb bs=512k
- Wait for
dd
to finish writing the image to the device. Note that no progress bar is displayed; the data transfer is finished when the#
prompt appears again. After the prompt is displayed, log out from theroot
account and unplug the USB drive.
Note
inst.stage2=
boot option is specified. Refer to Section 23.1, “Configuring the Installation System at the Boot Menu” for information about the inst.stage2=
boot option.
3.2.2. Making Installation USB Media on Windows
Note
Important
Procedure 3.2. Making USB Media on Windows
- Download and install Fedora Media Writer.
- Download the Red Hat Enterprise Linux ISO image you want to use to create the media. (See Chapter 2, Downloading Red Hat Enterprise Linux for instructions on obtaining ISO images.)
- Plug in the USB drive you will be using to create bootable media.
- Open Fedora Media Writer.
- In the main window, click Custom Image and select the downloaded Red Hat Enterprise Linux ISO image.
- From the drop-down menu, select the drive you want to use. If the drive does not appear, verify that the USB drive is connected and restart Fedora Media Writer.
- Click Write to disk. The boot media creation process will begin. Do not unplug the drive until the operation completes. Depending on the size of the ISO image and the write speed of the USB drive, writing the image can take several minutes.
Figure 3.1. Fedora Media Writer
- When the creation process finishes and the
Complete!
message appears, unmount the USB drive using the Safely remove hardware icon in the system's notification area.
3.2.3. Making Installation USB Media on Mac OS X
dd
command line tool to write the installation image to a USB flash drive. Note that some steps involve use of the sudo
command, which is only available when logged in with an administrator account that requires a password.
Warning
Procedure 3.3. Making USB Media on Mac OS X
- Connect a USB flash drive to the system and identify the device path with the
diskutil list
command. The device path has the format of/dev/disknumber
, where number is the number of the disk. The disks are numbered starting at zero (0). Disk 0 is likely to be the OS X recovery disk, and Disk 1 is likely to be your main OS X installation. In the following example, it isdisk2
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow diskutil list
$ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *500.3 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage 400.0 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 4: Apple_CoreStorage 98.8 GB disk0s4 5: Apple_Boot Recovery HD 650.0 MB disk0s5 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS YosemiteHD *399.6 GB disk1 Logical Volume on disk0s1 8A142795-8036-48DF-9FC5-84506DFBB7B2 Unlocked Encrypted /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *8.0 GB disk2 1: Windows_NTFS SanDisk USB 8.0 GB disk2s1
To identify your USB flash drive, compare theNAME
,TYPE
andSIZE
columns to what you know about your flash drive. For example, theNAME
should be the same as the title of the flash drive icon in the Finder. You can also compare these values to those in the flash drive's information panel; right-click on the drive icon and select Get Info. - Use the
diskutil unmountDisk
command to unmount the flash drive's filesystem volumes:Copy to Clipboard Copied! Toggle word wrap Toggle overflow diskutil unmountDisk /dev/disknumber
$ diskutil unmountDisk /dev/disknumber Unmount of all volumes on disknumber was successful
When you do this, the icon for the flash drive disappears from your desktop. If it does not, you might have identified the wrong disk. If you attempt to unmount the system disk accidentally, you get afailed to unmount
error. - Use the
dd
command as a parameter of thesudo
command to write the ISO image to the flash drive:Copy to Clipboard Copied! Toggle word wrap Toggle overflow sudo dd if=/path/to/image.iso of=/dev/rdisknumber bs=1m>
$ sudo dd if=/path/to/image.iso of=/dev/rdisknumber bs=1m>
Note
Mac OS X provides both a block (/dev/disk*
) and character device (/dev/rdisk*
) file for each storage device. Writing an image to the/dev/rdisknumber
character device is faster than to the/dev/disknumber
block device.Example 3.1. Writing an ISO Image to a Disk
To write the/Users/user_name/Downloads/rhel-server-7-x86_64-boot.iso
file to the/dev/rdisk2
device:Copy to Clipboard Copied! Toggle word wrap Toggle overflow sudo dd if=/Users/user_name/Downloads/rhel-server-7-x86_64-boot.iso of=/dev/rdisk2
$ sudo dd if=/Users/user_name/Downloads/rhel-server-7-x86_64-boot.iso of=/dev/rdisk2
- Wait for the command to finish. Note that no progress bar is displayed; however, to check the status of the operation while it is still running, press Ctrl+t in the terminal:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow load: 1.02 cmd: dd 3668 uninterruptible 0.00u 1.91s 112+0 records in 111+0 records out 116391936 bytes transferred in 114.834860 secs (1013559 bytes/sec)
load: 1.02 cmd: dd 3668 uninterruptible 0.00u 1.91s 112+0 records in 111+0 records out 116391936 bytes transferred in 114.834860 secs (1013559 bytes/sec)
- The speed of the data transfer depends on the speed of your USB ports and the flash drive. After the prompt is displayed again, the data transfer is finished. You can then unplug the flash drive.