38 Responses to “What is SSD TRIM, why is it useful, and how to check whether it is turned on”

  • Christopher says:

    I use a WD Green 2.5. 480GB drive with a SATA interface on windows 7 on a Dell latitude E4320 laptop with AHCI so Trim is available. While DisableDeletenotify is 0 , windows 7 standard defragment process in Disk Properties does not recognize it as an SSD and wants to defragment it so I have disabled it. what I have noticed is that if it recognises it as an ssd then one can set up a Trim schedule the same as the defragment schedule. Is there a command I can use and set up in a .bat file that will Trim the drive or in Task Scheduler

  • myself says:

    C:\Windows\system32>fsutil behavior query disabledeletenotify
    NTFS DisableDeleteNotify = 0 (Disabled)
    ReFS DisableDeleteNotify = 0 (Disabled)

    C:\Windows\system32>

    You’re wrong. 1 is enabled 0 is disabled.

    • Codrut Neagu says:

      Disabled “DisableDeleteNotify” means Enabled. It’s a double-negation if you like, so no, I’m not wrong.

  • Bartels Juice says:

    Do not be confused by the results of the above commands. MS is using something of a double negative with this command and results. The cmd is to DIS-able Delete Notify (i.e. DIS-able notifying an SSD to run TRIM) then the desired result is zero (0) (Disabled)

    In typical MS fashion we are disabling the disable routine, which means to turn TRIM ON.

  • sosakan says:

    according to my cmd, the 0 and 1 are reversed in this article. Mine says (enabled) or (disabled) at the end and 1 is marked as enabled.

  • David Carter says:

    My signifier is “0” but in brackets after this is the word (disabled). Can you tell me what that means? I’m confused now if TRIM is enabled or disabled.

  • I hate trim says:

    Trim is not useful. If you accidentally format your SSD or wipe the partition – that’s it… you’re f*cked and the data is gone forever. On a HDD you can easily recover said data.

    I just lost some very important files when reinstalling Windows because I accidentally formatted the wrong SSD.

  • Belfontan says:

    Thank you for the nice article.
    I have a quite old
    – Samsung 850 EVO (250 GB) via SATA
    and a newer
    – Samsung 970 EVO+ (1 TB) via NVMe/PCIe
    running both on Win7-64Bit pretty well.
    TRIM is of course enabled.

    Bye

  • Brian says:

    C:WINDOWSsystem32>fsutil behavior set disabledeletenotify 0
    NTFS Disabledeletenotify = 0 (Disabled)

    C:WINDOWSsystem32>fsutil behavior set disabledeletenotify 1
    NTFS Disabledeletenotify = 1 (Enabled)

    When I use 0, it tells me Disabled. When I use 1, it tells me Enabled. Am I missing something? The exact opposite of what is written in the post.

    • Christopher says:

      look at the setting, “Disable the ability to notify about deletions”. So if you enable it then you are enabling the “Disable the ability” so the correct way to set it is to disable the “Disable the Ability”and then it will notify about deletions. Whomever created the setting used the “Negative” approach so double negative means positive rather than using a label of “EnableDeleteNotify”

  • Ron says:

    I have a Kodak 960GB drive, trim is enabled.

  • Dean says:

    I think you have the commands backwards, “0” means it is disabled and “1” is eneabled.

    • Anonymous says:

      No… if you get 0 (disabled) then TRIM is enabled, and if you get 1 (enabled) TRIM is disabled.

  • Ron says:

    I used the Windows 10 Powershell app with your command. I have a Samsung EVO850 sata SSD that is my C drive and both NTFS and ReFS were 0 (enabled). I then tested my Western Digital black NVMe M.2 SSD (my D drive) and got the same result. Thanks for the article.

  • Jake says:

    My SSD is connected via a SATA to USB 3.0 cable and the windows disk defragmenter recognise it as HDD. I’ve already performed ‘winsat formal’ on cmd run as administrator but it doesn’t work.
    How do I 1. tell Windows it is a SSD (change it) and 2. enable TRIM?

  • Kimberly L says:

    Thanks for the information! Checked & enabled on my new laptop. I’m not taking it apart to see what brand/model of SSD is installed but it is using ReFS so I appreciate the info on that also.

    • Anonymous says:

      Happy to help. Do not hesitate to subscribe to our newsletter, for more useful tutorials. 😉

  • Jesse Meush says:

    I have a jetdrive 820 solid state installed on my mac and it is giving me the option for TRIM. im running OSX mojave on a macbook pro late 2014. 2.4gz 8gb DDR3 RAM core i5

  • Vipul Jain says:

    Very nice article. Using a Samsung 970 EVO PCIe NMVe SSD. Blazing fast performance.

  • George From Alaska says:

    SSD: LITEONIT LCS-128L9S-11 2
    Trim is enabled by default on my SSD

  • Julio says:

    Interesting…this is what I get when I use the trim command:

    NTFS DisableDeleteNotify = 0 (Enabled)
    ReFS DisableDeleteNotify = 0 (Enabled)

    If I change it to 1 it shows as (Disabled). Any ideas?
    PNY 250G SSD

    • Julio says:

      Oops! sorry typing error, its the other way around. I get 0 = (disabled), while 1 = (enabled)

      • Mike says:

        Mine says the same thing. So which is it? Did they screw up this article?

      • Bruno V says:

        Hi, I am confused too… Command Prompt returns NTFS DisableDeleteNotify = 0 (Disabled) whereas, which seems to be in contradiction with ts article stating that 0 means Enabled. How about a reply from the author?

        • Anonymous says:

          The result you got is OK.

          • If the "fsutil behavior query disabledeletenotify" command returns: NTFS DisableDeleteNotify = 0 (Disabled), it means that TRIM is ENABLED on your SSD.
          • If the command stated above returns NTFS DisableDeleteNotify = 1 (Enabled), it means that TRIM is DISABLED on your SSD.

          The confusion can come from the fact that a result that states “Disabled” actually means that TRIM is Enabled, and the other way around.

  • Nipun says:

    Great article. Sandisk x110 , with TRIM turned on, and runs it monthly.

  • William Rack says:

    What if you have 2 SSD’ s on your system. How do you check if both have TRIM enabled.

    • William Rack says:

      Just answered my own question. Ran CMD on 2nd drive and got my answer. Only after figuring out how to run CMD on that drive.

  • Rubidad says:

    If SSD’s are so fast, why do we need RAM?

  • SNair says:

    I believe you got the technicalities a bit wrong. NAND flash by virtue of how the floating gate transistors are physically wired up, will necessitate an erase of entire page. But since erase operations can only be performed at block level, entire block goes through a read-erase-modify-write operation. TRIM lets the OS inform the SSD that entire block is disposable, which allows the SSD controller to erase the entire block before hand and be ready for write operation.

    Above is in contrary to your description wherein you say TRIM SSDs can erase data at page level, while others can only do so at block level.

    Please research more and let me know if I am wrong.

    Thanks.

    • Ciprian Adrian Rusen says:

      Thank you for sharing this information. When we get to updating this article, we will definitely take your feedback into consideration. Highly appreciated! 😉

  • Codrut Neagu says:

    I meant delete. Whenever data is deleted, the space occupied by it must be wiped, meaning a TRIM command is sent and everything is rewritten with zeroes. While on a HDD data is simply marked as deleted, on a SSD it really has to be physically deleted.

  • Ken says:

    seems like you contradicted yourself. in your initial scenario, did you mean to say rewrite instead of delete? later you say again that the block must be deleted, just as you previously said

Leave a Reply