3

I have a partition on my Hard Drive that I want users to be able to mount, but it shouldn't be automatic, so I've put this in my /etc/fstab:

     /dev/sda5       /media/data    vfat    defaults,user,noauto    0   0

It works great for command line. The partition is mounted only when someone explicitly mounts it.

But whenever a user starts gnome, it automounts the partition, even though fstab says it is not suposed to be mounted automatically.

I know this is almost certainly a gnome setting, but I just couldn't find it in gconf-editor (it looks too much like the Windows register editor for me).

Can anyone help me figure this out?

Flávio Amieiro
  • 753
  • 2
  • 9
  • 18
  • I did a quick search and found a lot of ways to do this on old versions of Ubuntu, but nothing that works currently. – Zifre May 10 '09 at 14:34

1 Answers1

2

There's a patch to get gnome to honor the noauto flag:

http://patches.ubuntu.com/by-release/extracted/ubuntu/g/gnome-volume-manager/2.17.0-2ubuntu2/02_honour_automount_enabled_hint.patch

From the surrounding thread, it looks like it's been ignoring it for a couple of versions now:

http://ubuntuforums.org/showthread.php?t=989666

vinny
  • 456
  • 3
  • 6
  • 1
    For the record: using gnome 2.26.1 in Debian Sid I didn't even need to apply the patch. All I had to do was uncomment the device that starts with "" in /etc/hal/fdi/policy/preferences.fdi. Thank you very much for your help! – Flávio Amieiro May 10 '09 at 15:25