1.重新启动, 按住 Command-R 进入恢复模式
2.在菜单栏中找到 终端 ,并且点击运行.
3.然后输入:
nvram boot-args
如果显示 kext-dev-mode=1就去第6.
4.如果显示错误的话, 输入
nvram boot-args=kext-dev-mode=1
5.重启进入恢复模式从2.开始.
6.输入
cd "/Volumes/Macintosh HD"
touch System/Library/Extensions
kextcache -prelinked-kernel System/Library/Caches/com.apple.kext.caches/Startup/kernelcache -K System/Library/Kernels/kernel System/Library/Extensions
等待完成, 可能需要10分钟. 然后重新启动.
7.如果你要取消 OS X 的 TRIM 功能可以按照如下操作。每行输入一次运行
nvram -d boot-args
cd "/Volumes/Macintosh HD"
rm -rf System/Library/Extensions/IOAHCIFamily.kext
cp -r /System/Library/Extensions/IOAHCIFamily.kext System/Library/Extensions/IOAHCIFamily.kext
chown -R root:wheel System/Library/Extensions
sudo chmod -R 755 System/Library/Extensions
touch System/Library/Extensions
kextcache -prelinked-kernel System/Library/Caches/com.apple.kext.caches/Startup/kernelcache -K System/Library/Kernels/kernel System/Library/Extensions
重启即可. 整个过程10分钟左右.