So add this line to /etc/auto_afp: /./Volumes/music -fstype=afp,rw afp://ip-address:/music If you want to configure AFP, do it like this: However, some Mac OS Version doesn't like this so I switched over to use my own folder named '/mount'. You just add a '/./' in front of your desired mount path and Mac OS X will even accept the Volumes folder. However, if you try to directly mount into this folder, autofs will fail. This is the default folder for all mounted shares on a mac. Normally Mac OS X tries to mount network shares into the '/Volumes' folder. I've encountered this behaviour with the latest macOS Catalina 10.15.7 supplemental update. You are free to choose a different name and can also use afp/cifs/nfs etc.īe aware that macOS updates can overwrite this file! Make sure you'll check the content of this file after you've updated. In this case I want to create a configuration for automatically mount SMB volumes. This will tell autofs to look for a file in the '/etc' folder with name 'auto_smb'. net -hosts -nobrowse,hidefromfinder,nosuid ![]() Edit the file /etc/auto_master and add the last line: # Prepare autofs to use a separate configuration fileĪutofs needs to be configured so that it knows where to gets its configuration. ![]() Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method. ![]() With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume.
0 Comments
Leave a Reply. |