2018年11月2日 星期五

macOS X 10.13開啟第三方SSD的Trim

Mac(這邊的OS X是10.13 High Sierra)若裝了其他廠牌的SSD(固態硬碟),先用下面指令看此SSD有沒有支援TRIM這個功能:
  • system_profiler SPSerialATADataType | grep -i trim -B 12 -A 3
若是有看到TRIM Support: Yes,代表這個硬碟有支援TRIM。確認有TRIM功能後,可以用下面的指令開啟TRIM支援:
  • sudo trimforce enable

¡注意,在執行上面指令前請記得先備份整個系統與資料! 
執行上面這個指令會出現下述的警告
IMPORTANT NOTICE:  This tool force-enables TRIM for all relevant attached devices, even though such devices may not have been validated for data integrity while using TRIM.  Use of this tool to enable TRIM may result in unintended data loss or data corruption.  It should not be used in a commercial operating environment or with important data. Before using this tool, you should back up all of your data and regularly back up data while TRIM is enabled.  This tool is provided on an “as is” basis. APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THIS TOOL OR ITS USE ALONE OR IN COMBINATION WITH YOUR DEVICES, SYSTEMS, OR SERVICES. BY USING THIS TOOL TO ENABLE TRIM, YOU AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE TOOL IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH YOU.
上述警告後面就會接著後面的問題,都選yes:
  • Are you sure you wish to proceed (y/N)? y
  • Your system will immediately reboot when this is complete.
    Is this OK (y/N)? y
接著出現下面的訊息...
Enabling TRIM.....Operation succeeded. Your system will reboot momentarily, please wait...
系統會重開機,沒有問題的話系統已經為所有硬碟開啟了Trim了~

參考資料

_EOF_

沒有留言:

張貼留言