Write-Caching - Enable or Disable

How to Enable or Disable Write-Caching for a Storage Device in Windows 7 and Windows 8


   Information
Write caching in a connected storage device refers to the use of high-speed volatile memory to collect write commands sent to data storage devices and cache them until the slower storage media (either physical hard disks or low cost flash memory) can accommodate them. Most devices that use write caching require that power be supplied continuously.

This will show you how to enable write caching to have better performace for a storage device, or disable write caching for quick removal of a storage device without having to use Safely Remove Hardware.


   Tip
If high data transfer performance is your main concern, you should enable both of these settings in OPTION TWO below:
  • In the Removal Policy section, select the Better Performance option.
  • In the Write-caching policy section, select Enable write caching on the device (if the system hardware and storage device support these features).
   Warning
You must be logged into a administrator account to be able to do the steps in this tutorial.





OPTION ONE

Disable Write Caching for Quick Removal



   Note
This option is usually the best choice for storage devices that you are likely to remove from the system frequently, such as USB flash drives, SD, MMC, Compact Flash, or similar memory cards, and other similar externally attached storage devices.

When you select the Quick Removal option, Windows 7 manages commands sent to the device using a method called write-through caching. In write-through caching, the device operates on write commands as if there were no cache. The cache may still provide a small performance benefit, but the emphasis is on treating the data as safely as possible by getting the commands to the storage device. The main benefit is that you can remove the storage device from the system quickly without risking data loss. For example, if a flash drive were to be accidentally pulled out of its port, the data being written to it is much less likely to be lost.

1. Open the Control Panel (icons view) in Windows 7 or Windows 8, and click on the Device Manager icon.

2. In Device Manger, double click on Disk drives to expand it, then double click on the listed storage device that you want to disable write caching for. (See screenshot below)
Drive1.jpg
3. Click on the Polices tab. Under the upper Removal policy section, select (dot) Quick removal, or check the Turn off Windows write-cache buffer flushing on the device box, and click on OK. (See screenshot below)
Drive4A.jpgDrive2.jpg
Drive3.jpg
4. Click on Yes to restart the computer to apply. (See screenshot below)
WARNING: This will restart the computer immediately. You should save and close anything else that you are working on first.
Drive4.jpg



OPTION TWO

Enable Write Caching for Better Performance



   Note
This option is usually the best choice for storage devices that must provide the highest possible performance and that you intend to not remove from the system frequently, such as internal hard disk drives. If you choose this option and the device is disconnected from the system before all of the data is written to it (such as if you remove a USB flash drive), you could lose data. When using this option for a storage device (ex: USB flash drive), you must use Safely Remove Hardware to disconnect the device safely to prevent possible data loss.

When you select the Better Performance option, Windows 7 uses a method known as write-back caching. In this method, the storage device itself is allowed to determine whether using the high-speed cache will save time completing the write commands. If it will, the device signals to the computer that the data has been stored successfully even though the data may not actually be present in the storage device yet (such as the hard disk or flash memory). This method markedly increases the throughput of storage operations, which are often a major bottleneck for system performance overall. However, if the power supplied to the device (ex: external hard drive) fails for any reason, any data still in the cache (that the computer system believes is safely stored) could be lost.

By default, Windows uses cache flushing. This means that the system will periodically instruct the storage device to write all data waiting in the cache to the storage device. When you select Turn off Windows write-cache buffer flushing on the device, you turn can turn off these periodic commands to transfer the data. Not all devices support all of these features.

1. Open the Control Panel (icons view) in Windows 7 or Windows 8, and click on the Device Manager icon.

2. In Device Manger, double click on Disk drives to expand it, then double click on the listed storage device that you want to enable write caching for. (See screenshot below)
Drive1.jpg
3. Click on the Polices tab. Under the upper Removal policy section, select (dot) Better performance. (See screenshots below)
NOTE: By default, Enable write caching on the device is also checked. If not, then check it as well.
Drive3A.jpgDrive1A.jpg
4. To Turn Off Windows Write-cache Buffer Flushing on the Device
WARNING: To Prevent data loss. Do not check this option unless the storage device has a separate power supply that allows the device to flush it's buffer in case of a power failure.
A) Select (check) the Turn off Windows write-cache buffer flushing on the device box. (See screenshots above)
5. Click on OK. (See screenshot below step 3)

