Comment 70 for bug 228624

Revision history for this message
Charles Atkinson (7-launchpad-catcons-co-uk) wrote :

I may have found a workaround. It's difficult to be sure because the problem is intermittent on my system. The change disables auto-mount for all removable media. The technique was posted at http://osdir.com/ml/linux.debian.devel.live/2007-11/msg00070.html. In the 4 days since making this change I haven't had the problem and it hasn't caused any breakage (except auto-mount doesn't work but I can live with that).

Add this section to /etc/hal/fdi/policy/preferences.fdi ...

<!--
Prevent automount
-->

  <device>
    <match key="storage.policy.should_mount" bool="true">
      <merge key="storage.policy.should_mount" type="bool">false</merge>
    </match>
    <match key="storage.automount_enabled_hint" bool="true">
      <merge key="storage.automount_enabled_hint" type="bool">false</merge>
    </match>
      <match key="storage.media_check_enabled" bool="true">
        <merge key="storage.media_check_enabled" type="bool">false</merge>
    </match>
      <match key="volume.policy.should_mount" bool="true">
        <merge key="volume.policy.should_mount" type="bool">false</merge>
    </match>
      <match key="volume.ignore" bool="false">
        <merge key="volume.ignore" type="bool">true</merge>
    </match>
  </device>

If you try it YMMV so please post back whether it works for you or not.

Best

Charles