mac ssd开启trim

输入以下指令:

  1. 为了安全,此步为备份驱动 (可能需要输入密码)

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

  1. 重启系统。

重启之后,trim已经被打开了!

转自:http://www.macx.cn/forum.php?mod=viewthread&tid=2106941&extra=page%3D1&page=1

posted on 2014-04-10 21:53  maxwelldu  阅读(467)  评论(0编辑  收藏  举报

导航