How do I silently mount AFP shares on OS X 10.5 clients?
772
I can add the share to the login startup items, but it always pops open Finder. I want the AFP share to mount silently. This is in a Mac computer lab with the Macs joined to AD.
You should replace values between parentheses with your values and then you have to restart the automounter daemon with
$ sudo automount -vc
from Terminal.app. Alternatively you can reboot to activate new settings. If you did it in the shell way the previous command should respond with something like
~> sudo automount -vc
automount: /net updated
automount: /home updated
automount: /Volumes/Shared mounted <-- This line refers to the share I've mounted
automount: no unmounts
After that you should find your mounted folder in the Finder automatically.
P.S. If you're not a Terminal.app fan you can use this GUI app to automount filesystems, I haven't tried it because it's not free, but if you need that is pretty cheap.
I've done this with smb shares and will double check tonight when i get home but iirc you need to write some simple applescript to mount the volume
IIRC the following will work
Compile it into an application and add that to the login items
You just tick the "Hide"-button in the Start Objects-screen on System Preferences>Accounts, and it shouldn't show a Finder for it.
I was looking for the same answer and I found a cleaner way to do that using the automounter daemon.
In short you should create a
/etc/fstab
file, (you does need root privileges to do that) and put this line into that fileYou should replace values between parentheses with your values and then you have to restart the automounter daemon with
from Terminal.app. Alternatively you can reboot to activate new settings. If you did it in the shell way the previous command should respond with something like
After that you should find your mounted folder in the Finder automatically.
Some references I found:
P.S. If you're not a Terminal.app fan you can use this GUI app to automount filesystems, I haven't tried it because it's not free, but if you need that is pretty cheap.