Sometimes the obvious isn’t obvious.
Connecting macOS workstations to Network File System (NFS) shares is sometimes less convenient than Server Message Block (SMB/CIFS) shares.
If you’re connecting your macOS workstation to your NAS you may experience problems with flame if you are not using NFS.
Here is a reasonably simple guide for one method of enabling NFS connections from your macOS flame to your NAS.
-
Enable a static IP address for your NAS (This is defined in your router settings)
-
Define a shared directory on your NAS and enable NFS sharing.
-
Edit the
auto_masterfile:
Open the Terminal on your macOS workstation and edit the/etc/auto_masterfile using a text editor likenanoorvi:sudo nano /etc/auto_masterAdd a line at the end of the file to reference a new map file:
/- auto_nfs -
Create the
auto_nfsmap file:
Create a new file called/etc/auto_nfsand define the mount points and corresponding NFS shares. For example:sudo nano /etc/auto_nfsAdd the following lines to the file, replacing
your-nfs-serverandyour-sharewith the appropriate values:/path/to/mount/point -fstype=nfs,rw,nfsvers=4 nfs://your-nfs-server:/path/to/your-share -
Reload the
autofsservice:
After editing the files, reload theautofsservice to apply the changes:sudo automount -vc
This setup should automatically mount the NFS shares when they are accessed, but in some instances, you may need to create
/path/to/mount/point