Udevil & systemd

Systemd broke my USB mounting scripts! Fortunately udevil and devmon are a wonderful replacement.

The way I like USB mounting to work is as follows:

Udevil already does a lot of this already with its default configuration. Here’s what I did to finish the job.

Allow write access to members of the mountpoint group (ie storage group)

Devmon is shipped with udevil, and it comes with a systemd unit file.

First, create a devmon user to run devmon under.

# useradd -g storage -M -u 300 devmon
# usermod -L devmon

Enable and start devmon (the unit file is named devmon@ and requires a username after the @)

# systemctl enable devmon@devmon
# systemctl start devmon@devmon