Skip to content

Instantly share code, notes, and snippets.

@josh23french
Forked from L422Y/osx_automount_nfs.md
Last active August 29, 2015 13:56
Show Gist options
  • Save josh23french/8893646 to your computer and use it in GitHub Desktop.
Save josh23french/8893646 to your computer and use it in GitHub Desktop.

The configuration and brilliant solution to the mount point problem by @lawrencealan: https://gist.github.com/lawrencealan/8697518

Still working on it. Basically copied the important parts; need to change things for smb and test.

/etc/auto_master (see last line):

#
# Automounter master map
#
+auto_master		# Use directory service
/net			-hosts		-nobrowse,hidefromfinder,nosuid
/home			auto_home	-nobrowse,hidefromfinder
/Network/Servers	-fstab
/-			-static
/-			auto_nfs	-nobrowse,nosuid

/etc/auto_nfs (this is all one line):

/../Volumes/my_mount    -fstype=nfs,noowners,nolockd,noresvport,hard,bg,intr,rw,tcp,nfc nfs://192.168.1.1:/exports/my_share

Make sure you:

sudo chmod 644 /etc/auto_nfs
sudo automount -cv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment