disable automount for a specified usb device
Frederic Crozat
fcrozat at mandriva.com
Tue Jan 8 07:55:55 PST 2008
Le mardi 08 janvier 2008 à 16:46 +0100, Andrea Squeri a écrit :
> 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">
> <device>
> <match key="block.storage_device"
> string="/org/freedesktop/Hal/devices/storage_serial_JetFlash_TS256MJF110_7f3474a77ad686_0_0">
> <merge key="storage.policy.should_mount" type="bool">false</merge>
> <merge key="storage.automount_enabled_hint" type="bool">false</merge>
> </match>
> </device>
> </deviceinfo>
>
> When I insert the device it is always mounted automatically
If you are using kde, I'm not sure it follow those hints.
Try volume.ignore
--
Frederic Crozat <fcrozat at mandriva.com>
Mandriva
More information about the hal
mailing list