How to Disable TRIM on SSD

How to Disable TRIM on SSD: Complete Guide 2025
The TRIM function is crucial for the performance and longevity of SSD drives. In certain situations, however, disabling it may be necessary. This guide explains how to manage TRIM on Windows, macOS, and Linux, based on practical tests and technical data.
Key Information
Key facts about disabling TRIM on an SSD drive:
- Increases chances of data recovery Potential effectiveness increase from 15% to up to 80%.
- Drastically reduces system performance Write speed can drop from >400 MB/s to 25-35 MB/s.
- Realistically shortens drive lifespan Increased memory cell wear reduces SSD life by 20-40%.
The decision to disable TRIM is a conscious trade-off between performance and the ability to recover files in a critical situation. It is justified only in special cases.
What is TRIM and How Does It Work?
TRIM is a system command that informs the SSD which data blocks are no longer in use and can be internally cleaned. This is essential for maintaining optimal drive performance over time, because SSDs cannot directly overwrite data - they must first erase an entire block before writing new information to it.
How the TRIM and Garbage Collection Process Works
These two mechanisms work closely together:
- 🗂️ You delete a file: The operating system marks the file as deleted.
- 📤 System sends TRIM command: The drive controller receives information (a "to delete" label) about which data is no longer needed.
- 🧹 Garbage Collection runs: The drive's internal mechanism (controller) finds data with the "to delete" label during idle time, physically cleans it, and prepares space for new data.
- ⚡ Drive recovers performance: The freed space is ready for new, fast write operations.
In short: TRIM is the *information* from the system, and Garbage Collection is the *action* taken by the drive based on that information.
TRIM Management Instructions for Different Systems
🖥️ Windows 10 and Windows 11
Open Command Prompt or PowerShell as administrator and use the following commands.
Step 1: Check current TRIM status
fsutil behavior query DisableDeleteNotify
A result of 0 means TRIM is enabled. A result of 1 means it is disabled.
Step 2: Disable TRIM
fsutil behavior set DisableDeleteNotify 1
Step 3: Re-enable TRIM
fsutil behavior set DisableDeleteNotify 0
🍎 macOS
In macOS, TRIM support depends on the drive manufacturer. For third-party drives, you can use the trimforce tool in Terminal.
Enable TRIM
sudo trimforce enable
Disable TRIM
sudo trimforce disable
How to check status? Hold the Option key, click the Apple menu → System Information, then go to Hardware → SATA/NVMe Express and look for the "TRIM Support" field.
🐧 Linux (e.g., Ubuntu)
In Linux, TRIM can be run automatically via a system service or manually.
Method 1: Automatic TRIM (system service)
This is the standard method in modern distributions, run periodically.
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
Method 2: Manual TRIM run
Useful for immediately cleaning free blocks on all drives.
sudo fstrim -a
Note: To disable automatic TRIM, use the command sudo systemctl disable fstrim.timer.
Practical Impact of Disabling TRIM on the Drive
The decision to disable TRIM has serious, real consequences. The main problem is Write Amplification - a phenomenon where the drive must write significantly more data than the operating system actually sends to it.
💔 Impact on Lifespan: Why Does the Drive Wear Out Faster?
Without information from TRIM, the drive controller doesn't know which data is unnecessary. To write new data in a seemingly occupied block, it must first read the entire block, move still-important data elsewhere, clean it, and only then write new information. This multiple, additional work is precisely write amplification.
- Faster cell wear: Each memory cell has a limited number of write cycles. Unnecessary operations rapidly exhaust them.
- Shortened drive life: In practice, depending on workload, drive lifespan can decrease by 20% to 40%.
📉 Impact on Performance: Why Does the System Slow Down?
Initially, the problem may be invisible. However, when the drive fills up, the controller runs out of free blocks and every write operation becomes a slow "read-modify-write" cycle.
- Dramatic write speed drop: Tests (benchmarks) show that write performance on drives without TRIM can drop from nominal 400-500 MB/s to as low as 25-35 MB/s.
- Noticeable slowdown: Longer system boot times, slower application loading, and computer "stuttering" during file copying become the norm.
When Is Disabling TRIM Justified?
Disabling TRIM is a strategy for specialists where the ability to recover data is an absolute priority, more important than drive performance and lifespan. It works as a last resort in three key scenarios:
🕵️Digital Forensics
Recovering deleted files as evidence is crucial for investigators. TRIM permanently destroys this data, so disabling it is standard practice here.
🏦High-Value Data
In finance or research, where losing a single file is catastrophic. The chance of recovery is more valuable than the cost of faster drive replacement.
📜Legal Requirements
Some regulations require maintaining a complete data trail. Active destruction by TRIM could violate these compliance rules.
Summary and Conclusions
For most users: keeping TRIM enabled is the optimal solution.
The benefits of high performance and maximum SSD lifespan significantly outweigh the theoretical possibility of data recovery. For protection against data loss, regular backups are a much more reliable solution.
Sources and Further Reading
The information in this article is based on data from synthetic tests, technical analyses, and documentation. Recommended sources for those interested:
- Analyses and performance tests published in specialist technical press.
- Technical documentation from SSD manufacturers (e.g., Samsung, Crucial, WD).
- Operating system documentation, e.g., man pages for the
fstrimcommand in Linux.
Komentarze
Powiązane artykuły
Can You Recover Deleted Data from an SSD?
The internet is full of "miracle programs" for data recovery. But if you just lost files from an SSD drive, listen carefully:
What Happens After Pressing the POWER Button?
Learn step by step how Windows goes from pressing the power button to a ready desktop
How to Reset a Forgotten Password on Mac Without Data Loss - MacBook, iMac, Mac mini
Forgot your MacBook, iMac, or Mac mini password? The resetpassword command in macOS allows you to regain access to Mac Intel and Apple Silicon (M1/M2/M3/M4)...