Linux

How to mount a USB Drive in Linux

When you plug in a USB drive on our system, it usually mounts automatically; creating a directory by your username under the media folder. You can also access it through the file manager running on your system. Most times, you will need to mount the USB manually to your system in order to access it.

First navigate to the MNT directory!

root@xxxxxx:/# ls
bin dev home lib64 media opt root sbin sys usr
boot etc lib lost+found mnt proc run srv tmp var
root@axxxxx:/# cd mnt
root@xxxxxx:/mnt# ls
root@xxxxxx:/# !Here no storage devices mounted(Note)

Creating a Mount point
A mount point is a location on your directory tree to mount the partition.
The default location is /media although you may use alternate locations such as /mnt or your home directory.

Note: we are using /mnt here to mount point (mnt) and the partition (usbdrive).

root@xxxxxx:/# mkdir /mnt/usbdrive
root@xxxxxx:/#
root@xxxxxx:/#
root@xxxxxx:/# ls /mnt/
usbdrive

Here the usb drive partition is created

Mounting the USB Drive

root@xxxxxx:/# mount /dev/sdc
sdc sdc1
Note: Here i used "TAB" to display both device node
root@xxxxxx:/# mount /dev/sdc1 /mnt/usbdrive/

Now listing the mount driveand partition we have

 root@xxxxxx:/# ls mnt/usbdrive/
 dump lost+found

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x