Skip to content

Instantly share code, notes, and snippets.

@jabenninghoff
Created September 10, 2016 16:07
Show Gist options
  • Save jabenninghoff/f13f81c286e914c48942f973f5d15819 to your computer and use it in GitHub Desktop.
Save jabenninghoff/f13f81c286e914c48942f973f5d15819 to your computer and use it in GitHub Desktop.
Configure OS X to mount external drives at boot

By default, OS X only mounts external drives (USB, Firewire, Thunderbolt, etc.) when you log in, and unmounts them when you log out or reboot. To change this behavior, enable AutomountDisksWithoutUserLogin.

sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true

Installing OS X Server also enables this setting.

Alternatively, you can create the /Library/Preferences/SystemConfiguration/autodiskmount.plist with the following content:

<xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>AutomountDisksWithoutUserLogin</key>
        <true/>
    </dict>
</plist>

Thanks to The Tolis Group and Apple Discussions for providing the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment