Mac OS X Server,  Mass Deployment

Troubleshooting Automounting with AppleScript

Troubleshooting automounts can be a particular pain at times. Beyond verifying that you can manually mount a directory and that the automount shows up properly in the directory service, there is another little trick that I’ll occasionally do, which is to set an Applescript to load the mount point at some time during the login process (or more specifically at different times in order to further isolate).

The quick and dirty script I use is:

set MyVolume to “afp://username:password@my.server.com/mysharepoint”
tell application “Finder”
     activate
     mount volume MyVolume
end tell

Obviously you’ll have a different volume name you wish to mount the share as and a different user, password, server IP and sharepoint (and you might even use SMB or NFS instead of AFP). So swap those with your information and you have a way to fire up a mount point manually. If this fixes the problem you won’t want to leave it – but use the information garnered to fix the actual problem. This is more a troubleshooting step that I use sometimes than a fix I’ve ever pushed out in production (after all the password shouldn’t remain in a script and the user might just change it).