osx更换SSD后开启TRIM支持

2013年 20月 10日 13:34

MACBOOKPRO用的是传统磁盘,由于开机速度,应用程序打开速度越来越慢改换SSD 只需要输入四条命令即可

sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original

sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\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

sudo kextcache -system-prelinked-kernel

sudo kextcache -system-caches

期间如果出现错误 Can’t create kext cache under / – owner not root

执行下面操作

sudo chown root:admin /

重启后看效果

EF8595A4-1A05-4294-862C-B583F2512B86.png
tags: