LemonBoy / ldm

A lightweight device mounter, with libudev as only dependency
MIT License
204 stars 23 forks source link

NAME

ldm - Lightweight Device Mounter

SYNOPSIS

ldm [-d] [-u user] [-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 user can use umount to unmount the device or ldmc with the -r switch. The daemon can be controlled with the ldmc tool.

OPTIONS

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 similar to this:

    
    MOUNT_OWNER=username
    BASE_MOUNTPOINT=/mnt
    FMASK_DMASK=fmask,dmask
    EXTRA_ARGS=-c <path_to_executable>
    
    

The options FMASK_DMASK and EXTRA_ARGS are optional. The default value for FMASK_DMASK is 0133,0022. EXTRA_ARGS will be appended to the ldm executable.

SEE ALSO

ldmc(1), umount(8)

WWW

git repository

AUTHOR

2011-2019 (C) The Lemon Man thatlemon@gmail.com