The File or Directory Is Corrupted and Unreadable: Fixes
Yes, the Windows message “The file or directory is corrupted and unreadable” can often be fixed, especially when it comes from a file-system error or a loose connection. First protect important data: avoid writing to the affected drive, check its connection, and try non-destructive checks before attempting repairs that could alter the disk.
What the error means
Windows displays this message when it cannot reliably read a file or directory from a storage device. The cause may be a damaged file-system record, an unsafe removal, a failing drive, a bad cable or port, or an issue with a removable device. The message alone does not identify which cause applies, and it does not prove that every file is lost.
File systems keep information about where files are stored and how folders are organized. If that information becomes inconsistent, Windows may be unable to open a path even when some of its contents remain on the drive. Physical damage is different: software repairs cannot restore a drive that is failing mechanically or electronically, and repeated access attempts may make recovery harder.
Start with safe checks
- Stop using the affected drive for unnecessary tasks. Do not download, install, copy, or save files to it. New writes can overwrite data that might otherwise be recoverable.
- Check the connection. For an external drive, safely disconnect it if possible, reconnect it, and try another USB port or a known-good cable. Avoid hubs while testing. If it is a memory card, reseat it and check it in another reader.
- Restart Windows if the drive is internal and the computer is otherwise behaving normally. A restart can clear a temporary access problem, but it will not repair physical damage.
- Check whether other files and folders open. If the problem affects one path, the damage may be limited. If the whole device disappears, disconnects, makes unusual noises, or becomes extremely slow, treat it as a possible hardware failure.
If the files are irreplaceable and the drive shows signs of failure, stop experimenting and consult a reputable data-recovery professional. Do not open a hard drive enclosure or repeatedly power-cycle a device that is clicking or disconnecting.
Try Windows error checking
Windows includes drive checking tools that can look for file-system errors. Before using one, consider whether you have a backup. A repair can change file-system structures; it is not a substitute for recovering a copy of valuable data.
- Open File Explorer, select This PC, right-click the affected drive, and choose Properties.
- Open the Tools tab. Under Error checking, select Check, then follow the prompts if Windows offers a scan or repair.
- If Windows cannot check the drive, or the error remains, use an administrator terminal only if you understand the implications. Search for Command Prompt, choose Run as administrator, and enter
chkdsk X: /f, replacingXwith the correct drive letter.
The /f option asks Windows to fix file-system errors it finds. Confirm the drive letter carefully: checking the wrong volume is unhelpful, and repairing a drive with data you cannot replace carries risk. Do not assume a scan can repair physical faults. Avoid adding recovery options such as /r as a routine first step on a potentially failing drive; it can take a long time and requires extensive reading.
When to recover files before repairing
If Windows can still read some of the drive, copy the most important accessible files to a different, healthy device before running repairs. Do not copy them back onto the affected drive. If File Explorer repeatedly freezes or copying causes disconnections, stop rather than retrying endlessly.
When files matter and are not backed up, recovery should come before formatting, partition changes, or aggressive repair attempts. A recovery program may help with some logical damage, but installing it on the affected drive or saving recovered files there can overwrite data. Use a separate computer or healthy drive where practical, and follow the recovery tool’s documentation. If the device may have physical damage, professional assessment is safer than repeated software scans.
Formatting, backups, and drive replacement
Formatting may make a volume usable again, but it can erase access to existing files. It is not a data-recovery fix. Do not format a drive just because Windows suggests it if you need its contents; cancel the prompt and decide whether to recover data first.
After files are safe, a drive that continues to report errors may need to be reformatted or replaced. Formatting is appropriate only when you accept losing the volume’s existing contents or have verified a separate backup. If errors return after a clean setup, the drive, cable, enclosure, or computer connection may be unreliable. Replace suspect hardware rather than trusting it with the only copy of important files.
For prevention, use Windows’ safe-eject option for removable storage, keep a separate backup, and avoid unplugging a device while files are being written. A backup should be on another device or location; a second folder on the same failing drive is not a dependable backup.
Common causes and what they suggest
- Unsafe removal or interrupted writes: File-system information may have been left inconsistent. A Windows scan may help, but back up accessible data first.
- Connection trouble: A faulty cable, port, reader, or enclosure can interrupt access. Testing a different connection helps distinguish this from a drive fault.
- Isolated file or folder damage: If the rest of the drive works, the affected data or its directory entry may be damaged. Recovery may be possible, but is not guaranteed.
- Repeated errors, disconnections, or unusual sounds: These can indicate hardware trouble. Stop using the drive if the data is important.
A common misconception is that the message always means the disk is physically broken. It can result from logical corruption or a connection issue. The reverse is also important: a successful repair does not prove a drive is healthy, so preserve backups and watch for recurring symptoms.
Frequently Asked Questions
Will CHKDSK delete my files?
CHKDSK is intended to check and, with repair options such as /f, correct file-system problems. Repairs can change file-system information, and no repair tool guarantees that every file will remain intact. Back up accessible data first, or seek recovery help if the data is irreplaceable.
Should I click Format disk?
Not if you need the files and do not have a verified backup. Formatting can make existing data inaccessible. Cancel the prompt and consider recovery before formatting.
Can I fix this without losing data?
Sometimes. A connection fix or a successful file-system repair may restore access, but there is no guaranteed no-data-loss fix. Stop using the device and prioritize recovery when the files are valuable.
Why does the error appear on a USB drive or SD card?
Possible causes include unsafe removal, interrupted writes, a faulty reader or cable, file-system damage, or failing storage. Try a different port or reader, but avoid repeated formatting or repair attempts if you need the contents.
When should I replace the drive?
Consider replacement if errors recur, the device disconnects, becomes unusually slow, or shows other signs of failure. If you need its data, recover or back it up before retiring it; do not rely on a drive that continues to report errors.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.