Mounting USB Drives in CLI

This is a short piece of note on how to use USB drives manually in Linux. Doing so instead of using plug-and-play solutions simply adds another layer of security to your computer.

Find the drive

First of all, find the drive being plugged.

cat /proc/partitions


Mount

Then, mount it somewhere

mkdir -p /media/something
mount /dev/driveName /media/something


Unmount

After you are done with the drive, unmount it before unplugging

umount /media/something