- Open terminal
- sudo vifs
- Add a line in the following syntax:
-
<hostname>:/<sharename> /Volumes/<sharename> url automounted,soft,url==cifs://<username>:<password>@<hostname>/<sharename>
-
- Dissection of parameters:
- <hostname = the hostname/IP of the NAS
- <sharename> = the share name being served from the NAS
- /Volumes/<sharename> – should match the sharename to avoid naming conflicts with Finder trying to auto-mount the same volume
- <username> = the CIFS username you’d like to use
- <password> = the CIFS password
- <hostname> and <sharename> should match the above variables
- To re-hash the mount points, run: sudo automount -vc
Further reading/troubleshooting
- See this guide for more information on auto mounting, including talking to a Windows AD domain