SSD TRIM is a command that helps, well, trim down the unnecessary writing to a solid-state drive (SSD) hence maximize its life span.
Even an SSD of extreme endurance, like the Samsung 970 PRO, can become unreliable pretty quickly with TRIM disabled. That said, here’s how you can check and enable TRIM on a Windows or a Mac computer.
Dong’s note: I first posted this piece on May 23, 2018, and updated it on March 30, 2021, with additional relevant information.
How to work on the SSD TRIM command on a Windows 10 computer
These steps can also apply to Windows 7 and 8. Older Windows versions — if for some reason you still use them — don’t support TRIM. As a result, yous shouldn’t use SSDs with them.
How to check the SSD TRIM on a Windows machine
- Use Windows key + X keyboard shortcut (press and hold the Windows key, then press on X). Alternatively, you can right-click on the Start button to bring up the Power User menu. Now select Windows Powershell (Admin). (On earlier versions of Windows, you can use the Command Prompt (Admin).
- Type in the following command into the Powershell window, then press Enter. (You can also copy and paste it.)
fsutil behavior query DisableDeleteNotify
If the command returns 0 (zero), then you’re all good. Despite the fact you see the word “(Disabled),” TRIM is enabled on the computer, and there’s nothing else you have to do.
If not, you need to enable it.
How to enable/disable TRIM on a Windows 10 computer
- Use Windows key + X keyboard shortcut to bring up the Power User menu, select Windows Powershell (Admin).
- To enable TRIM, enter the following command in the Powershell window then press Enter:
fsutil behavior set DisableDeleteNotify 0
To disable TRIM (if somehow you want to do that), use the same command but substitute 0 with 1
fsutil behavior set DisableDeleteNotify 1
And that’s it. Now you can rest assured you’ve taken the necessary steps to make sure your SSD will work well and last on your Windows computer.
How to work with the SSD TRIM command on a Mac
Things are a little different on a Mac — it’s slightly more complicated or simple depending on how you look at it.
That’s because all new MACs come with an SSD internal drive with TRIM already turned on by default. For most of them, you can’t even change upgrade the storage at all.
That said, checking the SSD TRIM command is only necessary with models that allow you to change the internal drive. In that case, these steps apply to most versions of MacOS.
Checking SSD TRIM on a Mac
- Click on the Apple icon (top-right corner) then choose About This Mac.
- Click on System Report.
- On the left pane of the System Information window, under Hardware navigate to SATA/SATA Express (if you use a standard SATA SSD) or NVMExpress (if you use an NVMe SSD). It doesn’t hurt to check both sections.
- On the right pane, scroll down until you find TRIM Support. If the value is Yes, then TRIM is running — you’re all good! Otherwise, go to the next step.
How to enable SSD TRIM on a Mac
Again, it’s important to note that the SSD TRIM on a Mac can be complicated and might not work the same for all SSDs. If your machine comes with an SSD, TRIM is automatically enabled (or disabled for a particular reason).
That said, you should check with your vendor to make sure an SSD supports your Mac before installing it on the machine, and then tread lightly with the next steps.
- Run Terminal (you can search for it using Spotlight at the top right corner)
- Type in the following command and press enter:
sudo trimforce enable
You’ll need to enter the password (of your Mac account) and confirm that you want to enable TRIM. Answer those prompts affirmatively (again, make sure your SSD supports the Mac). The machine will restart with TRIM enabled.
SSD TRIM command: The takeaway
The most important thing about SSD TRIM is that it’s enabled. Without TRIM, an SSD will suffer from write amplification a great deal and run out of writes (or endurance) really fast. I’ve seen good SSDs deplete their writes in a matter of months or even days, in normal use, with TRIM turned off.
If you install a new (or even used) SSD on a computer, checking to make sure TRIM works properly is the first and most important step. Also, don’t use SSDs with an operating system that doesn’t support TRIM.