Persistent NFS mounts on OSX Lion, Issues with automount
We're having an issue with OS X and persistent NFS mounts.
The system will mount these under /Network/Servers and the symptoms are similar to when someone uses automounter (Linux) whereby a simple "ls -la" will not show anything until you address a file specifically.
I come from the Linx world, so pardon my ignorance here in how OS X is handling this :-)
If we manually mount the NFS directory under /Volumes (or anywhere else) it's fine.
Taking a look around the system, I see /etc/auto_master:
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
Normally for this, I would just put a simple /etc/fstab entry in there and be done with it.
The manpage for auto_master says about the "-fstab" item:
-fstab This map would normally be mounted on /Network/Servers. The key is the host name of a server; the contents of the map entry are generated from corresponding entries in fstab(5) data (as provided by getfsent(3)) that have the net option and that specify mounts from that server. An entry of the form
server:/path mountpoint fstype options 0 0
will be mounted in server/path under the mount point of the -fstab map, using the specified fstype file system type and the specified options. The mountpoint is ignored.
(Okay, I don't know why this form insists on making a table, when I don't want one, so just ignore the formatting)
But if a user configures an NFS mount through the GUI and asks this to be mounted at login or as a part of system startup, that data is stored elsewhere -- presumably in the opendirectory?
I suspect the solution to this problem is very simple, I'm just overlooking it. All we want is a plain-Jane NFS mount with some options to it that is persistent across reboots.... not hooked in to the automounting processes.
Thanks!
Mac Pro, Mac OS X (10.7)