Archives: August 2019

2 articles

My resume

/storage/2019/my-resume/resume-public.png Interested ? Please contact me to receive the uncensored version.

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.


How to mount from command line like the Nautilus does?