jamesfjx
V2EX  ›  macOS

从 OS X 10.10.4 开始,第三方 SSD 也能正常开 Trim 了

  •  
  •   jamesfjx · Jul 20, 2015 · 4265 views
    This topic created in 4129 days ago, the information mentioned may be changed or developed.
    Yosemite 10.10.4 加入了一个新命令trimforce,可以强行打开第三方ssd的trim功能,只需一步:

    $ sudo trimforce enable

    只有较新的ssd才能顺利开启,尝试前一定要备份数据!备份数据!备份数据!

    附上man trimforce

    TRIMFORCE(8) BSD System Manager's Manual TRIMFORCE(8)

    NAME
    trimforce -- enable TRIM commands on third-party drives

    SYNOPSIS
    trimforce verb

    DESCRIPTION
    trimforce enables sending TRIM commands to third-party drives attached to an AHCI controller. By default, TRIM commands are not sent to third-party drives.
    Use extreme caution when enabling TRIM, as some drives may not correctly handle the commands. trimforce must be run by the system administrator.

    VERBS
    enable
    Start sending TRIM commands to AHCI-attached third-party drives. Requires a reboot to take effect.

    disable
    Stop sending TRIM commands to AHCI-attached third-party drives. Requires a reboot to take effect.

    help
    Display brief usage syntax.

    ERRORS
    trimforce will exit with status 0 if successful, or with an appropriate error if it cannot parse input, allocate memory, or is unauthorized to perform its
    work.

    HISTORY
    The trimforce utility first appeared in OS X 10.10.4.

    OS X 27 April 2015 OS X
    18 replies  •  2015-07-21 08:54:51 +08:00
    q84629462
    q84629462
    Jul 20, 2015 via Android
    1
    我刚刚没有备份数据就直接使用命令开启了,现在想起一身冷汗
    feikaras
    feikaras
    Jul 20, 2015
    2
    @q84629462 苹果写这个明显是免责的意思,并不代表不稳定。
    Citrus
    Citrus
    Jul 20, 2015 via iPhone
    3
    发帖前请善用搜索。。。
    /t/202433
    事实上还有很多类似的。。。
    Epsil0n9
    Epsil0n9
    Jul 20, 2015
    4
    想知道macbook自带的ssd默认开过trim吗?
    squid157
    squid157
    Jul 20, 2015
    5
    10.10.4的beta里面没有这个,这个是在el Capitan出现的。不知道正式的10.10.4是不是有它。
    nevermlnd
    nevermlnd
    Jul 20, 2015
    6
    @q84629462 同问2015rmbp 10.10.2默认是开启的吗?
    @feikaras
    @Citrus
    @squid157
    holulu
    holulu
    Jul 20, 2015
    7
    @squid157 正在用 10.10.4 正式版,可以开的。就因为这个才入了饭盒来玩的。
    66beta
    66beta
    Jul 20, 2015
    8
    只关心第三方SSD什么时候可以休眠?
    br00k
    br00k
    Jul 20, 2015
    9
    @66beta 什么时候不能休眠了?
    Citrus
    Citrus
    Jul 20, 2015 via iPhone
    10
    @squid157 你搞错了,10.11没有这个,这是10.10.4出现的。。。
    66beta
    66beta
    Jul 20, 2015
    11
    @br00k 我搞错了,是我把SSD放在光驱位了,所以不能 :)
    squid157
    squid157
    Jul 20, 2015
    13
    @nevermlnd 自家的肯定都带TRIM
    feikaras
    feikaras
    Jul 20, 2015
    14
    @Citrus 10.10.4的正式版才有,beta没有。10.11的dp1开始有。总之10.11 dp1比10.10.4早
    Citrus
    Citrus
    Jul 20, 2015 via iPhone
    15
    @feikaras 那可能是我记错了。。。我看到消息的时候已经10.11 dp2 了,所以没注意 dp1 的时候有没有,抱歉。。。
    lincanbin
    lincanbin
    Jul 20, 2015
    16
    伟大!要改变世界。
    jamesfjx
    jamesfjx
    OP
    Jul 20, 2015
    17
    @66beta 你指的是Power Nap?
    66beta
    66beta
    Jul 21, 2015
    18
    @jamesfjx 我把SSD放在光驱位了,所以不能休眠
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1535 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 11:40 · PVG 19:40 · LAX 03:40 · JFK 06:40
    ♥ Do have faith in what you're doing.