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


Then, mount it somewhere

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


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

umount /media/something

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see