Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a number of NFS automounts in my Local directory node on 10.7. I am using a laptop and when I work at home I don't have access to the servers. As a result I often get beachballing Navigation Services dialogs for example, and logs are flooded with NFS error messages on this and that server not being reachable.

Is there some simple app (preferably a GUI one but scripting will do as well) which will disable the mounts when I am on WiFi or just not at work?

share|improve this question

2 Answers 2

Try ControlPlane. It can perform all sorts of different actions, including mounting/unmounting network drives based on various triggers, including which WiFi network you're connected to.

share|improve this answer
up vote 1 down vote accepted

It turns out this is not easily done. To disable automounts you need to actually remove them from the directory services. What I think I will try is just mounting the requisite volumes manually with the mount command when I am at work and unmounting them once I am home. This way no apps will get hung up on files that cannot be opened.

However it's a pity that automountd is so badly designed that it does not allow disabling or enabling mounts and does not have a hard limit on retires on a mount when the network configuration is stable.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.