zoukankan      html  css  js  c++  java
  • 原来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
  • 相关阅读:
    JVM系列六(自定义插入式注解器).
    JVM系列五(Javac 字节码编译器).
    2019 — 求不得,放不下
    Mybatis 条件判断单双引号解析问题
    JVM系列四(对象分配策略).
    JVM系列三(垃圾收集器).
    Spring MVC -- Spring Tool Suite和Maven(安装Tomcat、JDK)
    Spring MVC -- 单元测试和集成测试
    Spring MVC -- 下载文件
    Spring MVC -- 上传文件
  • 原文地址:https://www.cnblogs.com/xshg/p/8306164.html
Copyright © 2011-2022 走看看