Just a pile of Old Computer Junk "Its life Jim, but not as we know it"

USBmount tool in Debian Squeeze

For reasons which escape me at the moment I decided to ditch the default USB auto-mounting that is in the Gnome in Debian Squeeze and try out various alternatives. I ended up using the usbmount package which I installed some months ago. This package did the job dutifully placing some usb0 or usb1 icon on my desktop when I plug in my USB drives, with some niggles that got more annoying over time… Life being what it is I managed to put up with an annoying problem where only root (or via sudo) could write to the disk for quite some time. This became extra problematic when trying to encourage my 10 year old to use this computer to email photos to family members… Today I finally fixed this by editing the file /etc/usbmount/usbmount.conf and setting NTFS and FAT partitions to be permissioned with nobody,users … maybe not the ‘best’ practice but more than sufficient for my main desktop which is only used by me, my son and occasionally my SO (when her Windows7 laptop breaks:-) )

To configure usbmount to mount USB drives writable by everyone in the users group, simply append the following to /etc/usbmount/usbmount.conf. This will make it all magically work, no services even needed restarting:

FS_MOUNTOPTIONS="-fstype=vfat,gid=users,uid=nobody,umask=002,sync \

The atime, etc. options are for performance and reducing writes onto Flash. The file seems to be shell sourced somewhere inside udev so normal shell scripting could be used if desired.

posted in , , ,

subscribe via RSS