Mount network drive to Mac server on boot Is it possible to mount a network drive to my Mac server on boot, without requiring a login?  I have one setup to mount on login via an automator script that I have added to the login items for the user account, which works fine.

The reason is I don't want to have to login to the Mac server, just to mount the network drive.
Simply create a launch daemon with the purpose to mount a remote share:


Create a mountpoint:

sudo mkdir -p /Shares/mntpoint1

Add a launch daemon in /Library/LaunchDaemons:

sudo nano /Library/LaunchDaemons/local.mount.extvol.plist 


with the content:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;local.mount.extvol&lt;/string&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;/sbin/mount_afp&lt;/string&gt;
        &lt;string&gt;afp://user:password@remotehost/share/&lt;/string&gt;
        &lt;string&gt;/Shares/mntpoint1&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;RunAtLoad&lt;/key&gt;
    &lt;true/&gt;
&lt;/dict&gt;
&lt;/plist&gt;

Load the daemon with

sudo launchctl load /Library/LaunchDaemons/local.mount.extvol.plist 



The remotehost and share have to exist and the user has to have permissions to access the share with the password. The user doesn't have to be root!

The share will be loaded with root:wheel 700 permissions.