Setup Automount for SMB/CIFS

NetInfoManager Screenshot

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.

This entry was posted in Mac OS X. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.