Re: [硬體] 非蘋果SSD的Trim與Yosemite

看板MAC作者 (酒色夫)時間11年前 (2014/10/17 23:10), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/3 (看更多)
請問我之前升級ssd的時候是用網路上打指令的方式去開啟trim 不是用這個幾個軟體去開啟的 那現在我想更新系統 是不是要再打一次指令關掉trim ? 還是我打指令關掉之後 他會發現我更動過那個檔案 從此我的MacBook pro就變大磚頭呢? 附上我找的開啟及關閉的指令如下 TRIM can be enabled by using the following Terminal commands. Copy these commands and run them in Terminal: Backup the file that you’re about to patch: sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /IOAHCIBlockStorage.original Patch the file to enable TRIM support: sudo perl -pi -e ‘s|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg’ /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage Clear the kext caches: sudo kextcache -system-prelinked-kernel sudo kextcache -system-caches Important: reboot your Mac! To disable TRIM support in the future: sudo perl -pi -e ‘s|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x41\x50\x50\x4C\x45\x20\x53\x53\x44$2|sg’ /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage Finally, if this does not work as expected, or if something goes wrong, simply restore the backup: sudo cp /IOAHCIBlockStorage.original /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage This patch simply edits a file called IOAHCIBlockStoage, removing a string that makes TRIM work for only Apple SSDs. ※ 引述《skychy (就跟你說不要那麼囉嗦..)》之銘言: : 簡單的說,就是現在非蘋果自家的SSD,都沒有Trim能用。 : 若使用如Trim Enabler或Chameleon SSD Optimizer這類程式強制開啟Trim, : 則重開機後就會掛掉(卡在灰螢幕)。 : Trim Enabler作者建議: : 除非你很有冒險嘗鮮的精神,不然就先放著不要啟動Trim。 : 以一個收費軟體而言,Trim Enabler應該會有比較完整的解決方案, : 在方案出來並且確認可行以前,我覺得還是先觀望一陣子吧! : 根據小弟不專業的理解,這個會讓系統掛掉的原因, : 是因為在Yosemite裡,蘋果加入了一個kext signing機制,會檢查系統核心有無被修改過 : 而偏偏為了讓非蘋果SSD能夠啟用Trim,就得去修改IOAHCIFamily.kext : 而改了之後,在重開機時,系統檢查到kext被修改過,就不會載入該kext : 偏偏這個又是IO相關的,進而整個系統就卡死在這個步驟走不下去了。 : 目前期望的作法,是關掉系統kext signing的機制,但似乎都還沒有個定案。 : 因為零售版的Yosemite,似乎跟之前的DP版不太一樣!? : 總之就是別太衝動啊.... : Chameleon SSD Optimizer災情相關(下面的討論) : http://www.macupdate.com/app/mac/43656/chameleon-ssd-optimizer : 版上 j611062000 □ [心得] Yosemite開啟trim enabler當機自救 : https://www.ptt.cc/bbs/MAC/M.1412756154.A.AEC.html : (這是Beta版Yosemite) : Trim Enabler作者要大家先等等(會在此網頁更新進度) : http://www.cindori.org/status-of-trim-enabler-in-yosemite/ : 轉錄目前內容: : "…untested. : If you don’t feel adventurous, leave Trim disabled and : wait a couple hours. This post will be updated with more : info regarding compatibility later today." -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.197.217.251 ※ 文章網址: http://www.ptt.cc/bbs/MAC/M.1413558607.A.5DB.html

10/17 23:55, , 1F
10.9.4以後的指令不同 你可以打版本耗去搜尋
10/17 23:55, 1F
文章代碼(AID): #1KGJ5FNR (MAC)
文章代碼(AID): #1KGJ5FNR (MAC)