disable automount for a specified usb device

Andrea Squeri andrea.squeri at gmail.com
Tue Jan 8 07:46:02 PST 2008

I want disable automount for a specific usb device.I have created a file
/usr/share/hal/fdi/policy/95userpolicy.fdi with those lines:

<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
		<match key="block.storage_device"
			<merge key="storage.policy.should_mount" type="bool">false</merge>
			<merge key="storage.automount_enabled_hint" type="bool">false</merge>

When I insert the device it is always mounted automatically

How can disable this ?

More information about the hal mailing list