How to manually mount a USB Drive in Redhat
Inserting a USB storage device
- Plug in the device.
- Check the contents of the file /var/log/dmesg to see what the system named the device. (You can use the command dmesg as well.) It should appear as a SCSI device, so the name should be similar to /dev/sda or /dev/sdb.
- Use the command fdisk -l
, replacing with the device name from /var/log/dmesg to determine the partitions on the device. Most USB flash drives and other portable storage media types have only one partition, so the output of the fdisk command will most likely be something like /dev/sda1 or /dev/sdb1. - Create a directory (mkdir) to serve as the drive's mount point. It is recommended to use a name that is easy to remember like/mnt/usb.
- Mount the device with the mount command. If the device was detected as /dev/sda and the fdisk command showed/dev/sda1 as your partition, the command would be:
mount /dev/sda1 /mnt/usb