How to mount a USB drive in Linux
Most Linux distribution such as Ubuntu automatically mounts your usb drive when it is plugged in. Sometimes we take this for granted and if for some reason the drive doesn’t load we tend to pull our hair out trying to figure out why. If you’re like me then this is a sad reality that you have to overcome perhaps every week.
The other day I was locked out of my Ubuntu after upgrading from Intrepid to Jaunty and GDM decided to take a break. The real problem occurred when I urgently needed my CV to be sent off that day and the most up-to-date CV was on my Ubuntu login, sigh.
What I did
After launching the recovery mode from GRUB I was able to get to a root console. This was good because my girlfriend had her laptop so I could send the CV from her Windows XP system (don’t laugh).
Anyway, here goes… but remember before accessing root you should consider backing up your important files so any mishap wont have you eating your heart out.
Please be careful when running commands under Linux as root, if you are unsure then ask someone before making any changes as root.
Detecting USB hard drive
After you plug in your USB device to your USB port, linux add new device into /dev/ folder. At this stage you are not able to use this device. You need to mount it to your system first in order to be able retrieve any data. To find out what name your device have you can run fdisk command:
# fdisk -l
You will get output similar to this:
Disk /dev/sda: 60.0 GB, 60060155904 bytes 255 heads, 63 sectors/track, 7301 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 7301 58645251 83 Linux
Creating the mount point
Create directory where you want to mount your device:
mkdir /mnt/sda1
Edit /etc/fstab
To automate this process you can edit /etc/fstab file and add line similar to this:
/dev/sda1 /mnt/sda vfat defaults 0 0
Run mount command to mount all not yet mounted devices. Keep in mind that if you have more different USB devices in you system, device name can vary!!!
# mount -a
Original article: http://www.linuxconfig.org/Howto_mount_USB_drive_in_Linux


This is very interesting, You’re a very skilled blogger. I have joined your rss feed and look forward to seeking more of your magnificent post. Also, I have shared your website in my social networks!
Heya! I’m at work browsing your blog from my new iphone 3gs! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the great work!
I together with my buddies happened to be looking through the best things found on the blog and then immediately got an awful suspicion I had not thanked the web site owner for them. The ladies came totally happy to read through all of them and have in effect very much been having fun with those things. Thank you for indeed being very helpful and for choosing variety of ideal guides millions of individuals are really desperate to be aware of. My personal honest apologies for not expressing appreciation to you earlier.
Hi, Neat post. There’s a problem with your site in internet explorer, would test this… IE still is the market leader and a large portion of people will miss your wonderful writing due to this problem.
I personally would certainly like to thank you for this valuable informative posting. You actually can’t picture how long it took me to uncover your website and this practical information. You can depend on me, as on your continuous site visitant, and i moreover bookmarked your web page. Looking forward to look at more blog posts like this particular. Have a good day.
I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I’m quite sure I’ll learn a lot of new stuff right here! Good luck for the next!