Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have edited /etc/hal/fdi/policy/prefrences.fdi

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

but is does not help

also know I can use gconf for that but the user can chage his own gconf file. I want no one be able to mount a usb flash disk excpet me and some special users

share|improve this question
GNOME does not use hal anymore; disk mounting is done by udisks, and can be controlled through PolicyKit. – grawity Feb 3 '11 at 12:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.