The Simplest Way To Mount A USB Drive On Linux

a family using linux osI’m a tech junkie and I love to help you out when I can. So most people keep wondering how

they can access data from the USB drives after they have attached them on their computers

that run on Linux operating system. So how do you mount a USB drive on Linux successfully?

Well, you really don’t have to be a computer geek to do this. My friend who isn’t a computer

geek easily does this while she is vacuuming her hardwood floors at the same time! She even tells me she can do it while grinding herbs in her kitchen…Talk of multi-tasking!

Anyway, let’s get to the point. In Linux, devices do not mount themselves into the system. You

will have to create a mount point and then mount your external USB device at that particular

mount point.

Steps

 Establish the name Linux has given to your external USB drive. After you have known the

name, then the process is just a single command

 Attach your USB drive to either of the ports in your computer. After you have done that,

check out in/dev. This is where Linux gives names to various drives to establish your

external drive.

 To do so, you will have to type the command df found on the terminal window. This

shows you all the drives that are in the system together with the memory space

available. However, you should be able to tell the disk space that’s preset in you UDB

drive. If you already know this, you should quickly be able to know what device

represents your USB drive. Generally, it’s usually located at /dev/sda1.

 After you are through with this, the next step is creating a mount point. The command

that will help you navigate this is mkdir /mnt/usbdevice.

 You will then need to mount the USB at the mount point. This can be done with this

command; mount /mnt/usbdevice /dev/sda1.

 I’m hoping that your USB device is at this location: location /dev/sda1 and that you

logged in as a root user. Anytime you need to access files in your USB, you can do so by

going to the /mnt/usbdevice folder.

 After you are through with accessing the device, to easily and safely unmount your

device, type the following command: umount /mnt/usbdevice.

Would you like to permanently mount a USB drive on Linux? Here is how

This is important so that you don’t have to keep using the command every time you boot up

your computer. To be able to do so, we will just use the above example now that your device

can be recognized by Linux at location /dev/sda1. To permanently mount it on Linux, you will

need to edit the /etc/fstab file. You will need to simply type the command: vi/etc/fstab where

the command prompts are located. Where there is a last line on the file, type this line:

/dev/sda1 /mnt/usbdevice ext3 defaults 0 0

/dev/sda1 shows the device to be mounted and /mnt/usbdevice is the mount point. Thus the

ext3 will stand for the file system type so that Linux makes use of the same options to the USB

device that it does in cases of other drives. The 4th option is usually set to default. The two

zeros that appear at the end show whether the USB device requires any form of back up with

the use of backup utility. For most computers, you will realize that the USB is situated at:

/dev/sda1, but if you are using a more recent machine that has SATA or SCSI drive, the drive

may be located at /dev/sdb or /dev/sdc. Still, you can always search for it with the df command.

I hope I have answered one of the most common yet simple questions on Linux.