mount_a_usb_flash_drive
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mount_a_usb_flash_drive [2012/08/18 20:05] – created juckins | mount_a_usb_flash_drive [2025/03/20 18:53] (current) – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Mount a USB Flash Drive ==== | ||
+ | |||
[[http:// | [[http:// | ||
+ | < | ||
+ | |||
+ | Mounting a USB flash drive in GNOME (or another Linux desktop environment) is as easy as plug and play. Yet, occasionally, | ||
+ | |||
+ | |||
+ | Become root. | ||
+ | |||
+ | $ sudo -s | ||
+ | |||
+ | |||
+ | |||
+ | Plug in USB drive to a USB port. | ||
+ | |||
+ | Identify the correct partition name corresponding to the USB drive. | ||
+ | |||
+ | For my Debian system, it is sda, and partition 1. | ||
+ | |||
+ | $ dmesg |grep -i 'SCSI device' | ||
+ | ... | ||
+ | SCSI device sda: 3903488 512-byte hdwr sectors (1999 MB) | ||
+ | |||
+ | |||
+ | Alternatively, | ||
+ | |||
+ | $ grep SCSI / | ||
+ | ... | ||
+ | Dec 1 11:52:26 tiger kernel: SCSI device sda: 3903488 512-byte hdwr sectors (1999 MB) | ||
+ | |||
+ | |||
+ | Mount the partition to an existing mount point (directory). | ||
+ | |||
+ | $ mkdir -p /mnt/myusb | ||
+ | $ mount -t vfat -o rw,users /dev/sda1 /mnt/myusb | ||
+ | |||
+ | |||
+ | users give non-root users the ability to unmount the drive. | ||
+ | |||
+ | You can verify the drive is indeed mounted as follows: | ||
+ | |||
+ | $ mount | ||
+ | |||
+ | |||
+ | You should see a line in the output that looks like: | ||
+ | |||
+ | |||
+ | /dev/sda1 on /mnt/myusb type vfat (rw, | ||
+ | |||
+ | |||
+ | |||
+ | To retrieve the USB drive: | ||
+ | |||
+ | |||
+ | You must unmount the partition before physically unplugging the USB device. | ||
+ | |||
+ | |||
+ | $ umount /mnt/myusb | ||
+ | |||
+ | |||
+ | You can run the mount command again (with no argument) to verify that the volume is indeed mounted. | ||
+ | |||
+ | Unplug USB drive. | ||
+ | | ||
+ | </ | ||
mount_a_usb_flash_drive.1345334713.txt.gz · Last modified: 2012/08/18 20:05 by juckins