Find and mount the
USB partition.
Typically the USB device is enumerated as
/dev/sda
but that is
not always the case. Use the
lsblk
command to find
the USB device. An example
lsblk
output is below.
The capacity of the USB drive is expected to be approximately 30GiB, therefore
the USB drive is enumerated as device
/dev/sda
in the example
below:
$ lsblk
sdd 8:48 0 894.3G 0 disk
sde 8:64 0 1.7T 0 disk
sdc 8:32 0 894.3G 0 disk
├─sdc2 8:34 0 1G 0 part /boot
├─sdc3 8:35 0 893.1G 0 part
│ ├─ol-swap 252:1 0 4G 0 lvm [SWAP]
│ ├─ol-home 252:2 0 839.1G 0 lvm /home
│ └─ol-root 252:0 0 50G 0 lvm /
└─sdc1 8:33 0 200M 0 part /boot/efi
sda 8:0 1 29.3G 0 disk
├─sda2 8:2 1 8.5M 0 part
└─sda1 8:1 1 4.3G 0 part
The
dmesg
command also
provides information about how the operating system enumerates devices. In the
example below, the
dmesg
output indicates
the USB drive is enumerated as device /dev/sda.
Note:
The output is shortened here for display purposes.
$ dmesg
...
[8850.211757] usb-storage 2-6:1.0: USB Mass Storage device detected
[8850.212078] scsi host1: usb-storage 2-6:1.0
[8851.231690] scsi 1:0:0:0: Direct-Access SanDisk Cruzer Glide 1.00 PQ: 0 ANSI: 6
[8851.232524] sd 1:0:0:0: Attached scsi generic sg0 type 0
[8851.232978] sd 1:0:0:0: [sda] 61341696 512-byte logical blocks: (31.4 GB/29.3 GiB)
[8851.234598] sd 1:0:0:0: [sda] Write Protect is off
[8851.234600] sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
[8851.234862] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[8851.255300] sda: sda1 sda2
...
The USB device should contain at least two partitions. One
is the boot partition and the other is the install media. The install media is
the larger of the two partitions. To find information about the partitions use
the
fsdisk
command to list
the filesystems on the USB device. Use the device name discovered via the steps
outlined above. In the examples above, the USB device is
/dev/sda
.
$ fdisk -l /dev/sda
Disk /dev/sda: 31.4 GB, 31406948352 bytes, 61341696 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x137202cf
Device Boot Start End Blocks Id System
/dev/sda1 * 0 8929279 4464640 0 Empty
/dev/sda2 3076 20503 8714 ef EFI (FAT-12/16/32)
In the example output above, the
/dev/sda2
partition is
the EFI boot partition. Therefore the install media files are on
/dev/sda1
. Use the
mount
command to mount
the install media file system. The same command without any options is used to
verify the device is mounted to
/media/usb
.
$ mount /dev/sda1 /media/usb
$ mount
...
/dev/sda1 on /media/usb type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)