I wrote a post on using udev together with Gnome Volume Manager (GVM). My recent upgrade to Ubuntu Breezy revealed that my hack was just that, a hack, and a bad hack at that. It doesn’t work in Breezy!
It turns out there’s a right way of doing this—use HAL! As so often I could have saved some time by simply reading the comments in the configuration files in
/etc. (BTW, this is exactly the reason why I love Debian/Ubuntu. The configuration files are their own documentation. Brilliant, simply brilliant.) Anyway, playing around a little with HAL’s fdi files wasn’t a bad thing I guess. In the end I retired my udev setup from my earlier post and put the following lines in
<device> <match key="volume.uuid" string="60CA-2822"> <merge key="storage.automount_enabled_hint" type="bool">false</merge> </match> </device>
This hint is honoured by GVM and the device isn’t mounted.