Ok, penso di aver funzionato.
Aggiungi il file /Library/LaunchDaemons/com.nullvision.noatime.plist
con contenuto:
<?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.nullvision.noatime</string>
<key>ProgramArguments</key>
<array>
<string>mount</string>
<string>-vuwo</string>
<string>noatime</string>
<string>/</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Esegui questi:
-
sudo chown root:wheel /Library/LaunchDaemons/com.nullvision.noatime.plist
-
sudo chmod 644 /Library/LaunchDaemons/com.nullvision.noatime.plist
-
sudo launchctl load -w /Library/LaunchDaemons/com.nullvision.noatime.plist
Le autorizzazioni devono essere impostate in modo che launchctl
non si possa lamentare.
Allora hai questo al riavvio:
$ mount | grep " / "
/dev/disk0s2 on / (hfs, local, journaled, noatime)
Puoi controllare se funziona guardando nella console:
29/07/12 2:55:45.334 PM sudo[978]: Aram : TTY=ttys000 ; PWD=/Library/LaunchDaemons ; USER=root ; COMMAND=/bin/launchctl load -w /Library/LaunchDaemons/com.nullvision.noatime.plist