Mount USB Drive in Linux

1. Plug in your USB drive and run dmesg to view the USB drive information on drive partition.

# more /var/log/dmesg
[c]
....
......
scsi1 .....
Vendor: Panasonic      Model: Panasonic          Rev: 2.5v
Type.....
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0

Additional note:
• Most USB flash drives and other portable storage media types have only one partition, so the output will be like /dev/sda1 or /dev/sdb1.

2. Create a new directory under /mnt

# mkdir /mnt/<your-usb-drive-name>

3. Mount the USB

# mount -t vfat /dev/sda1 /mnt/<your-usb-drive-name>

4. Access the USB now!

# cd /mnt/<your-usb-drive-name>
# ls

You May Also Like

Leave a Reply?