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.
Get it from the Git Repository
Alternate Git Repository
As always, I am open to any feedback, requests, bug reports, or contributions you may have. Please send these to the sourcehut git repository as git.paritybit.ca is just a mirror.
If you would like to submit a bug report, suggest a feature, or have any other feedback or contribution that you are thinking about submitting, you can post it on the project's public mailing list. Please review the mailing list ettiquette before posting.
If you've made changes to the code which you wish to share with me, I accept contributions through email which you can learn how to do using the git-send-email.io website.
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:
Options: 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") Examples: ()>>> 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.