I'm relatively new to all this and appreciate the help.
I'm trying to access my Linux server /home directory from macOS via NFS. I've taken the below steps, but macOS Finder is unable to connect to the server.
Error message: There was a problem connecting to the server “192.168.86.114”. The server may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection and then try again.
On the host (Ubuntu 20.04 LTS):
- Installed nfs-kernel-server
- Edited /etc/exports to include:
/home [client_ip](rw,sync,no_root_squash,no_subtree_check) - Exported the NFS share directory (
sudo exportfs -a) and restarted the NFS kernel server (sudo systemctl restart nfs-kernel-server) - Allowed NFS access through the firewall (confirmed allowed access from [client_ip] on port 2049)
On the client (macOS Monterey 12.0.1)
- Finder -> Connect to Server -> nfs://[host_ip]/home
I have a Google Nest Wifi router.
Have I missed anything? Ultimately I'd like to set this up to mount on login.
Thanks in advance!
(cross-post: )
91 Answer
After spending some time away from this I found a solution here which did the trick.
Turns out to enable nfs access from macOS, I needed to:
- Set the 'insecure', 'all-squash', 'anonuid' and 'anongid' options in the /etc/exports file
- Use the full 'nfs://[server-IP]/home/[user]' path in Finder's Connect to Server
Thanks for all your help in troubleshooting this!