USBMount is a useful program and daemon that can be used to automount disk drives and flash drives plugged into USB ports. I use it with Raspbian for this purpose.
All the settings of USBMount can be changed from its configuration file
The parameters that can be modified from this file:
ENABLED: 1 to enable, 0 to disable USBMount.
MOUNTPOINTS: String of space-delimited mount points that should be used.
FILESYSTEMS: String of space-delimited filesystems that should be mounted. If you are going to use USB storage with NTFS partitions, then add
ntfs ntfs-3g fuseblkto the list. Also make sure you have the
MOUNTOPTIONS: String of comma-delimited mount options that will be used with the
mountprogram to mount all the filesystems.
FS_MOUNTOPTIONS: Mount options that are specific to particular filesystem.
nois brief logging to
yesis verbose logging. I like to change to
yesso that it is easy to diagnose usbmount problems by looking at the syslog.
Note that some of the drives I mounted would initially only have write permissions for
root and not for other users. The solution was to change the ownership to my user, for example:
sudo chown joe:joe /media/usb2.
Tried with: USBMount 0.0.22 and Raspbian 7