~jbauer/usrmnt

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

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~jbauer/usrmnt
read/write
git@git.sr.ht:~jbauer/usrmnt

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

usrmnt

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.

Installation

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

Usage

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.