Tuesday, October 15, 2013
Mounting an NFS share on OS X has always been slightly more troublesome when compared to mounting an NFS share on a Linux distribution.
For example, I have an NFS share that I want to mount on OS X Mountain Lion from a Fedora box. Running nfs://192.168.0.100:/mnt/raid1/media from Finder results in a generic error and running
sudo mount_nfs 192.168.0.100:/mnt/raid1/media /Volumes/media (assume /Volumes/media already exists) results in the following error:
192.168.0.100:/mnt/raid1/media Operation not permitted
Thanks to Jose Manuel’s post, simply adding
-o resvport to the mount_nfs command resolves the above error and successfully mounts the NFS share.
sudo mount_nfs -o resvport 192.168.0.100:/mnt/raid1/media /Volumes/media
Also see Jose’s post for additional NFS parameters to achieve better NFS performance.