Skip to content

[Linux] How to mount a USB device

If we want to use USB device to store our data in Linux, we always need to connect your USB device to your computer, and then we open the folder manager, click the USB device the computer detected.

But this is not a only way. Today I have a new problrm: my USB device is connected at my computer, but I can’t found the device in the path “/media/”.

Because if we not use graphical desktop environment, the system can not mount the device automatically. So we need to use instruction “mount” to mount our USB device to a folder.


Mount USB device

If we want to mount our USB device, first we need to find our USB device. We can use the following instruction:

lsblk

And we can see:

Take my computer as an example, “sda” is my system disk, so the “sdc” under it is my USB device (and its volume is the same as my USB device).

If we are not quite sure which device is our USB device, maybe you can use the following instruction to recheck:

sudo fdisk -l

So now we know which USB device is, and then “mount” it to a folder. I suggest creating a new USB folder:

sudo mkdir /mnt/usb

After we creating a new folder, and then use “mount” instruction:

sudo mount /dev/sdc1 /mnt/usb

In this way, we can see the contents of our USB device under the path “/mnt/usb/”.

We can move the data in it.


Unmount USB device

After the end of the working phase, we better use the “unmount” command to complete the “unmount” action. This is also better for USB devices.

sudo umount /dev/sdc1

This concludes the record of mounting and unmounting USB devices in the Linux operating system.


References


Read more

If you want to refer to the practice of permanently mounting the hard disk on the computer, you may refer to what I wrote before: [Linux] How to mount a hard disk drive

Tags:

Leave a Reply