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 860 Pro, can become unreliable pretty fast with TRIM disabled. That said, here’s how you can check and enable TRIM on a Windows or a Mac computer.
How to check TRIM on a Windows 10 computer
These steps can also apply to Windows 7 and 8.
- 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.
fsutil behavior query DisableDeleteNotify
If the command returns 0 (zero), then you’re all good. Despite the fact you see “(Disabled),” TRIM is enabled on the computer, and there’s nothing else you have to do. If not, continue to the next step.
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
How to check TRIM on a Mac
These steps apply to most versions of MacOS.
- 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 TRIM on a Mac
It’s important to note that 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.