MAC OS X 10.9.4 10.9.5 下用命令行开启 SSD trim 的方法 老方法失效

2014-7-15   /   阅读数:7981   /   分类: MAC

10.9.1-10.9.3 方法见:https://lvwenhan.com/MAC/391.html


本方法只适用于10.9.4、10.9.5:


1. 备份

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


2. 修改文件
sudo perl -p0777i -e 's@((?:Rotational|WakeKey\x0a)\x00{1,20})APPLE SSD(\x00{1,20}[QMT])@$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2@' \
  /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage


3. 创建系统内核拓展文件夹
sudo touch /System/Library/Extensions/

4. 重启


WRITTEN BY

avatar
标签: MAC

评论:

songxing10000
2015-07-04 17:08
sudo trimforce enable,亲测
JohnLui
2015-07-04 17:12
@songxing10000:10.10.4 新增加的命令~

发表评论:

© 2011-2018 岁寒  |  Powered by Emlog