Enable or Disable TRIM Support for Solid State Drives in Windows 10  

Page 1 of 4 123 ... LastLast
    Enable or Disable TRIM Support for Solid State Drives in Windows 10

    Enable or Disable TRIM Support for Solid State Drives in Windows 10

    How to Enable or Disable TRIM Support for Solid State Drives (SSD) in Windows 10
    Published by Category: Hardware & Drivers
    15 Apr 2020
    Designer Media Ltd

    How to Enable or Disable TRIM Support for Solid State Drives (SSD) in Windows 10


    The TRIM command is essential to maintain the performance of solid state drives (SSDs) at an optimal level over the lifetime of the drive. TRIM functions by actively deleting invalid data from the SSD’s memory cells to ensure that write operations perform at full speed. Since a memory block must be erased before it can be re-programmed, TRIM improves performance by pro-actively erasing pages containing invalid data, allowing the SSD to write new data without first having to perform a time-consuming erase command.

    EXAMPLE:
    1. SSD pages contain no data.
    2. User writes data to SSD pages.
    3. User deletes some data. Pages are marked as "not in use" by the OS, but data remains on SSD.
    4. TRIM command tells SSD controller that pages contain invalid data. Pages with invalid data are cleaned.
    5. Data is written back to SSD memory cells. The invalid data had been cleaned and data is able to be written to the pages at full speed.

    TRIM support for SSDs is enabled by default, and is recommended to always keep TRIM support enabled. If disabled, you risk the SSD getting defragged instead of optimized (TRIM).

    See also: The real and complete story - Does Windows defragment your SSD? | SCOTT HANSELMAN

    This tutorial will show you how to check the current status of TRIM support for SSDs, and to enable or disable TRIM support for NTFS and ReFS file systems for all users in Windows 10.

    You must be signed in as an administrator to be able to verify, enable, or disable TRIM support.


    TRIM Support Requirements:
    • Windows 7, Windows 8, Windows 8.1, or Windows 10
    • BIOS/UEFI storage controller set to AHCI/SATA mode




    Here's How:

    1 Open an elevated command prompt.

    2 Do step 3 (status), step 4 (NTFS), and/or step 5 (ReFS) below for what you want to do.


    3 To Check Current Status of TRIM Support for SDDs with NTFS and ReFS File System

    A) Copy and paste the command below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshots below)

    fsutil behavior query disabledeletenotify


    TRIM Support Results Description
    NTFS DisableDeleteNotify = 0 (Disabled) TRIM support enabled for SSDs with NTFS
    NTFS DisableDeleteNotify = 1 (Enabled) TRIM support disabled for SSDs with NTFS
    NTFS DisableDeleteNotify is not currently set TRIM support for SSDs with NTFS is not currently set, but will automatically be enabled if a SSD with NTFS is connected.
    ReFS DisableDeleteNotify = 0 (Disabled) TRIM support enabled for SSDs with ReFS
    ReFS DisableDeleteNotify = 1 (Enabled) TRIM support disabled for SSDs with ReFS
    ReFS DisableDeleteNotify is not currently set TRIM support for SSDs with ReFS is not currently set, but will automatically be enabled if a SSD with ReFS is connected.
    Enable or Disable TRIM Support for Solid State Drives in Windows 10-verify_trim_support.png
    Enable or Disable TRIM Support for Solid State Drives in Windows 10-verify_trim_support-2.png


    4 To Enable or Disable TRIM Support for SDDs with NTFS File System

    A) Copy and paste the command you want to use below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshot below)

    (Enable TRIM support for SSDs with NTFS)
    fsutil behavior set disabledeletenotify NTFS 0

    OR

    (Disable TRIM support for SSDs with NTFS)
    fsutil behavior set disabledeletenotify NTFS 1

    Enable or Disable TRIM Support for Solid State Drives in Windows 10-enable_ntfs_trim_support.png


    5 To Enable or Disable TRIM Support for SDDs with ReFS File System

    A) Copy and paste the command you want to use below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshot below)

    (Enable TRIM support for SSDs with ReFS )
    fsutil behavior set disabledeletenotify ReFS 0

    OR

    (Disable TRIM support for SSDs with ReFS )
    fsutil behavior set disabledeletenotify ReFS 1

    Enable or Disable TRIM Support for Solid State Drives in Windows 10-enable_refs_trim_support.png


    6 When finished, you can close the elevated command prompt if you like.


    That's it,
    Shawn






  1. Posts : 413
    windows 10 2004
       #1

    I've enabled Trim even though I have Diskeeper 16 up and running. But when I checked to see if Trim was indeed running, I get the following,
    "NTFS DisableDeleteNotify = 0
    ReFS DisableDeleteNotify is not currently set"

    Can you please inform me as to what that second line means "not currently set"? I've just executed this command,

    fsutil behavior set disabledeletenotify ReFS 0




    And now I see this when I check to see if Trim is running ...

    NTFS DisableDeleteNotify = 0
    ReFS DisableDeleteNotify = 0

    I guess my question now is ... does that look normal to you?
      My Computer


  2. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello Maggidon, :)

    The first results indicated that you had TRIM support enabled for SSDs formatted with only NTFS, but didn't have it set for ReFS yet.

    The last results indicate that you have TRIM support enabled for SSDs formated with both NTFS and ReFS.
      My Computers


  3. Posts : 413
    windows 10 2004
       #3

    Is it ok to have both enabled with Diskeeper 16? I'm understanding one cannot format the SSD with ReFS enabled though I'm not thinking of doing that. I guess my question is, is it ok. It hasn't been enabled up to this point.
      My Computer


  4. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    Yep, it's fine.
      My Computers


  5. Posts : 413
    windows 10 2004
       #5

    I used this command to enable ReFS ... fsutil behavior set disabledeletenotify ReFS 0



    I won't disable it since you say it's ok but if I wanted to disable it, would I just type in "fsutil behavior set disabledeletenotify ReFS 1
      My Computer


  6. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    That would be the correct command to disable TRIM for ReFS. :)
      My Computers


  7. Posts : 413
    windows 10 2004
       #7

    Well I'm glad you were on here Brink. I just about went over the edge after enabling it thinking maybe I shouldn't have. I wasn't sure if I should enable that or TRIM with Diskeeper 16 but I did anyway. But now that you're saying it's ok, I'll just leave both enabled and carry on. Thank you for your help.
      My Computer


  8. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    You're most welcome. :)
      My Computers


  9. Posts : 11,062
    Windows 10 Pro version 22H2 0n one desktop and running Window 11 Pro 22H2 on unsupported desktop
       #9

    Sahwan what about dual boots drives
      My Computer


 

Tutorial Categories

Enable or Disable TRIM Support for Solid State Drives in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:38.
Find Us




Windows 10 Forums