Mounting a USB Thumb Drive in Linux

Fedora.jpg

I got a thumb drive for Christmas and I wanted to put a few things on it from my linux workstation but I wasn't really sure how to mount it properly. What device did it show up as? There are a few things that I needed to know, but it seemed pretty difficult to find out. Then I talked with a friend that had done this before and he had a few great pointers.

First, find out the device by looking in /dev/disk/by-label. It's got them organized by their labels, and all these thumb drives are going to come with some default label. So now that we have the device it's a simple process of mounting the filesystem:

  $ sudo mkdir /mnt/thumb
  $ sudo mount /dev/disk/by-label/MY_DRIVE /mnt/thumb -t auto

and then it's ready to use. When you're done, simply unmount it:

  $ sudo umount /mnt/thumb

and you can pull it out. Pretty sweet.