Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A lightweight device mounter, with libudev as only dependency
C Makefile Perl

README.pod

NAME

ldm - Lightweight Device Mounter

SYNOPSIS

ldm [-d] [-g gid] [-u uid] [-p path] [-c command] [-m mask] [-h]

DESCRIPTION

ldm is a lightweight device mounter following the UNIX philosophy written in C and based on udev and libmount. The daemon can be controlled with ldmc.

OPTIONS

-d

Run ldm as a daemon.

-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.

-m fmask,dmask

Specify the fmask and dmask for the mounted devices in octal or symbolic format (eg. the octal mask 0777 is represented as rwxrwxrwx).

If only the fmask is specified then its used as umask and it's value is used as dmask too.

-c command

Specifies a command that is executed after a successful mount/unmount action. The following environment variables are defined :

LDM_MOUNTPOINT

The complete path to the mountpoint.

LDM_NODE

The path pointing to the device node in /dev

LDM_FS

The filesystem on the mounted device.

LDM_ACTION

The action ldm has just performed, it can either be mount or unmount

-h

Print a brief help and exit.

BLACKLISTING

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.

INSTALL

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 3 lines using your favourite editor.

USER_GID = gid
USER_UID = uid
BASE_MOUNTPOINT = /mnt

SEE ALSO

ldmc(1)

WWW

git repository

AUTHOR

2011-2015 (C) The Lemon Man <thatlemon@gmail.com>

Something went wrong with that request. Please try again.