Disk Detector
Windows 10 & 11 Buy license · $29.95
Errors and repair

The File or Directory Is Corrupted and Unreadable: How to Fix It

Fix the file or directory is corrupted and unreadable error in Windows. Learn the causes, how to repair with chkdsk and how to keep your files safe.

Updated 5 minute read The Disk Detector team

"The file or directory is corrupted and unreadable" means Windows found damage in the file system on a drive, so it cannot read the folder or file you asked for. It most often appears on external drives and USB sticks after they were unplugged during a copy or lost power, but bad sectors on a failing drive can cause it too. The safe fix is: check the drive's health, copy off everything you can still open, then run chkdsk X: /f to repair the file system. If the error keeps coming back, the drive itself is the problem.

Below is each step in order, with what to watch for so a repair does not cost you files you could have saved.

What causes it

  • Unsafe removal: pulling out a USB drive or SD card while Windows is still writing to it, so the file system's records are left half-updated.
  • Power loss or a crash during a write, on any drive.
  • Bad sectors: the drive cannot read the part of the disk where the folder's records are stored.
  • Failing USB enclosure, cable or card reader: data gets garbled on the way to the PC.
  • Worn flash memory in old or heavily used USB sticks and SD cards.
  • Fake-capacity drives that lose data once you write past their real size.

The first two damage only the file system and are usually repairable. The others mean the hardware is involved, and repeated repairs will not stop the error returning.

Step 1: Stop writing to the drive

Do not copy new files onto the drive, and do not accept a prompt to format it. Every write risks landing on top of data you still want. If the error appeared on your C: drive, carry on using the PC lightly, but avoid large installs until you have checked the drive.

Step 2: Check the connection

For external drives and cards, a bad connection can make healthy data look corrupted. Eject the drive, plug it into a different USB port (a rear port on a desktop, without a hub), try another cable or card reader, and check whether the error still appears. If it goes away, replace the cable or reader. If the drive keeps dropping off, see our guide to an external hard drive that keeps disconnecting.

Step 3: Check the drive's health

Before running any repair, find out whether the drive is failing. chkdsk is a read-and-write tool: on a healthy drive it fixes the damage, but on a drive with spreading bad sectors it adds hours of strain and may change data you have not yet saved.

Disk Detector reads the drive's SMART health and rates it Good, Caution or Bad with the reasons in plain English, and it can check the file system for errors at the same time. Its health checks and surface scans are read-only, so nothing on the drive is changed while you find out what is wrong.

Health resultWhat it suggestsNext step
Good, no sector problemsFile system damage onlyCopy what you can, then run chkdsk
Caution, a few reallocated sectorsSome surface wearCopy everything important first, then repair
Bad, pending or rising sector countsThe drive is failingCopy or recover files; skip chkdsk until data is safe
No SMART data (some USB sticks and enclosures)Health cannot be readTreat the drive as suspect and copy files first

Step 4: Copy off everything you can

The error usually affects one folder or a handful of files, not the whole drive. Open the drive in File Explorer and copy every folder that still opens to another drive. Copy the most important folders first, and in small batches, so one unreadable file does not stop the whole copy. Make a note of which folders fail.

If the folder you need is the one that will not open, a file recovery program can often read the files inside it directly, without relying on the damaged folder record. Recover to a different drive. If the whole drive is unreadable or shows as RAW, follow our guide to fixing a RAW drive without formatting instead.

Step 5: Repair the file system with chkdsk

  1. Note the drive letter, for example E:.
  2. Right-click Start and choose Terminal (Admin).
  3. Type chkdsk E: /f and press Enter.
  4. If asked to dismount the volume, type Y. If the drive is C:, type Y to schedule the check for the next restart, then restart.
  5. Read the summary when it finishes, then try opening the folder again.

On a hard drive whose health is good, chkdsk E: /r also scans for bad sectors and recovers what it can from them. It takes hours on large drives. On USB sticks and SD cards, stick with /f. Our guide on how to run chkdsk in Windows 11 explains the switches and where to find results after a restart scan.

chkdsk fixes the file system, not the files. To make the file system consistent, it may delete damaged records, and some files can end up as numbered .CHK fragments in a FOUND.000 folder. This is why copying files comes before repairing.

If the folder is still unreadable

  • The folder is gone after chkdsk: look in FOUND.000 at the root of the drive (you may need to show hidden and protected files). Fragments there can sometimes be renamed with the correct extension, or opened by a recovery program.
  • chkdsk says it cannot run on a RAW volume: the damage is too severe for chkdsk. Recover files, then format.
  • chkdsk finds errors every time you run it: the drive is creating new damage. Copy your files and replace it.
  • Only one file is affected and the drive is healthy: delete the damaged file once you have a good copy from a backup.

Step 6: Reformat or replace

If chkdsk cannot fix the drive but its health is good, reformatting gives you a clean file system. Right-click the drive in File Explorer, choose Format, pick NTFS or exFAT and untick Quick Format so every sector is checked. Only do this once your files are safe, because formatting removes access to them.

If the drive's health is poor, or the error returns after a format, replace it. A drive that corrupts data is no longer safe for anything you care about.

Preventing it

  • Eject drives in Windows before unplugging them, and wait for the light to stop flashing.
  • Avoid copying large amounts of data on a laptop with a nearly flat battery.
  • Test new USB sticks and SD cards for fake capacity before trusting them with files.
  • Keep regular backups of anything on portable drives.
  • Let Disk Detector check drive health in the background so you hear about problems early, with a desktop alert, before files start to go missing.

Frequently asked questions

Does this error mean my drive is dying?

Not always. It is often file system damage, but check SMART health because bad sectors can cause it too.

Will chkdsk fix corrupted and unreadable files?

It repairs the file system structure. Individual damaged files may still be lost, so copy what you can first.

Can I avoid this error in future?

Use Safely Remove Hardware or eject before unplugging, and avoid power loss during copies.

Get three guides like this every month, plus software update notices.Subscribe →