TRIM Support for SSD - Check and Enable or Disable

How to Check and Enable or Disable SSD TRIM Support in Windows 7 and Windows 8


information   Information
The TRIM command helps 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.

For more information about TRIM support, see:



This tutorial will show you how to check the current status of TRIM support for SSDs, and to enable or disable TRIM in Windows 7 and Windows 8.

You must be signed in as an administrator to be able to do the steps in this tutorial.

Note   Note
TRIM Support Requirements:

  • Windows 7 or Windows 8
  • SSD with TRIM enabled firmware
  • BIOS/UEFI storage controller set to AHCI/SATA mode




Here's How:

1. Open an elevated command prompt in Windows 7 or Windows 8, and do step 2, 3, or 4 below for what you would like to do.

2. To Check if TRIM Support for SSDs is Enabled or Disabled
A) In the command prompt, copy and paste the command below, and press Enter. (see screenshot below)​
fsutil behavior query disabledeletenotify

B) Compare the results you got to the note box below to see if TRIM support is currently enabled or disabled, and go to step 5 below.​
Note   Note
DisableDeleteNotify = 1 = TRIM support disabled

Note   Note

DisableDeleteNotify = 0 = TRIM support enabled​

Check_TRIM.jpg

3. To Enable TRIM Support for SSDs
NOTE: This is the default and recommended setting.
A) In the elevated command prompt, copy and paste the commands below one at a time, press Enter after each one, and go to step 5 below. (see screenshot below)​
(For NTFS and ReFS v1)​
fsutil behavior set disabledeletenotify 0
(For ReFS v2)​
fsutil behavior set DisableDeleteNotify ReFS 0
Enable_TRIM.jpg

4. To Disable TRIM Support for SSDs
A) In the elevated command prompt, copy and paste the commands below one at a time, press Enter after each one, and go to step 5 below. (see screenshot below)​
(For NTFS and ReFS v1)​
fsutil behavior set disabledeletenotify 1
(For ReFS v2)​
fsutil behavior set DisableDeleteNotify ReFS 1
Disable_TRIM.jpg

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



That's it,
Shawn


 

Attachments

  • Hard_Disk_Drive.png
    Hard_Disk_Drive.png
    10.5 KB · Views: 391
Last edited by a moderator:
I checked and TRIM is enabled, but there is a second line below that tells me that
Refs is not set.
What does this mean?

Thanks

TRIM.JPG
 

My Computer

System One

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    System Manufacturer/Model
    white box
    CPU
    AMD fx 6100 6 core
    Motherboard
    gigabyte ga-78lmy-s2p am3+ amd 760g matx
    Memory
    16 gb crucial ballistix sport 13339 pc3-106000
    Graphics Card(s)
    on MB
    Sound Card
    on MB
    Monitor(s) Displays
    ACER p215h
    Screen Resolution
    1920x1080
    Hard Drives
    Crucial SSD 240 GB
    Case
    mini tower
    Keyboard
    Polaroid wireless
    Mouse
    MTG laser
    Browser
    IE 11
    Antivirus
    MSE

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
Thanks Brink

I did not format the drive, I just plugged it in and installed windows on it.
 

My Computer

System One

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    System Manufacturer/Model
    white box
    CPU
    AMD fx 6100 6 core
    Motherboard
    gigabyte ga-78lmy-s2p am3+ amd 760g matx
    Memory
    16 gb crucial ballistix sport 13339 pc3-106000
    Graphics Card(s)
    on MB
    Sound Card
    on MB
    Monitor(s) Displays
    ACER p215h
    Screen Resolution
    1920x1080
    Hard Drives
    Crucial SSD 240 GB
    Case
    mini tower
    Keyboard
    Polaroid wireless
    Mouse
    MTG laser
    Browser
    IE 11
    Antivirus
    MSE
You're most welcome. :)
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
Hey. I've got another question for you. I noticed that TRIM is enabled in my freshly formatted Windows 7 Pro Sp1 64-bit HP Sleekbook laptop but I don't have an SSD drive. Would it be of any benefit to disable TRIM?

Here is my hard drive info: TOSHIBA MQ01ABD075, Interface: SATA 3.0Gb/s, AHCI Mode: Activated, Trim Status: Enabled, Rapid Mode: Not Supported

Thank you for your time and help. Be blessed! Amanda
 

My Computer

System One

  • OS
    Windows 8 64 bit
Hello Amanda, and welcome to Eight Forums. :)

Having TRIM support enabled is ok. TRIM will only be used on an SSD, and defrag will only be used on a HDD.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
You're most welcome. :)

It wouldn't affect performance to disable TRIM support since you do not have a SSD.

If you should get a SSD, you would want TRIM support enabled to improve the health and performance of the SSD.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
Back
Top