Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix File System Errors on Windows: Step-by-Step

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can fix most file system errors on Windows using built-in tools like CHKDSK (Check Disk) and SFC (System File Checker). These tools scan for corruption, bad sectors, and missing system files, then repair them automatically. You'll need to run them from an elevated Command Prompt or PowerShell. This guide walks you through the process, including what to do if the standard steps don't work.

What You'll Need

  • A Windows PC (Windows 10 or 11; steps are similar for older versions).
  • Administrator account access (you'll need to approve User Account Control prompts).
  • Patience – some scans can take 15 minutes to over an hour depending on drive size.

Step-by-Step

  1. Close all open programs and save your work. CHKDSK may need to restart your PC to scan the system drive, so make sure you don't lose any unsaved data.
  2. Open Command Prompt or PowerShell as Administrator. Click the Start button, type cmd (or powershell), right-click the result, and select Run as administrator. If prompted by User Account Control, click Yes.
  3. Run CHKDSK on the drive with errors. In the command prompt, type chkdsk C: /f /r and press Enter. Replace C: with the letter of the drive you want to check (e.g., D: for a secondary drive). The /f flag fixes errors, and /r locates bad sectors and recovers readable data. If the drive is in use (like your system drive), you'll see a message: “Chkdsk cannot run because the volume is in use by another process.” Type Y and press Enter to schedule the scan for the next restart.
  4. Restart your PC if prompted. If you scheduled a scan, restart your computer. Windows will run CHKDSK before the operating system fully loads. Let it finish; do not interrupt it. The scan may take a while, and your PC may restart automatically when done.
  5. Run SFC to check system files. After CHKDSK completes, open Command Prompt as Administrator again (repeat step 2). Type sfc /scannow and press Enter. This scans all protected system files and replaces corrupted ones. Wait for the scan to finish (it can take 10–20 minutes).
  6. If SFC finds issues it can't fix, run DISM. In the same elevated Command Prompt, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This repairs the Windows system image that SFC relies on. It may take 20–30 minutes. After it completes, run sfc /scannow again to re-check.
  7. Check the drive's health with SMART data. If errors persist, your drive may be failing. Open PowerShell as Administrator and type Get-PhysicalDisk | Select-Object FriendlyName, HealthStatus, OperationalStatus. If the HealthStatus is “Warning” or “Unhealthy,” back up your data immediately and consider replacing the drive.

Common Mistakes

  • Skipping the restart for CHKDSK. If you don't restart when prompted, the scan never runs. Always type Y and restart.
  • Using the wrong drive letter. Double-check which drive has errors. You can see drive letters in File Explorer under “This PC.”
  • Interrupting CHKDSK. Letting the scan run to completion is crucial. Interrupting it can cause additional corruption.
  • Running SFC without administrator rights. SFC will fail with “You must be an administrator” if you don't open Command Prompt as Administrator.
  • Ignoring DISM when SFC fails. SFC often can't fix files if the system image is corrupted. Running DISM first is essential in many cases.

Tips

  • Back up your data before running repairs. While CHKDSK and SFC are safe, any drive repair carries a small risk. Use File History or a cloud backup service.
  • Run CHKDSK on external drives too. If you have an external hard drive or USB stick with errors, plug it in and run chkdsk E: /f (replace E: with the correct letter).
  • Use the Event Viewer for details. After a scan, open Event Viewer (type eventvwr in Start) and look under Windows Logs > Application for events with source “Wininit” or “Chkdsk” to see the full report.
  • Keep Windows updated. Recent updates often include fixes for file system issues. Go to Settings > Windows Update and check for updates.
  • If the drive is an SSD, consider using the manufacturer's tool. Some SSDs have proprietary health checks. Check the maker's website for an official utility.

Troubleshooting

If CHKDSK says “The type of the file system is NTFS” and then stops, it may be that the drive is locked or in use. Close all programs, especially antivirus or indexing services, and try again. If it still fails, boot into Safe Mode (Settings > System > Recovery > Advanced startup > Restart now, then Troubleshoot > Advanced options > Startup Settings > Restart, then press 4) and run CHKDSK from there.

If SFC reports “Windows Resource Protection could not perform the requested operation,” try running it in Safe Mode (as above) or after a clean boot. Alternatively, run DISM first, then SFC again.

If DISM fails with error 0x800f081f or similar, you may need to specify a Windows installation source. This is advanced; consider using the Windows Media Creation Tool to create a bootable USB, then run DISM with the /Source parameter. Or, if you have a Windows installation ISO, mount it and use the path to the install.wim file. If this seems too technical, try using the “Reset this PC” feature (Settings > System > Recovery > Reset PC) but note that this reinstalls Windows and may remove apps.

If errors persist after all scans, the drive may be physically failing. Back up your data immediately. You can check the SMART status as described in step 7. If the drive is under warranty, contact the manufacturer for a replacement.

Frequently Asked Questions

Will CHKDSK delete my files?

No, CHKDSK is designed to repair the file system and recover readable data. It does not delete personal files. However, if a file is severely corrupted, it may be moved to a folder like found.000 on the drive.

How long does CHKDSK take?

It depends on the drive size and speed. A typical 1TB hard drive can take 30 minutes to an hour. SSDs are usually faster. If it takes more than a few hours, the drive may be failing.

Can I use my computer while CHKDSK is running?

No, if CHKDSK runs before Windows starts (scheduled), you cannot use the computer until it finishes. If you run it on a non-system drive while Windows is running, you can continue using the PC, but it's best to close all programs to avoid conflicts.

What's the difference between /f and /r?

/f fixes file system errors, while /r also scans for bad sectors and attempts to recover readable data. Using /r implies /f, so you can use chkdsk /r alone.

Do I need to run SFC if CHKDSK found no errors?

Yes, because CHKDSK only checks the file system, not system file integrity. SFC checks Windows system files specifically. Running both ensures a thorough check.

Can I fix file system errors without admin rights?

No, both CHKDSK and SFC require administrator privileges. If you don't have admin access, contact the person who manages the computer.