Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to auto mount NFS shares on MacOS

Tags:

macos

nfs

I want to auto mount some NFS shares from my Synology NAS when I boot my Mac. Until recently, I had this working:

/etc/auto_master:

+auto_master        # Use directory service
/net                -hosts      -nobrowse,hidefromfinder,nosuid
/home               auto_home   -nobrowse,hidefromfinder
/Network/Servers    -fstab
/-                  -static
/-                  auto_nfs    -nobrowse,nosuid


/etc/auto_nfs:

/mnt/idefix/digikam -fstype=nfs,noowners,nolockd,resvport,hard,bg,intr,rw,tcp,nfc,rsize=8192,wsize=8192 nfs://idefix:/volume1/digikam

Now, after upgrading to MacOS 10.15 (Catalina) this is no longer working. What am I doing wrong?

like image 747
willemx Avatar asked Oct 20 '25 01:10

willemx


2 Answers

Not a direct answer, but in my case I needed to update the mountpoint specified in /etc/auto_nfs from /Users/foo/mountpoint to /System/Volumes/Data/Users/foo/mountpoint. Catalina disk structure has changed directory, perhaps related to your issue.

like image 65
syah Avatar answered Oct 21 '25 20:10

syah


Yet another breaking change in a minor update to Catalina (10.15.2). The configuration that worked for me is the following:

/etc/auto_master:

#
# Automounter master map
#
+auto_master        # Use directory service
#/net           -hosts      -nobrowse,hidefromfinder,nosuid
/home           auto_home   -nobrowse,hidefromfinder
/Network/Servers    -fstab
/-          -static
/Users/Share        auto_nfs


/etc/auto_nfs:

mntp    -noowners,nolockd,noresvport,hard,bg,intr,rw,tcp,nfc server:/share

This will automount the share server:/share on /Users/Share/mntp.

like image 22
DanT Avatar answered Oct 21 '25 21:10

DanT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!