Persisting an NFS4 mount point on macOS Monterey

Posted on Sun 06 March 2022 in Sysadmin

How to auto-mount an NFS4 share after startup on macOS Monterey?

This blog post explains how to do it with basically one line in /etc/fstab:

192.168.200.200:/nfs_share /System/Volumes/Data/my_nfs_share nfs rw,resvport,hard,bg,intr,rw,tcp,nfc,rsize=65536,wsize=65536

Note that the nolockd option is not included here unlike in the original blog post because this option resulted in an illegal argument error when I tried to access the mount on macOS Monterey. It might work on earlier macOS versions. And the option is probably unnecessary for an NFS4 mount.