September 19, 2024

Mount a USB device, e.g. a USB stick or a hard drive

You might need to be sudo.

Create a point to mount (connect) your device, open the application Terminal and type:

$ mkdir /media/drive

Then run:

$ lsblk

Spot the name of your device e.g. /dev/sdbX where X is a number.

You can usually recognize the device you’re looking for by its size.

Now mount (connect) the device on the point you created earlier:

$ mount /dev/sdX /media/drive

If your computer tells you you don’t have the permission to do that, run:

$ sudo mount /dev/sdX /media/drive

and then type your password.

To check that the device is mounted, run:

$ ls /media/drive

You should see the name of files or folders your device carry.


personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki mount

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88