A small utility to mount devices from the command line.
Handle unhandled error message
Add usrmnt to its own repository


browse  log 



You can also use your local clone with git send-email.


The webpage for this project.

usrmnt is a small utility to mount, unmount, unlock, etc. your devices from the command line with an intuitive command syntax and using an intuitive text-based UI. It is effectively a wrapper for udisksctl to make it more friendly to use.


Simply clone this repository and copy the usrmnt script to a folder that is in your PATH.


Simply run the script with no arguments: usrmnt. You will then be presented with a listing of the currently recognized devices in your computer and a command prompt. The usage of that command prompt is detailed below:

ls – List the currently recognized devices
q  – Exit
v  – Print the current version
?  – Print this help dialog
<command> <device> – Execute <command> on <device> where <command> is one of:
Supported udisks Commands:
mount     – Mount a device to a mountpoint in /media. Will prompt to
unlock encrypted drives.
unmount   – Unmount a device (can also use "umount")
lock      – Lock an unlocked encrypted device
unlock    – Unlock an encrypted device without mounting it
info      – Print device info
power-off – Power a device off (computer will stop recognizing it)
(can also use "poweroff")
()>>> mount sdc1
(sdc1)>>> unmount sdb2
(sdb2)>>> unlock mmcblk0p1

The device in parentheses is the device from the previous command.
When there is a device in parentheses, you can type any command without
specifying a device name and that command will act on the device in
parentheses. The device in parentheses is only updated when the previous
command completed successfully except if you are unlocking a device, it
exists, and you get the password wrong in which case it will still update
so you can just type "unlock" or "mount" again.

For example:
(sdb1)>>> unmount
will unmount /dev/sdb1.