Dec 03 2010
∞
MAC REVIEW » Macbook AirでSSD用の設定(その1)
/etc/rc.localなどに mount -uvwo noatime / などのコマンドを放り込んでおいても良いのですが、ここは一発OSXらしくLaunchDaemonを使ってみます。/Library/LaunchDaemons の中に、以下の内容のcom.hogehoge.noatime.plistというxmlファイルを放り込むだけです。
<?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.hogehoge.noatime</string>
<key>ProgramArguments</key>
<array>
<string>mount</string>
<string>-vuwo</string>
<string>noatime</string>
<string>/</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>