How to Run Trim Command for SSD in Windows 10

How to run Trim command for SSD in Windows 10? If your computer uses Solid State Drive (SSD), it is necessary that Trim is enabled for SSD, to boost up the performance of a Solid State Drive. By default, Trim will be enabled on your computers and laptops with SSD hard disks.

Using the Trim commands, you will get to know the status of Trim on your SSD; i.e. if Trim is enabled or disabled on your SSD. If Trim is Disabled, you need to enable it yourself, for better system performance.

What is the Trim Command for SSD Drives?

SSD Trim command is an Advanced Technology Attachment (ATA) command with SATA connectivity to the motherboard that enables the Windows operating system to inform a Solid State Drive (SSD) of which data blocks it can erase, which are no longer used. The use of Trim commands improves the performance of data writes to SSD and contributes to longer SSD life. The equivalent command in SCSI devices is UNMAP.

SSDs read and write data in pages (unit for them to read/write). In an SSD, 128 pages typically constitute a single data block. Before any data is being written to the SSD, a block of data (128 pages) must be erased first. SSD has got an internal housekeeping operation called garbage collection which takes care of this process.

SSD Trim and garbage collection are complementary in nature. Trim command helps the operating system to notify the SSD in advance of which data pages in a block can be erased, allowing the SSD’s controller a better storage space management. Trim eliminates unnecessary copying of invalid or discarded data pages during the garbage collection, thus saving time and improve the performance of SSD.

The main function of the Trim command is to mark the invalid data and tells SSD to ignore those marked areas during the garbage collection. Thus, SSD has fewer pages to move during garbage collection. This, in turn, reduces the total number of P/E ( program/erase) cycles and this helps in the prolonged life of the SSD. SSD’s wears out faster than normal hard disks. Hence reducing the number of erases can help in longer life for the SSD.

The Trim command and the Operating system level write command works independently of each other.

The SSD Trim command may encounter issues with RAID controller hardware, because of the way RAID controller breaks apart. Software-based RAID controllers are less problematic with SSDs. RAID or Redundant Array of Inexpensive Disks or Drives is normally used for data redundancy, improved system performance, or both.

Note:

1. Technical Committee T13, an International Committee for Information Technology Standards has added TRIM command into the ATA standard, more than a decade back.

2. The user can also initiate the TRIM command on a daily basis, either manually or it can be scheduled.

How to Run Trim Command for SSD in Windows 10?

Trim Commands can be run from the Command prompt. The steps involved to run Trim Command for SSD in Windows 10 to check if your SSD is Trim Enabled or Disabled are as follows.

How to Run Trim Command for SSD in Windows 10
  • Go to the command prompt by typing CMD on the search button.
  • Click on the “Run as administrator” on the left pane.
  • Enter the following line into the command prompt, to know if Trim is enabled or not.
  • “fsutil behavior query disabledeletenotify”
  • The different output options displayed on your screen will be as follows. The values are counter-intuitive, 0 means Trim is Enabled or On and 1 means Trim is disabled or Off. By default, when Trim is enabled, two lines will be displayed.
  • If you get the immediate next two results, your SSD is Trim enabled.
  • 1. If the display says “NTFS DisableDeleteNotify = 0”, it means that the SSD with NTFS has TRIM has already been enabled.
  • 2. If the display says “ReFS DisableDeleteNotify = 0”, it means that the SSD with ReFS has TRIM has already been enabled. Resilient File System (ReFS) is the next-generation File System after NTFS, from Microsoft with robust features.
  • 3. If “NTFS DisableDeleteNotify = 1” is displayed, it means that SSD with NTFS has TRIM disabled.
  • 4. If “NTFS DisableDeleteNotify is not currently set” is displayed, it means that TRIM support will get enabled automatically when an SSD with NTFS is connected.
  • 5. If “ReFS DisableDeleteNotify = 1” is displayed, means that TRIM is disabled for SSDs with ReFs.
  • 6. IF “ReFS DisableDeleteNotify is not currently set” is displayed, it means that TRIM support will get enabled automatically when an SSD with ReFS is connected.

Trim Commands for SSD with NTFS File System

Trim Command for SSD with NTFS File System is as follows.

  • To Enable Trim, type the following command into the command prompt; fsutil behavior set disabledeletenotify NTFS 0.
  • To Disable Trim, type the following command into the command prompt; fsutil behavior set disabledeletenotify NTFS 1.

Trim Command for SSD with ReFS File System is as follows.

Trim Command for SSD with ReFS File System is as follows.

  • To Enable Trim, type the following command into the command prompt; fsutil behavior set disabledeletenotify ReFS 0.
  • To Disable Trim, type the following command into the command prompt; fsutil behavior set disabledeletenotify ReFS 1.

Conclusion: How to run Trim command for SSD in Windows 10? If you use SSD drive in your computer or laptop, it is high time that you check if Trim is enabled on the disk drive for better performance and longer shelf life. By default, Trim is enabled on SSD’s. If not, you need to enable it manually.

You can run Trim commands in the windows command prompt utility. Go to the command prompt and enter the command “fsutil behavior query disabledeletenotify”, to see it Trim is enabled or disabled. “NTFS DisableDeleteNotify = 0” and “ReFS DisableDeleteNotify = 0” means that you do not worry about Trim, as it is enabled. Otherwise, you need to enable Trim by adding the required command from under the subheading “Trim Command for SSD with NTFS File System” or “Trim Command for SSD with ReFS File System”, to the command prompt and press enter to get it executed.

Please follow and like us:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.