diff --git a/man/systemd-mount.xml b/man/systemd-mount.xml index 610c97f948..5a13c98a6d 100644 --- a/man/systemd-mount.xml +++ b/man/systemd-mount.xml @@ -303,6 +303,15 @@ + + Example + + Use a udev rule like the following to automatically mount all USB storage plugged in: + + ACTION=="add", SUBSYSTEMS=="usb", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", \ + RUN{program}+="/usr/bin/systemd-mount --no-block --automount=yes --collect $devnode" + + See Also