Tuesday, January 18, 2022 • Welcome to the 💯 No-Nonsense Zone!

SSD TRIM Command: How to Make Sure It’s Enabled on Your Computer

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.

Read this  SSD Explained: Everything You Need To Know about Solid-State Drives
Sasung SSD 980 Pro Installed
SSD TRIM command: It needs to be enabled for the solid-state drive, including the latest one like this Samsung 980 PRO, to work efficiently and last a long time.

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

All is good! TRIM is enabled.
SSD TRIM command: All is good! It’s now enabled.
  1. 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).
  2. 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

The command to disable and enable TRIM on a Windows computer.
SSD TRIM command: The command to disable and enable it on a Windows computer.
  1. Use Windows key + X keyboard shortcut to bring up the Power User menu, select Windows Powershell (Admin).
  2. 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

If your Mac comes with an SSD, chances are TRIM is already enabled.
SSD TRIM command: If your Mac comes with an SSD, chances are TRIM is already enabled.
  1. Click on the Apple icon (top-right corner) then choose About This Mac.
  2. Click on System Report.
  3. 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.
  4. On the right pane, scroll down until you find TRIM SupportIf 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.

The command to enable TRIM on a Mac.
The command to enable TRIM on a Mac.
  1. Run Terminal (you can search for it using Spotlight at the top right corner)
  2. 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.

☕ Appreciate the content? Buy Dong a Ko-fi!

8 thoughts on “SSD TRIM Command: How to Make Sure It’s Enabled on Your Computer”

  1. I upgraded from the original SATA HD in my macbook pro to a 1 TB Samsung SSD in 2016 and did have to activate TRIM then. I am now going to install a 2 TB Samsung 870 EVO (thanks for your review btw). Does this process need to be done again or will it remain activated?

  2. Windows? Mac? Yup. Run them both. But my Samsung 960 is in my Linux desktop PC. 7 of the home machines run Windows of all flavors, 2 run MacOS, & 12 run Linux (or BSD). It doesn’t have to be Windows OR Linux, I’m sure there’s many users like myself that run varying OS depending upon need. We’re out here. Linux may dominate the Web-server world, but there’s plenty of desktops out there running Linux, & for good reason. Each platform has it’s pluses & minuses, thinks it does better than the others, but for day to day stuff: Linux.


Leave a Comment