原来macOS High Sierra内置Trim工具了

以前Mac换了第三方SSD总是使用Trim Enabler等工具做Trim,这次换了大SSD后,发现原来已经内置Trim工具了,很棒。操作步骤如下:

$ sudo trimforce enable
Password:

在 Password: 后输入你的 macOS 密码,然后是一大堆提醒文本:

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.

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...

在需要输入 (y/N)的地方输入 y,重启,Trim完成。

最后,如果需要取消 Trim,使用如下语句:

$ sudo trimforce disable

 

posted @ 2018-01-17 21:38  xshg  阅读(853)  评论(1编辑  收藏  举报