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.
Best Answer
Simply create a launch daemon with the purpose to mount a remote share:
Create a mountpoint:
Add a launch daemon in /Library/LaunchDaemons:
with the content:
Load the daemon with
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.