How to Fix ‘The file or directory is corrupted and unreadable’ Error
Table of Contents
- Introduction
- Why ‘The file or directory is corrupted and unreadable’ Error Occurs
- Run CHKDSK to Repair File System Errors
- Run SFC (System File Checker) to Repair System Files
- Use DISM to Repair Windows Image
- Run CHKDSK with /f /r Parameters for Thorough Scan
- Use Diskpart to Clean and Repartition
- Recover Data from Corrupted Drive
- Check Disk Health with Manufacturer Tools
- Use Third-Party Data Recovery Software
- Check for Bad Sectors
- Prevent Future Corruption with Regular Maintenance
- Advanced Technical Fixes
- Conclusion
- Related Guides
- Frequently Asked Questions
Introduction
When you encounter a file or directory corrupted and unreadable error, it can be alarming. This error typically appears when Windows cannot read a file, folder, or entire drive due to corruption.
A file or directory corrupted and unreadable error often indicates file system corruption, bad sectors, or hardware issues. This guide provides 10 proven methods to repair the corruption and recover your data.
For official guidance, Microsoft’s documentation explains how to use CHKDSK to repair file system errors.
Additionally, the Windows system file reference provides context on system file corruption.
This article builds on those authoritative sources to deliver a complete step‑by‑step recovery plan.
For broader Windows troubleshooting, explore our Windows 11 troubleshooting hub which covers system‑level corruption issues.
📌 Featured Snippet: To resolve file or directory corrupted and unreadable error, open Command Prompt as Administrator and run chkdsk X: /f /r (replace X: with the affected drive letter). For system files, run sfc /scannow followed by DISM /Online /Cleanup-Image /RestoreHealth.
Why ‘The file or directory is corrupted and unreadable’ Error Occurs
Understanding why a file or directory corrupted and unreadable error happens helps you choose the right solution.
This error occurs when Windows attempts to access a file or directory but the file system structure is damaged. Common causes include file system corruption due to improper shutdowns, bad sectors on the drive, virus or malware infection, physical damage to the drive, power surges during data transfer, and software conflicts or driver issues.
The error can affect individual files, entire folders, or the whole drive. When a file system becomes corrupted, Windows loses the ability to correctly read the metadata that organizes files and folders on the drive.
Never assume the data is permanently lost. Most cases of file or directory corrupted and unreadable are fixable with the right approach.
Run CHKDSK to Repair File System Errors
The primary tool to resolve file or directory corrupted and unreadable is CHKDSK, which scans and repairs file system errors.
- Open Command Prompt as Administrator.
- Type
chkdsk X: /f(replace X: with the drive letter of the corrupted drive). - Press Enter and wait for the scan to complete.
- If the drive is in use, you’ll be prompted to schedule the scan on next restart. Type Y and restart.
CHKDSK fixes logical file system errors and marks bad sectors. This is the first and most important step to resolve file or directory corrupted and unreadable.
Run SFC (System File Checker) to Repair System Files
If the error affects system files, SFC can restore corrupted operating system files to resolve file or directory corrupted and unreadable.
- Open Command Prompt as Administrator.
- Type
sfc /scannowand press Enter. - Wait for the scan to complete (may take 10‑20 minutes).
- If corruption is found, SFC will attempt to repair it.
- Restart your computer and check if the error is resolved.
SFC scans system files and replaces corrupted files with cached copies. This method is effective for system‑wide corruption.
Use DISM to Repair Windows Image
If SFC fails, DISM can repair the Windows image that SFC relies on to resolve file or directory corrupted and unreadable.
- Open Command Prompt as Administrator.
- Type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. - Wait for the operation to complete (may take 15‑30 minutes).
- After DISM completes, run
sfc /scannowagain. - Restart your computer.
DISM repairs the system image using Windows Update or local sources. This is essential when SFC cannot repair system files due to a damaged image.
Run CHKDSK with /f /r Parameters for Thorough Scan
For a more thorough scan, use CHKDSK with both /f and /r parameters to resolve file or directory corrupted and unreadable.
- Open Command Prompt as Administrator.
- Type
chkdsk X: /f /r(replace X: with the affected drive letter). - Press Enter and wait for the scan to complete.
- The /r parameter locates bad sectors and recovers readable information.
- If the drive is in use, schedule on restart and reboot.
The /r parameter performs a more comprehensive scan than /f alone. It attempts to recover data from bad sectors, increasing the chance of recovering corrupted files.
Use Diskpart to Clean and Repartition
If CHKDSK cannot repair the drive, you may need to use Diskpart to completely reset the drive and resolve file or directory corrupted and unreadable.
- Open Command Prompt as Administrator.
- Type
diskpartand press Enter. - Type
list diskand identify your drive. - Type
select disk X(replace X with your drive number). - Type
cleanto remove all partitions and data. - Type
create partition primary. - Type
format fs=ntfs quick(or exFAT). - Type
assignto give the drive a letter.
Warning: This erases all data on the drive. Only use this method if you have backed up your files or the data is not important.
Recover Data from Corrupted Drive
Before attempting repairs, recover data from the corrupted drive to avoid permanent data loss when facing file or directory corrupted and unreadable.
- Connect the corrupted drive to a working computer.
- Open File Explorer and attempt to copy files.
- If copying fails, use data recovery software (see Method 8).
- Save recovered files to a different drive.
Data recovery should be attempted before running CHKDSK or formatting, as these operations can overwrite the corrupted data.
Check Disk Health with Manufacturer Tools
If the file or directory corrupted and unreadable error persists, the drive may have physical issues. Use manufacturer tools to check health.
- Download the drive manufacturer’s diagnostic tool (e.g., SeaTools for Seagate, WD Dashboard for Western Digital).
- Install and launch the tool.
- Select your drive and run a Quick Test or Extended Test.
- If the tool reports errors, the drive may be failing.
- Backup critical data immediately.
Hardware issues are a common underlying cause when file or directory corrupted and unreadable is accompanied by slow performance or clicking noises.
Use Third-Party Data Recovery Software
When built‑in tools fail, third‑party software can recover data from a drive showing file or directory corrupted and unreadable.
- Download reputable software like EaseUS Data Recovery Wizard, Recuva, or Stellar Data Recovery.
- Install and launch the software.
- Select the corrupted drive and choose Scan.
- Wait for the scan to complete (may take 10‑30 minutes).
- Preview found files and select the ones you want to recover.
- Save recovered files to a different drive.
Third‑party tools can recover files from corrupted drives that Windows cannot access directly.
Check for Bad Sectors
Bad sectors can cause file or directory corrupted and unreadable. Use CHKDSK to identify and mark bad sectors.
- Open Command Prompt as Administrator.
- Type
chkdsk X: /r(replace X: with the affected drive). - The scan will identify bad sectors and mark them as unusable.
- After the scan, check if the error is resolved.
If the drive has multiple bad sectors, it may be failing. Consider replacing the drive after recovering data.
Prevent Future Corruption with Regular Maintenance
After resolving file or directory corrupted and unreadable, adopt practices to prevent recurrence.
- Always use Safely Remove Hardware before unplugging drives.
- Keep your system and drivers updated.
- Use a surge protector to prevent power surges.
- Regularly check drive health with manufacturer tools.
- Backup important data regularly.
For comprehensive system protection, explore our clear cache guide to optimize your system performance.
Advanced Technical Fixes
For expert users, these advanced methods go beyond standard procedures.
Use TestDisk to Rebuild Partition Table
TestDisk can rebuild corrupted partition tables that cause file or directory corrupted and unreadable. Run TestDisk, select the drive, analyse, and write the partition table.
Use Disk Recovery with Linux
Boot from a Linux Live USB and use fsck to repair the drive. Linux often handles corruption better than Windows and can recover data that Windows cannot.
Clone the Drive Before Recovery
If the drive is failing, clone it using ddrescue or similar tools before attempting recovery. This preserves the data and allows multiple recovery attempts.
For additional Windows recovery techniques, see our guide on external hard drive not showing in Windows 11 for related detection issues.
Conclusion
When you face a file or directory corrupted and unreadable error, start with CHKDSK and SFC. If these tools cannot repair the corruption, use DISM, recover data with third‑party tools, or consider hardware replacement.
The success of each method depends on whether the issue is logical corruption or physical damage. Typically, CHKDSK and SFC offer the highest success rate for the file or directory corrupted and unreadable scenario.
If the drive is physically damaged, replace it. Regular backups and safe practices are the best defenses against data loss.
For additional Windows support, explore our Windows 11 troubleshooting hub to address other system issues.
Related Guides
- Windows 11 Troubleshooting Hub
- External Hard Drive Not Showing in Windows 11
- Fix Windows 11 Disk Usage 100%
- Fix Windows 11 Running Slow
- Fix Windows 11 Blue Screen of Death
- Recover Deleted Photos from Windows 11
- How to Clear Cache
- Fix Windows 11 File Explorer Not Responding
Frequently Asked Questions
How do I fix ‘The file or directory is corrupted and unreadable’ error?
Run CHKDSK with /f /r parameters, run SFC and DISM, or use data recovery software. For persistent issues, check disk health and consider replacing the drive.
Can CHKDSK fix corrupted files and directories?
Yes, CHKDSK repairs file system errors and marks bad sectors. Run chkdsk X: /f /r to perform a thorough scan and repair.
What is the difference between SFC and DISM?
SFC scans and repairs corrupted system files. DISM repairs the Windows image that SFC uses to restore system files. Run DISM first if SFC fails.
How do I recover data from a corrupted drive?
Use data recovery software like EaseUS Data Recovery Wizard, Recuva, or Stellar Data Recovery. Scan the drive and save recovered files to a different drive.
Why does ‘The file or directory is corrupted and unreadable’ error occur?
This error occurs due to file system corruption, bad sectors, improper shutdowns, virus infections, or physical damage to the drive.
Can bad sectors cause file corruption?
Yes, bad sectors can corrupt files and cause the file or directory corrupted and unreadable error. CHKDSK with /r parameter identifies and marks bad sectors.
How do I check if my drive has bad sectors?
Run chkdsk X: /r to scan for bad sectors. Use manufacturer diagnostic tools like SeaTools or WD Dashboard for a more comprehensive check.
What should I do if CHKDSK fails to repair?
If CHKDSK fails, run SFC and DISM to repair system files. If still failing, use Diskpart to clean and repartition the drive, or use third‑party recovery software.
Can a virus cause file or directory corruption?
Yes, malware and viruses can corrupt files and the file system. Run a full antivirus scan to detect and remove malware before attempting repair.
How can I prevent file corruption in the future?
Always use Safely Remove Hardware, keep your system updated, use a surge protector, and regularly back up your data.