OK, I have now made a wrapper around `udevil` that is even a bit more quick to use than `pmount`/ `pumount`:
/usr/local/bin/udm:
#!/bin/bash
if [ $# -lt 1 ]; then
{
printf '%s\n' "$0: Error: Too few arguments."
printf '%s\n' "Usage:"
printf '%s\n' " $0 <device> [<additional 'uedvil mount' options>]"
printf '\n'
printf '%s\n' "Where '<device>' is the device name under '/dev/', e.g. 'sdc1' for '/dev/sdc1',"
printf '%s\n' "and '<additional 'uedvil mount' options>' can contain mount options; see 'udevil help'."
} > /dev/stderr
exit 1
else
_dev="$1"
shift
fi
udevil mount "$@" "/dev/${_dev}" "/mnt/${_dev}"
/usr/local/bin/udu:
#!/bin/bash
if [ $# -lt 1 ]; then
{
printf '%s\n' "$0: Error: Too few arguments."
printf '%s\n' "Usage:"
printf '%s\n' " $0 <mount> [<additional 'uedvil umount' options>]"
printf '\n'
printf '%s\n' "Where '<mount>' is a mountpoint below '/mnt/', e.g. 'sdc1' for '/mnt/sdc1',"
printf '%s\n' "and for '<additional 'uedvil umount' options>' see 'udevil help'."
} > /dev/stderr
exit 1
else
_mount="$1"
shift
fi
udevil umount "$@" "/mnt/${_mount}"