This guide will setup automount in conjunction with SMB/CIFS network resources. The advantage of this solution is that if the network connection to the SMB/CIFS server get lost it will automatically reconnect if the server is available again.
There are quite some ways to do this, but the best way, that I found, was to use NetInfo Manager. This way your network shares will be automountet every time you login, and if the network share get disconnected it will automatically reconnect to share.
Step by step. Open up NetInfo Manger. (You will find it under your utility folder in the application folder or use Key-combo “Shif+Cmd+Uâ€)
Here we need to add a object to the mounts. Highlight mounts add press the icon in the top that says “New†You will now have a object called “new_directory†under mounts Highlight new_directory and add 4 new object using the “New†icon. You should now edit the 4 object and give them correct property and value(s)
Object1: Property=name, Value=server_ip:/share_point Object2: Property=dir, Value=/path_to_local_mount_point Object3: Property=vfstype, Value=url Object4: Property=opts, Value=url==smb://username:password@server_ip/share_point
Remember that your local mounting point need to exists before setting this up. When you have done this, you need to save it, and restart your automount.
Open up and a terminal and write.
sudo killall -HUP automount
That’s it. It should now work as a charm.