Skip to content

Instantly share code, notes, and snippets.

@tonylambiris
Created March 3, 2016 21:24
Show Gist options
  • Save tonylambiris/3e8ddc5f9563eb25a754 to your computer and use it in GitHub Desktop.
Save tonylambiris/3e8ddc5f9563eb25a754 to your computer and use it in GitHub Desktop.
set noatime on root OSX partition
### drop the contents below to /Library/LaunchDaemons/com.apple.noatime.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.noatime</string>
<key>ProgramArguments</key>
<array>
<string>mount</string>
<string>-vuwo</string>
<string>noatime</string>
<string>/</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
### run these commands afterwards
sudo chown root:wheel /Library/LaunchDaemons/com.appl.noatime.plist
sudo chmod 644 /Library/LaunchDaemons/com.apple.noatime.plist
sudo launchctl load -w /Library/LaunchDaemons/com.apple.noatime.plist
### verify launchd was able tp correctly load it
mount | grep " / "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment