How to automatically mount NFS shares on OS X

If you try default /etc/auto_master file, you can see line

/net            -hosts      -nobrowse,hidefromfinder,nosuid

Then you can cd /net/host/exported/path and found that mac tries to mount this exported path.


I'm running into the same problem than @ndejay but the cause may differ sightly.

I'm using NFSv3 and my Autofs maps were working on OS X 10.5 to 10.8 :

/mnt -fstype=nfs,nfsvers=3,proto=tcp,resvport myserver:/share

On Mavericks it works only from the command line :

mount -t nfs -o nfsvers=3,proto=tcp,resvport myserver:/share /mnt

With a little debugging and sniffing I figured out that Mavericks's Autofs tries to mount the NFSv3 share only if its "pingnfs" check (with UDP paquets to port 111) is successful.

That behaviour added to a corporate firewall that doesn't allow UDP trafic on port 111 makes Mavericks not usable for us.