输入以下指令:
- 为了安全,此步为备份驱动 (可能需要输入密码)
sudo cp -r /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/ /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.BACKUP
2.更新
sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
3.开trim
sudo kextcache -system-prelinked-kernel
4.清cache
sudo kextcache -system-caches
- 重启系统。
重启之后,trim已经被打开了!
转自:http://www.macx.cn/forum.php?mod=viewthread&tid=2106941&extra=page%3D1&page=1