Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Following is my in /usr/local/bin/

mkdir -p /Volumes/folder
mount -t afp -o rw afp://user:password@server_name/folder_name /Volumes/folder

Following is my in /Library/LaunchAgents/

 ?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

Where as when I am able to run independently and is working fine.

Also I have tried using launchd.conf as

mkdir -p /Volumes/folder
mount -t afp -o rw afp://user:password@server_name/shared_folder /Volumes/folder

Still not working.

share|improve this question

migrated from Oct 11 '12 at 15:05

This question came from our site for professional and enthusiast programmers.

/Library/LaunchAgents/ are tied to individual users where as /Library/LaunchDaemons/ are tied to the machine as a whole. After the system is booted and the kernel is running, property list files found in /Library/LaunchDaemons/ are loaded first as these are system-level daemon.

I tried to put my in /Library/LaunchDaemons/ and it worked. Mounting was successful.

But it worked 8 times out of 10. It failed 2 times.

share|improve this answer

Your Answer


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.