• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

TRIM Support for SSD - Check and Enable or Disable


Brink

Administrator
Administrator
mvp
Posts
22,952
TRIM Support for SSD - Check and Enable or Disable
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.
Published by Brink
#1
ByLine
How to Check and Enable or Disable SSD TRIM Support in Windows 7 and Windows 8
Synopsis
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.
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


 
Last edited by a moderator:

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    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
    Internet Speed
    300 Mb/s Download and 30 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,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Sven1458

Member
VIP Member
Member
Torrance, CA

Posts
95
#2
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 Number
    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

Brink

Administrator
Administrator
mvp
Posts
22,952
#3

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    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
    Internet Speed
    300 Mb/s Download and 30 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,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Sven1458

Member
VIP Member
Member
Torrance, CA

Posts
95
#4
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 Number
    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

Brink

Administrator
Administrator
mvp
Posts
22,952
#5
You're most welcome. :)
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    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
    Internet Speed
    300 Mb/s Download and 30 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,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone
Posts
4
#6
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

Brink

Administrator
Administrator
mvp
Posts
22,952
#7
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 Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    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
    Internet Speed
    300 Mb/s Download and 30 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,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Brink

Administrator
Administrator
mvp
Posts
22,952
#9
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 Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    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
    Internet Speed
    300 Mb/s Download and 30 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,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone