I am using Ubuntu 11.04, on which NFS paths are automounted using AutoFS/LDAP. For example, /path1
and /path2
are auto mounted, but I want to disable automount for /path1
, because I want to use a local folder instead, so I added this to /etc/auto.master
:
/path1 -null
But it doesn't seem to have any effect. So what is the proper way of overriding/disabling such specific mounts on client side for a automount map loaded via LDAP?
I don't have control over the LDAP server, and it automounts 10 or so paths out of which I want one disabled.
Edit:
When I run mount
command I see something like this
home.xxx.com:/home1 on /mnt/home1 type nfs
git.xxx.com:/git on /mnt/git type nfs
I thought /mnt/home1 and /mnt/git are loaded separately from ldap, but automount -m
shows only one entry
Mount point: /mnt
source(s):
type: ldap
map: ldap:ou=auto.mnt,ou=automount,dc=xxx,dc=com
That said wouldn't /mnt/git -null' in
/etc/auto.master` work, or I will have to make whole /mnt null?