Auto mounting drives at boot under OSX

I keep losing this nugget of information and after having just re IP addressed my network, this is now needed

OSX runs stuff using /etc/auto_master

Mine looks like this

hopenet-mac-mini:etc tim$ cat auto_master
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
/- auto_smb
hopenet-mac-mini:etc tim$

The last line points to a file

/etc/auto_smb

hopenet-mac-mini:etc tim$ cat auto_smb
/mount/media_server -fstype=smbfs ://guest:guest@192.168.1.250/files
/mount/movies -fstype=smbfs ://guest:guest@192.168.1.250/movies
/mount/music -fstype=smbfs ://guest:guest@192.168.1.250/music
/mount/mp3 -fstype=smbfs ://guest:guest@192.168.1.250/music/mp3
/mount/pictures -fstype=smbfs ://guest:guest@192.168.1.250/pictures
hopenet-mac-mini:etc tim$

These links provide guest access to the server and persist…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s