prevent automount of certain USB disks

Michael Dauer michael.dauer at aon.at
Fri Sep 2 06:42:08 EST 2005


Hello,

I want a certain USB disk to be not mounted automaticly. I created a file
/etc/hal/fdi/xy.fdi. But it does not work. Everytime I login to gnome the
partition is mounted again in /media. What is wrong with the following fdi?

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

<!-- 
	Backup-Disks sollen nicht automatisch gemountet werden.
-->
<deviceinfo version="0.2">
  <device>
	    <match key="volume.label" string="BackupDisk">
	      <merge key="volume.policy.should_mount" type="bool">false</merge>
	    </match>
  </device>
</deviceinfo>

Regards,
Mick



More information about the hal mailing list