Sunday, February 17, 2013

How to Automatically Mount USB Drives in Ubuntu Server 12.04

Automatically mount and unmount USB mass storage devices.  USBMount automatically mounts USB mass storage devices (typically USB pens) when they are plugged in, and unmounts them when they are removed.   The mountpoints (/media/usb[0-7] by default), filesystem types to consider, and mount options are configurable.  When multiple devices are plugged in, the first available mountpoint is automatically selected. If the device provides a model name, a symbolic link /var/run/usbmount/MODELNAME pointing to the mountpoint is automatically created.

To install usbmount:
sudo apt-get install usbmount
When using automount, it will mount the storage devices at /media/usb[0-7] (there is no dialog).  Printers/scanners are not "mounted" and would be configured differently.

No comments:

Post a Comment