Search by tag: mount
1 article
How to quickly and easily mount an USB drive as a regular user using the command line
To mount my USB drive, I was using the traditional sudo mount /dev/sdXY /path/to/mountpoint
. But because I was mounting as root, I had to prefix every operation with sudo
. So how to mount it as a regular user ?
Simply using udisks
($ sudo pacman -S udisks2
), which is used by gvfs
and various file managers:
$ udisks --mount /dev/sdd1
Mounted /org/freedesktop/UDisks/devices/sdd1 at /media/KINGSTON
To find your device:
$ sudo fdisk -l
Now I can execute basic cp
, mv
... operations on /media/KINGSTON
without having to prefix them with sudo
.