Mount a USB Thumb Drive in Linux
You’ve plugged in your USB key and it hasn’t magically appeared on your desktop or in your ‘Places’.
In Linux you generally need to mount devices like hard disks, usb keys, external drives, cd drives, dvd drives, etc.
Symptoms
- You’ve plugged in a USB stick/key/thumbdrive and it hasn’t appeared on your Linux desktop or in your Places
- You’ve attached an external hard disk and it hasn’t mounted.
Explanation
In this HOWTO I’ll describe how to manually mount a USB stick. This method works for other devices also. This solution was tried and tested on Ubuntu 8.04 using a 2GB Lenovo USB key and a 350GB Maxtor USB External HDD but should work for all other mountable devices in Linux.
Here’s how to do it…
Step 1 – Mounting a USB Stick/Key Temporarily
- Plug in your USB stick
- Open a terminal window
- In Ubuntu you can do this by clicking Applications > Accessories > Terminal
- Issue the following command pressing ENTER after each
sudo -s
- Enter your password when requested
- Issue the following commands pressing ENTER after each
mkdir /mnt/usbkey
mount /dev/sda1 /mnt/usbkey
cd /mnt/usbkey
ls
- You should now see a listing of all the files in the drive that you just mounted. If you don’t, then read the note below and repeat the steps above
In the above line the sda1 portion of the command represents *a device utilising the SCSI protocol* either attached externally or inside your computer.
This does not necessarily mean it’s a SCSI drive. Depending on how many drives/usb keys/etc you could have this reference could be different. If you mount the above and don’t see what you expect after issueing the ls command then you’ve most likely mounted the wrong drive. Try changing sda1 to sdb1 or sdc1, etc.
Tip: If you successfully mounted your drive you can now close the terminal window and browse to the /mnt/usbykey folder in the graphical interface of Ubuntu. You’ll find it in ‘Places’.

How to Restrict pendrive usage in USB ports?
Hi there, just became aware of your blog through Google, and found that it is truly informative. I’m gonna watch out for brussels. I’ll be grateful if you continue this in future. A lot of people will be benefited from your writing. Cheers!