macos – How to Mount NFS Volumes on macOS Sierra

automountdisk-volumemacosmountnfs

I have a Linux server with a number of NFS exports. I have been mounting them on my Mac by setting up an auto_nfs file, and mounting them in /nfs/… folders.

I think this may the cause of some peculiar behaviour with some applications, which don’t seem to be able to fully traverse these volumes (see Applications Not Working Properly with Networked volumes for details on what I mean by peculiar).

When I mount a SMB share, it appears as a separate volume under my computer, but not so with NFS.

I conclude that things would work better for me if I mount the NFS shares in the /Volumes directory. But I can’t:

  • The settings in auto_nfs require existing directories, and in Sierra, I can’t create one.
  • I cannot mount an NFS share using the nfs: protocol, since apparently this isn’t supported.

Apparently Sierra changed a few rules regarding the /Volumes directory.

How can I mount an NFS share as an ordinary volume? Mount NFS share in /Volumes as a drive, but:

  • It’s an old one and not applicable to Sierra
  • The suggestions don’t work here

Best Answer

In Finder, press cmd + k and enter the path to the NFS server/share:

connect to server

For me this mounted as /Volumes/users-1 (but I already had /Volumes/Users mounted).

iMac21:~ user$ df -h /Volumes/users-1
Filesystem               Size   Used  Avail Capacity iused     ifree %iused  Mounted on
192.168.7.5:/nas/users  5.4Ti  4.8Ti  292Gi    95%  261121 366027775    0%   /Volumes/users-1
iMac21:~ user$

If you wanted this to happen on boot you can add it into the login items for your user.