Many moons ago I posted some findings on how to get network volumes to auto mount in Mac OS X.
Recently I needed to do this again – but things have changed a little since OS X 10.5 (currently running 10.11).
All the info I found was in this great post:
http://www.gm2dev.com/2015/01/automount-smb-shares-on-osx-yosemite/
Essentially:
edit this file:
/etc/auto_master
add something along the lines of:
/mnt auto_smb -nosuid
(this example creates a mount point on your machine “/mnt” based on the file “auto_smb” that we need to create next.
create a file such as:
/etc/auto_smb
add mount points to this auto_smb file:
(this example creates an smb mount point called “projects” which connects to an IP address of 192.168.1.102 as guest and mounts the “allthestuff” directory from that machine)
projects -fstype=smbfs,soft ://guest@192.168.1.102/allthestuff
kick it over with:
sudo automount -vc
Up until now it has been working well!