0X00000254

Fix ERROR_LOST_WRITEBEHIND_DATA (0x254) Delayed Write Failed

Network & Connectivity Intermediate 👁 0 views 📅 May 26, 2026

That scary 'Delayed Write Failed' error means Windows couldn't save data to a drive. Usually it's a dying USB cable or failing hard drive. Let's fix it fast.

30-second fix: Check the physical connection

I know that error message makes your stomach drop — seeing "Windows was unable to save all the data" is terrifying. But before you panic, try the dumbest thing first. I've seen this error more times than I can count, and half the time it's a loose cable.

  1. Unplug and replug the USB cable, eSATA cable, or whatever connects your external drive. Use a different port if you can. USB 3.0 ports (usually blue) are picky about power — try a USB 2.0 port if you're desperate.
  2. Swap the cable if you've got a spare. USB cables fail silently all the time. I keep a drawer of them for exactly this reason.
  3. Check the power adapter for external drives with their own power. If the drive isn't getting enough juice, writes fail. Look for a blinking or dim LED.

If the error disappears after this, you're golden. If not, the drive or its controller is probably the problem. Move to the next fix.

5-minute fix: Run chkdsk and clear the write cache

This fix handles the two most common triggers: a dirty file system and a corrupted write cache. The error 0x254 specifically means Windows couldn't flush cached data to the drive — so clearing that cache and checking the disk often resolves it.

Step 1: Check the disk

  1. Open Command Prompt as administrator (right-click Start, select "Command Prompt (Admin)" or "Terminal (Admin)" on Windows 11).
  2. Type chkdsk X: /f where X is the letter of the problematic drive. For example, chkdsk D: /f.
  3. Let it run. This can take a while on a large drive. Chkdsk will fix file system errors and mark bad sectors.
  4. If the drive is your system drive (C:), it'll ask to schedule a check on next reboot. Say yes, then restart.

Step 2: Disable write caching on the drive

This is the nuclear option that stops the error by removing the delayed write feature. It slows performance slightly but stops the error cold.

  1. Open Device Manager (right-click Start > Device Manager).
  2. Expand "Disk drives."
  3. Right-click the affected drive and choose Properties.
  4. Go to the Policies tab.
  5. Select "Quick removal" (this disables write caching). On Windows 10 and 11, this is the default for external drives, but if it got switched to "Better performance," that's your problem.
  6. Click OK and restart the drive (unplug and replug).

Test it. If the error's gone, you're fine — but you'll want to safely eject the drive every time before unplugging it. If it still appears, move to the advanced fix.

15+ minute fix: Replace failing hardware or update firmware

At this point, the drive itself is likely toast, or the motherboard's storage controller is buggy. I've been there — it sucks, but let's be methodical.

Check the drive's health with SMART data

Windows doesn't make this easy, but you can check with a free tool like CrystalDiskInfo. Download it, run it, and look at the health status. If you see "Caution" or "Bad," the drive is failing. Back up your data immediately if you haven't already. This error is often a prelude to total drive failure.

Update your motherboard or USB controller drivers

Sometimes the error is on the host side, not the drive. I've seen this on older Intel chipsets (like the 6-series and 7-series) with USB 3.0 controllers that had buggy drivers.

  1. Open Device Manager.
  2. Expand "Universal Serial Bus controllers."
  3. Right-click each "USB Root Hub" and "Generic USB Hub" and select Update driver.
  4. Choose "Browse my computer for drivers" then "Let me pick from a list."
  5. Select the latest driver version (usually the Microsoft-provided one unless you have a specific chipset driver from Intel/AMD).
  6. Do the same under "Storage controllers" — update the storage controller driver for your SATA or NVMe ports.

Also check your motherboard manufacturer's website for chipset driver updates. For example, if you're on an AMD X570 or B550 board, grab the latest chipset driver from AMD's site, not Windows Update.

Test with a different computer

Plug the external drive into another PC. If the error follows the drive, the drive is dying. If it works fine, the original PC's USB controller or drivers are the culprit. In that case, you might need to disable the USB selective suspend setting in Power Options — it's been known to cause delayed write errors on Windows 10 build 1909 and later.

Pro tip: If 0x254 keeps appearing for your system drive (C:), you're likely looking at a failing SSD or HDD. Back up everything now. Run wmic diskdrive get status in Command Prompt — if it returns anything other than "OK," replace the drive.

One last thing: check the Windows System Event log (Event Viewer > Windows Logs > System) and look for Event ID 50. That event records the exact file and drive that failed. It'll tell you if it's a specific file, a whole drive, or a USB controller issue. That info can save you hours.

I know this fix list feels long, but 90% of the time the answer is the 30-second cable check or the 5-minute write cache toggle. Only a small percentage actually need a new drive. Good luck.

Was this solution helpful?