Actually. Udev only creates device nodes in /dev. HAL, the hardware abstraction layer, listens to what udev is doing, and when udev finds a new device, HAL tries to figure out what type of device it is, and if it is a removable storage device, it notifies everyone listening that this should be mounted. gnome-volume-manager takes the ball and mounts it.
You can find the configuration file for hal at: /etc/hal/fdi/policy/preferences.fdi
I tried adding some configuration that disables mounting of removable storage devices, and ran "sudo /etc/init.d/hal restart". After that it stopped mounting my USB-pendrive automatically.
Here's my configuration. The parts I added marked in bold.
Code:
<device>
<match key="storage.hotpluggable" bool="false">
<match key="storage.removable" bool="false">
<merge key="storage.automount_enabled_hint" type="bool">false</merge>
</match>
</match>
<match key="storage.removable" bool="true">
<merge key="storage.automount_enabled_hint" type="bool">false</merge>
</match>
</device>
Bookmarks