Created
March 3, 2016 21:24
-
-
Save tonylambiris/3e8ddc5f9563eb25a754 to your computer and use it in GitHub Desktop.
set noatime on root OSX partition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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