The best way to expand your Mac’s lifespan and obtain a significant speed boost is by replacing the hard drive with a solid state drive (SSD). You’ll notice the huge performance improvement right from the first time you boot up and immediately praise yourself for making this investment. However, you shouldn’t stop at installing a new SSD. There is one tiny command line you must type into Terminal to enable a feature meant to expand the lifespan of the newly installed drive; this feature is called TRIM.
What Is TRIM, and Why Do You Need It?
Trim Enabler essentially bypasses this restriction, and is essentially switching on the TRIM support for non-Apple SSDs. With Yosemite, there is an additional. With TRIM enabled, this practice is incredibly important. EaseUS Todo Backup is a data backup utility that will allow you to restore all files that are lost or inadvertently deleted. Through the program, you can automate backup tasks to run on a time or event basis; such as backing up to an external hard drive each time it is plugged in.
If you are using HFS+ on an NVME SSD or SSD then Trim should be enabled by the user either by the Clover method or from a terminal 'sudo trimforce enable' (my prefered method). I'm no expert on this though, but @vulgo is a very experienced user, so I respect his opinion.
Writing to an SSD is totally different than writing to a traditional hard drive: the SSD first clears existing information from the flash memory cells and programs new data into them; hence, the writing process is often referred as program/erase cycles or P/E cycles. There is one thing to note, though, and that is that there are a limited number of P/E cycles an SSD can support. Writing to an SSD is like writing on a piece of paper with a pencil: if you erase the same space too many times, it can wear out. Manufacturers address this issue with so-called wear leveling, which prevents SSD memory cells (the pages) from wearing out.
SSDs contain memory cells organized into pages and blocks. What represents a challenge is that with an SSD you can write on a page any time, but you can erase only one block at a time. Each block contains a specified number of pages (from 32 to 256), which contain a specified amount of data (2 to 8KB). Unlike traditional hard drives, data on SSDs can’t be directly overwritten. When data changes, it must be written again. The same data (and metadata) ends up being written over and over again in our daily use of computers generating a phenomenon called write amplification, which uses up the limited P/E cycles.
Download CleanMyMac X from MacPaw’s website and clean up to 500MB of junk data from your computer while enjoying all the features of the software without major limitations.
TRIM can be considered a more efficient way of handling “garbage” and was introduced shortly after SSDs became available. The TRIM command allows the operating system to inform the SSD about regions where the data marked for deletion are stored, and after trimming the SSD won’t preserve the contents of the block when it writes new data to a page. This enables less write amplification and, as it doesn’t use up the precious P/E cycles, the SSD’s lifespan will be much longer.
Back Up Your Mac Before Enabling the TRIM Command
You need to enable trimming manually when installing a third party SSD. All Macs shipped with an SSD have TRIM enabled, however, and yours can be checked by clicking on the Apple logo > About This Mac > System Report > SATA/SATA Express and look for “Trim Support”. Note that this won’t work on Retina MacBook Pro (late 2016) units.
If the answer here is “no” and you are running either macOS El Capitan 10.11.x or macOS Yosemite 10.10.4 or later versions, then TRIM can be enabled with one simple command in Terminal. Earlier versions of macOS don’t support this command, but there are third party apps, such as TRIM Enabler ($14.99), that can enable it.
Before you enable TRIM on the freshly installed SSD, we highly recommend doing a manual backup with Time Machine (or the backup service of your preference). Do not skip this step, because – despite supporting it – Apple doesn’t take any responsibility for data loss during the process. If anything goes wrong, the data will be lost and you won’t be able to recover it, so a backup can save the day.
But you don’t want to fill up your backup drive or the precious space on the SSD with all the junk files generated by apps as you use them: cookies, cache files, duplicates, erroneous downloads, iOS firmware downloads and much more should be wiped. For this reason, we strongly recommend performing a system cleanup using a Mac optimization app such as CleanMyMac, MacBooster or OnyX. After the cleaning process your Mac will be in its best shape for a backup and then to enable TRIM.
How to Enable TRIM on macOS in Five Easy Steps
To expand the lifespan of your SSD, follow the steps below:
- Launch Terminal.
- Type the command sudo trimforce enable, and press enter.
- Type the admin password, and press enter.
- Read the system notice, type “y”, and press enter.
- macOS will require your consent to reboot after finishing the process, so type “y” again, and press enter.
After finishing the process your Mac will reboot with TRIM enabled. Check again if TRIM support is now “OK” by clicking on the Apple logo > About this Mac > System Report > SATA/SATA Express, or by typing the following command in terminal:
system_profiler SPSerialATADataType | grep ‘TRIM’.
Best Mac Optimization Software of 2021
Rank | Company | Info | Visit |
| |||
| |||
|
Get the Best Deals on Mac Optimization Software
Stay up to date on the latest tech news and discounts on Mac optimization software with our monthly newsletter.
As you may or may not know, TRIM support is not enabled by default on macOS on any SSD not provided by Apple directly.
This is done because not all manufacturers follow the standards, and often just test for compatibility with Windows. Fortunately though, enabling TRIM support is easy enough, so long as you're ok saying yes to a scary sounding message. My guess is that if you're running a Hackintosh, you're probably used to dealing with scary sounding messages. And, so long as you keep a proper backup, in the worst case scenario of your particular SSD not supporting TRIM properly, you can revert back easily.
Trim Enabler Pro
Do note though, that it will be good for you to check online first to see if anyone else has used the SSD you have with TRIM enabled. While it can be ok to be a bit brave, if an SSD is known to not support TRIM support (or not well), it's probably best to avoid enabling it.
Check TRIM status
To check what the current status is of TRIM support, head on over to System Report (Apple menu » About This Mac » System Report...) and head for the SATA/SATA Express or NVMExpress section, depending on what kind of drive you have installed. Select your SSD and look through its details until you find TRIM Support.
Note that in this context, 'support' does not mean whether or not your drive actually supports it. It simply refers to whether or not macOS currently has TRIM support enabled for this particular drive.
Enable TRIM support
Trim Enabler For Mac
Enabling TRIM support is just one single command. Once run, this will enable TRIM support on all SSD drives installed. From what I can tell you cannot pick and choose which drives you want to enable support for, though you might be able to achieve that if you desire by temporarily unplugging whichever SSD you don't want to enable TRIM support for before running the command. But I have not tested this, so please do let me know if this is even possible if that's something you end up trying.
To enable trim support, simply open up a Terminal, and type in the following command. Make sure you are ready for your machine to immediately want to reboot after this command.
Reply with y
to the question, and hit enter.
That's it.
After your computer has rebooted you can confirm TRIM support is fully enabled by checking System Report again.
Optional: Safe Mode Drive Check
Some recommended you reboot into safe mode after enabling TRIM support, and running a drive health check, as that supposedly honors TRIM support and tells the drive to start doing its thing for previously deleted files right away. If you have been noticing your drive feeling particularly slow these days, you might want to give this a try to see if it helps.