usimplemount
Licensing and disclaimer
This software is licensed under the GNU General Public License version 2. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the COPYING file included in the distribution for more information.
Info
usimplemount
============
usimplemount is a simple udev-based usb-storage automounter for Linux, written
in bash script.
usimplemount assumes complete control over /media. Make sure you don't have
anything else in there.
usimplemount was originally developed at Brontes Technologies, a 3M ESPE
subsidiary. It has been released to the community under the terms of the GNU
General Public License version 2. See the COPYING file for more information.
Homepage: http://www.brontes3d.com/opensource
How it works
============
usimplemount is bistate: it can be enabled or disabled. By default it is
disabled -- this software is targetted at the environment where you only want
to allow usb-storage access at specific points in time.
usimplemount is not a daemon, it only runs when it has something to do. Apart
from the commands you run manually to enable/disable it, usimplemount is purely
invoked by udev.
In order to be invoked by udev, usimplemount installs a rules file, which asks
udev to trigger usimplemount every time a usb-storage device is detected. In
the disabled state, this trigger does nothing.
The usage pattern is approximately as follows:
1. Run usimplemount-enable when you want to start working with usb-storage
devices. In addition to accepting hotplug of usb-storage devices from this
point, usimplemount-enable asks udev to re-trigger hotplug events for all
storage devices already on the bus (meaning that devices that were plugged
in before usimplemount was enabled get mounted now).
2. Wait for directories to appear in /media. Each subdirectory of /media
corresponds to a mounted partition on a usb-storage device.
3. When done, run usimplemount-disable before unplugging the devices. This
will unmount everything and ensure that /media is clean for next time.