STG_E_WRITEFAULT (0X8003001D) – Write Error on Disk Fix
This error means Windows couldn't write to your hard drive. Usually it's a full drive, bad sector, or a corrupted file. We'll walk through the fixes step by step.
The Drive is Full — Most Common Cause
You try to save a file, and boom — the error pops up. Nine times out of ten, your drive is stuffed full. Windows needs some free space to write to the swap file and temp folders. If the drive shows less than 1GB free, this error shows up like clockwork.
How to check and fix it
- Open File Explorer (press Windows + E).
- Right-click your drive (usually C:) and click Properties.
- Look at the pie chart. If it's red or nearly full (less than 1GB free), you need to free up space.
- Click Disk Cleanup — it's in the General tab.
- Let it scan. After a minute, you'll see a list of checkboxes.
- Check Temporary files, Recycle Bin, and Delivery Optimization Files (these are safe to delete).
- Click Clean up system files — that button is bottom-left. This gets more options.
- Check Windows Update Cleanup and Previous Windows installations if you see them.
- Click OK, then Delete Files. Wait — it can take a few minutes.
- After it's done, close the window and try saving your file again. The error should be gone.
Pro tip: If you still see the error after cleaning, restart your PC. Sometimes Windows holds onto temp files until a reboot.
Bad Sectors on the Drive — Second Most Common
Your drive has physical or logical damage. The write operation hits a spot that's unreadable. This happens a lot with older hard drives (5+ years old) or after a sudden power loss. With SSDs, it's rarer but can still happen.
Run Check Disk (chkdsk) to fix it
This tool scans the drive and tries to recover data from bad spots. It also marks bad sectors so Windows won't use them again.
- Press Windows + X and click Windows Terminal (Admin) or Command Prompt (Admin) — you need admin rights.
- If you see a User Account Control popup, click Yes.
- Type this command exactly (including the space before C:):
chkdsk C: /f /r - Press Enter. You'll probably see a message: "Chkdsk cannot run because the volume is in use by another process." That's normal.
- Type Y and press Enter to schedule it for the next restart.
- Close the terminal window. Reboot your PC.
- During boot, you'll see a blue screen with a counter saying "Scanning and repairing drive C:". Let it finish — it can take 1-2 hours on a large drive.
- Your PC will restart automatically. Once you're in Windows, try saving your file again.
Real-world example: A user reported this error when trying to save a Word document after a power outage. Chkdsk found 4 bad sectors, fixed them, and the error never came back.
Corrupted System Files — Third Common Cause
Sometimes the drive is fine and has space, but the error still shows. The culprit is a corrupted system file that handles disk writes. This happens after a failed update or a virus infection.
Run the System File Checker (SFC)
SFC scans protected system files and replaces bad ones with a cached copy. It's built into Windows and takes about 15 minutes.
- Open Command Prompt as Admin (same steps as step 1-2 above).
- Type this and press Enter:
sfc /scannow - You'll see a progress bar. Let it run. It might look stuck at 20% or 50% — that's normal, give it time.
- When it's done, you'll see one of three messages:
- "Windows Resource Protection found corrupt files and successfully repaired them." — Good, restart and test.
- "Windows Resource Protection did not find any integrity violations." — SFC didn't find the issue, move to the next fix.
- "Windows Resource Protection found corrupt files but was unable to fix some of them." — Run DISM next.
If SFC couldn't fix everything, run DISM
DISM fixes the store that SFC uses to replace files. You need an internet connection for this.
- In the same admin command prompt, type this and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth - It will connect to Windows Update and download healthy files. This can take 10-20 minutes.
- Once it says "The restore operation completed successfully," close the window and restart your PC.
- Try the write operation again. The error should be fixed.
Opinion: Skip DISM if SFC already fixed everything. It's extra time you don't need to waste. Only run it if SFC says it failed.
Quick-Reference Summary Table
| Cause | Symptom | Fix | Time |
|---|---|---|---|
| Drive full | Drive shows red in Properties, less than 1GB free | Disk Cleanup (temporary files, system files) | 10 minutes |
| Bad sectors | Error after power loss or old HDD (5+ years) | chkdsk C: /f /r | 1-2 hours |
| Corrupted system files | Error persists with free space and healthy drive | sfc /scannow, then DISM if needed | 15-30 minutes |
If none of these fixes work, your drive might be failing. Back up your data now. You can use a tool like CrystalDiskInfo to check the drive's health — anything showing "Caution" or "Bad" means replace the drive.
Was this solution helpful?