Is your nfs daemon running? You can check it with nfsd status
, which should return nfsd service is enabled
. In case it is not running, you can enable and start it with:
sudo nfsd enable
sudo nfsd start
I have had the same problem recently and noticed that enabling the default macOS firewall will block NFS, and it will just timeout without any error. If you have enabled the firewall, I would first try to disable it and try again. If it works then, you can add rules to allow the nfs traffic to pass trough the firewall.
If it is still not working:
- Make sure the file
/etc/exports
exists
- Check your export file using
nfsd checkexports
- Check your syslog for nfsd errors
You can find the nfsd man here: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/nfsd.8.html
(edit: unfortunately, the man page is down and I can not find it anymore - here is a replacement, but you should probably check if you can retrieve the correct version from apple. https://www.unix.com/man-page/osx/8/nfsd/)