6. Click on Yes to restart the computer to apply. (See screenshot below)
WARNING: This will restart the computer immediately. You should save and close anything else that you are working on first.
Drive4.jpg
That's it,
Shawn





 
Last edited:
Thanks mate it was just curiosity the machine is working perfectly now anyway as I think I have nailed that posting problem too. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build (new) Desk1 / Asus ROG Win 7 / Desk2 1st build
OS
Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
CPU
Desk1 i5 3750K / Laptop i7 GTX 860M / Desk2 i5 2500
Motherboard
Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ?
Memory
Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3
Graphics Card(s)
Desk 1& 2NVidia GTX 650 & Laptops on board Intel
Sound Card
Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop
Monitor(s) Displays
Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5"
Screen Resolution
1920x1080 D1 & D2 & Laptop 1
Hard Drives
Desk1 Samsung 120GB 830 SSD
Asus ROG 256GB 850 Pro SSD
Desk2 Samsung 840 256 SSD
Toshiba 120GB EVO
PSU
Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650
Case
Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster
Cooling
Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ?
Keyboard
Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4
Mouse
Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless
Internet Speed
ADSL2+
Other Info
One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2016 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK
I'm happy to hear that you seem to have it all worked out now. :party:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
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
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
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,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
Yes mate it took some at times drastic things to be done but nice to be back posting again but seeing that I am now finally retired just another job on the VERY long list of want and need to do's that I never had time for before. Trouble is it took a broken leg to make me see the writing on the wall;)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build (new) Desk1 / Asus ROG Win 7 / Desk2 1st build
OS
Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
CPU
Desk1 i5 3750K / Laptop i7 GTX 860M / Desk2 i5 2500
Motherboard
Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ?
Memory
Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3
Graphics Card(s)
Desk 1& 2NVidia GTX 650 & Laptops on board Intel
Sound Card
Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop
Monitor(s) Displays
Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5"
Screen Resolution
1920x1080 D1 & D2 & Laptop 1
Hard Drives
Desk1 Samsung 120GB 830 SSD
Asus ROG 256GB 850 Pro SSD
Desk2 Samsung 840 256 SSD
Toshiba 120GB EVO
PSU
Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650
Case
Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster
Cooling
Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ?
Keyboard
Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4
Mouse
Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless
Internet Speed
ADSL2+
Other Info
One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2016 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK
What if you have several portable hard drives that you only connect from time to time, and your computer has three USB ports and it's completely random which HD you plug into which port? Surely the computer doesn't remember my 5 portable drives and 3 USB sticks X 3 ports = 24 combinations, and each one's write caching setting -? Does Win 7 keep caching disabled, or enabled, by default? I want it disabled for all my external sources.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Lenovo Thinkpad T520
OS
7 Pro 64
CPU
Intel Core i5-2540M 2.6 GHz
Memory
6 GB RAM
Hard Drives
1 Tb
Hello catalogue, :-)

Usually, write caching is disabled by default for removable media. You can double check to make sure though.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
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
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
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,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
If your system is at high risk for power losses or sudden shut downs, then it would probably be best to disable write caching for the HDD to avoid the potential of data loss.

If not, then you could gain some performance by leaving it enabled.

My apologies if this was already asked.

Could a "system freeze" or a "hard hang" forcing the user to do a "hard restart" be considered a sudden shut down?

If so, I will disable while troubleshooting the root of the problem.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Acer Aspire E1-532
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Celeron(R) 2957U @ 1.40GHz
Motherboard
Acer EA50_HW
Memory
8.00 GB
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
High Definition Audio Device
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
Hard Drives
TOSHIBA MQ01ABD100 ATA Device
My apologies if this was already asked.

Could a "system freeze" or a "hard hang" forcing the user to do a "hard restart" be considered a sudden shut down?

If so, I will disable while troubleshooting the root of the problem.

Hello Wyatt, :-)

Yes. Those would be considered a sudden shut down as well.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
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
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
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,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Acer Aspire E1-532
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Celeron(R) 2957U @ 1.40GHz
Motherboard
Acer EA50_HW
Memory
8.00 GB
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
High Definition Audio Device
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
Hard Drives
TOSHIBA MQ01ABD100 ATA Device
Back
Top