ldm - Lightweight Device Mounter
ldm [-d] [-r device] [-g gid] [-u uid] [-p path] [-c path] [-h]
ldm is a lightweight device mounter following the UNIX philosophy written in C and based on udev and libmount.
Run ldm as a daemon.
- -r device
Ask the ldm daemon to unmount the selected device.
- -g gid
Specify the gid of the user owning the mount points.
- -u uid
Specify the uid of the user owning the mount points.
- -p path
Specify the base folder for the mount points. The default is /mnt.
- -c path
Specify the path to an executable script that is invoked every time a device is mounted or unmounted with the action string (either "mount" or "unmount") and the mount point as arguments.
Print a brief help and exit.
ldm doesn't offer any blacklisting by itself but it honors the options found in the fstab so it will ignore any device with flag noauto.
The included systemd service expects a config file at /etc/ldm.conf which contains your user uid and gid. Don't be scared, it's just a matter of writing down 2 lines using your favourite editor.
USER_GID = gid USER_UID = uid
2011-2014 (C) The Lemon Man <firstname.lastname@example.org>