Enable TRIM For Third-Party SSDs In OS X With A Terminal Command

Enable TRIM for Third-Party SSDs in OS X with a Terminal Command

For whatever reason, Apple hasn't allowed you to enable TRIM (one of the best ways to maximise the life of your solid state drive) on third-party SSD drives. Now, you finally can, no third-party app required.

Apple pushed out a minor update to OS X today that fixed some bugs and also adds the ability to enable TRIM. Once you update, all you need to do to enable TRIM is open up Terminal (Applications > Utilities) and type in this command:

sudo trimforce enable

You'll get some warnings, so make sure your SSD is capable of using TRIM before you run it. Otherwise, you can just go through and say yes to the options.

Latest OS X update allows you to enable TRIM for third-party SSDs [Ars Technica]


Comments

    Do you still need to disable kext signing? From the cindori trim enabler page:

    "To continue to use Trim Enabler and continue to get Trim for your third party SSD, you first need to disable the kext signing security setting."

      Not necessary.
      The page hasn't updated yet. Pretty sure Oscar will release a new version with instructions soon. Please keep an eye on that.

    The reason they do this is that not all SSDs are made equal. Samsung is the main offender, their TRIM algorithm will erase random parts of your drive causing file corruption. The Linux kernel has a black list, OSX has a whitelist. Proceed with extreme care! https://blog.algolia.com/when-solid-state-drives-are-not-that-solid/

    Some examples of SSDs with broken TRIM support:
    SAMSUNG MZ7WD480HCGM-00003
    SAMSUNG MZ7GE480HMHP-00003
    SAMSUNG MZ7GE240HMGR-00003
    Samsung SSD 840 PRO Series
    Samsung SSD 850 PRO 512GB

    This recently caused me a lot of strife.

    Heres a tip.. if you're a Mac user (or PC for that matter), if you buy SSD's from OWC (www.macsales.com or www.macfixit.com.au ) they don't require TRIM.

    OWC modified the SSD controller and uses over provisioning within the disk (this takes care of the garbage collection and maintenance tasks)

    The sacrifice is a little less storage space. i.e. what would be 256GB SSD is 240GB, 512GB is 480GB.

    They explain it better than I can

    http://blog.macsales.com/21641-with-an-owc-ssd-theres-no-need-for-trim

Join the discussion!