三星830在mac下開啟TRIM

來源:互聯網
上載者:User

以下方法已經無法使用,下載Trim
Enabler可以開啟trim


剛換了塊三星的ssd,裝好mac後發現trim未開啟,於是網上搜到解決辦法如下:


1. 備份原來的IOAHCIBlockStorage:



開啟終端(Terminal),輸入以下指令(可能需要輸入密碼):


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


這一步把系統原來的IOAHCIBlockStorage備份到了磁碟根目錄/處。


2. 開啟TRIM


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


這一步更改了IOAHCIBlockStorage內容,開啟TRIM。


3.清理cache


sudo kextcache -system-prelinked-kernel


sudo kextcache -system-caches

重啟啟動就好了

已經實驗過了~

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.