Introduction: Mount USB Drives on Wheezy (Raspberry Pi 2 With Emulation Station)

About: My brain is a Raspberry Pi and I eat only micro ATX motherboards, occasionally munching on open-source software like Blender as a snack.

Let's say your using Wheezy Linux (applies to everyone running Emulation Station on a Pi 2), and you need to copy files over from a USB stick.

Wheezy, unlike most flavors of Linux, doesn't automatically mount USB devices. It knows it's there, but without doing the following you can't access the contents by standard means.

Step 1: Insert Your USB Stick

I hope this doesn't need explanation.

Step 2:

To see if your device is recognized, go to the command line and type:
sudo lsusb

Look for your devices name in the list.

Step 3: Find Where It's Located

If you see your device, type in:
sudo fdisk -l
(That's minus L, not minus 1)

This returns some choppy text, but scan for a section with the text "Disk /dev/sda".
Around here you should see a disk size indicator identical to your USB stick.

Look at the bottom of this section and see where it says "Device Boot".
Under this is a file path. In my case it is "/dev/sda1".

Step 4: Make a Mount Directory

If you aren't at the root directory, move there using this:
cd ..

From here, make a directory titled "mnt". Use this:
mkdir mnt

Now, we can mount the USB stick.
To do this, type "mount -t auto" followed by the USB stick's location "/dev/sda1" and the mount location "/mnt".
All together it looks like this:
mount -t auto /dev/sda1 /mnt

If done right you should have access to the directory and be able to see your files.

Step 5: Get Your Stuff

Using the file navigator, I can read the files from the USB stick. Note that people cannot access this from the command line because by default it's set to read only.

You can now copy the files from your USB stick using the "cp" command.
cp file1 file2
cp /mnt/SUPERimportantFILE.txt /home/pi

This moves the text file to the home/pi directory. You also can rename the file by changing it's name in the move-to location.


If you remove your thumb drive while your system is still on, you CAN corrupt it or a small section of it.

To prevent this, go to the command line and type:
sudo umount /dev/sda1

After this it is safe to remove your thumb drive.

After you reset or unmount your drive, you will have to remount it. Simply just type as before :
mount -t auto /dev/sda1 /mnt

Raspberry Pi Contest 2016

Participated in the
Raspberry Pi Contest 2016