Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This would be in Mac OS X 10.6...

I know I can connect a server share as a volume and do so via a script so every time I boot up it gets mapped.

How can I make sure that same share is mapped after my computer comes out of sleep mode? It seems like the connection gets dropped. Can the same process map the drive for me when I boot up?

share|improve this question
up vote 4 down vote accepted

TTry this:


/- auto_afp

to /etc/auto_master. Then, create /etc/auto_afp with a line like

/Volumes/MyShare -fstype=afp afp://computername/sharename

Make sure the permissions of auto_afp match auto_master

Take a the following for more info:

share|improve this answer

If you let your computer in sleep for a short time, the connection should stay up. However, if you leave it for a longer time, the server will simply reset your connection, because otherwise all lost connections would hang on it forever, filling its memory. So you probably need to mount the network drive again after waking up. I don't know if there is a way to do it automatically in OS X. It's usually best practise to manually close everything that use ongoing network connections before you send your computer to sleep/hibernate, so no applications will crash because of lost connections.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .