ThisCalculator

Everyday

The File or Directory Is Corrupted and Unreadable?

Updated · Standard formula, shown below

The File or Directory Is Corrupted and Unreadable?

“The file or directory is corrupted and unreadable” is a Windows error that means the system cannot reliably access the requested file or folder. It may reflect a damaged file system, a failing or disconnected drive, a faulty cable, or a problem limited to one file; protect important data first, then diagnose the cause before trying repairs.

What the error means

Windows stores files on a volume using a file system, such as NTFS, exFAT, or FAT32. The file system records where data is stored and how files and folders relate to one another. If Windows cannot read the relevant information, it may show this message when you open, copy, rename, or delete an item.

The message describes an access problem, not a diagnosis. It does not prove that every file on the drive is lost, nor does it necessarily mean the storage device has physically failed. A damaged directory record or an interrupted write can make one path unreadable while other data remains accessible. Conversely, repeated errors across a drive can be an early sign of hardware trouble.

The issue can occur on an internal disk, external hard drive, USB flash drive, memory card, or a volume shared over a network. The wording and available repair options depend on the device, file system, and Windows version.

Common causes and clues

  • Unsafe removal or power loss: Unplugging removable storage during a write, or losing power while files are being updated, can leave file-system information inconsistent.
  • Connection problems: A loose USB connection, damaged cable, unreliable hub, or faulty port may interrupt access and look like a disk problem.
  • File-system damage: Windows may be unable to interpret information that tracks folders, file names, and storage locations.
  • Storage wear or damage: A drive can develop unreadable areas or fail over time. Clicking or grinding from a mechanical hard drive, frequent disconnects, and errors affecting many files deserve particular caution.
  • One damaged file or folder: If other items on the same drive open normally, the problem may be limited to that item rather than the entire volume.

Note what changed just before the error appeared: a sudden shutdown, a device drop, a new cable, a failed copy, or a storage device that has become unusually slow. Those details can help distinguish an isolated glitch from a worsening drive problem.

What to do first

If the data matters, avoid actions that write to the affected drive until you have considered recovery. Repair utilities can change file-system records; they are useful in many cases, but they are not a substitute for a backup and can complicate recovery if the device is physically failing.

  1. Stop repeated attempts. Do not keep opening, copying, or repairing the same failing device if it is making unusual noises, disconnecting, or becoming less responsive.
  2. Check simple connections. For an external device, disconnect it safely if possible, then try a direct USB port and a known-good cable. Avoid hubs while troubleshooting. If the device is hot or physically damaged, stop using it.
  3. Try another computer or port. This can help identify a computer-specific connection or driver issue. Do not format the device if Windows prompts you to do so; formatting can make existing data harder to recover.
  4. Copy accessible files elsewhere. If the drive is stable and other files open, copy the most important data to a different physical device. Do not save recovered files back onto the affected drive.
  5. Check for a backup. Look in File History, a previous backup, or a synced copy if you use those services. A known-good backup is usually safer than experimenting with repairs on the only copy.

Repair options in Windows

Once important files are backed up—or if the data is not needed—you can check the volume for file-system errors. In File Explorer, open This PC, right-click the affected drive, select Properties, open the Tools tab, and choose Check under Error checking if that option is available. Follow Windows’ prompts. Names and prompts can vary by Windows version and the type of drive.

Another option is the Windows command-line utility CHKDSK. Open Terminal or Command Prompt with administrator permission, then enter chkdsk X: /f, replacing X: with the affected drive letter. The /f option asks Windows to fix file-system errors. Check the drive letter carefully before running a command; using the wrong one can inspect or alter a different volume. Windows may ask to schedule a check for a volume that is in use.

CHKDSK can repair logical file-system inconsistencies, but it cannot fix a physically damaged drive. Options that scan for bad sectors may take a long time and put additional stress on a failing device. If the data is irreplaceable, the drive is unstable, or errors return after repair, stop and consider professional data-recovery help before running more repair commands.

When recovery or replacement is safer

Use recovery software only when the device is detected consistently and you understand that results vary. Install or run recovery tools from a separate healthy drive, and save recovered files to another device. No tool can guarantee recovery, especially if data has been overwritten or the storage hardware is failing.

Consider professional help when the only copy of important files is at risk, the drive makes abnormal mechanical sounds, it repeatedly disappears, or a repair attempt worsens access. If the device is under warranty, check the manufacturer’s support guidance before opening it; opening a device can cause further damage and may affect service terms.

After recovering what you can, replace a drive that continues to fail or report errors rather than trusting it with the only copy of important files. Keep at least one separate backup and eject removable storage through Windows before unplugging it, especially while transfers are in progress.

What not to confuse it with

This message is not the same as a request to format a drive. Formatting creates a new file-system structure and can erase access to existing files; it is not a safe first response when you want to recover data. Do not accept a format prompt simply to make the warning disappear.

It also does not automatically mean a virus is responsible. Malware can affect files, but ordinary file-system damage, interrupted writes, and hardware or connection issues are more direct possibilities to investigate. Run a security scan if there are separate signs of infection, but do not treat scanning as a repair for a failing disk.

Frequently Asked Questions

Does this error mean my files are gone?
No. Windows is reporting that it cannot read the file or directory as requested. Some data may remain accessible or recoverable, but the error alone cannot establish how much is intact.

Should I format the drive when Windows asks?
Not if you need the existing files. Formatting can make recovery more difficult. Cancel the prompt, check backups, and assess the drive before deciding what to do.

Is CHKDSK safe to run?
It can fix logical file-system problems, but it changes the volume and cannot repair physical hardware damage. Back up accessible data first; if the drive is failing or the data is irreplaceable, seek recovery advice before running it.

Why does the error affect only one folder?
The affected folder’s directory information or a file inside it may be damaged even though other areas remain readable. A localized error does not rule out wider drive trouble, so back up accessible files and watch for recurring symptoms.

Can a bad USB cable cause this message?
A poor connection can interrupt communication and cause access errors or disconnections. Try a direct port and a known-good cable, but treat persistent errors across connections as a possible drive or file-system problem.

How can I avoid the error in the future?
Keep current backups, use Windows’ safe-eject option for removable storage, avoid unplugging devices during transfers, and investigate repeated disconnects or storage errors promptly.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.