Software & Apps Windows How to Fix 'The File or Directory is Corrupted and Unreadable' Errors One simple command might be enough to get your files back by Tim Fisher General Manager, VP, Lifewire.com Tim Fisher has 30+ years' professional technology support experience. He writes troubleshooting content and is the General Manager of Lifewire. our editorial process Facebook Twitter LinkedIn Tim Fisher Updated on March 31, 2020 Windows The Ultimate Laptop Buying Guide Tweet Share Email This is a common error seen on Windows computers when the operating system can’t access data on an external hard drive: E:\ is not accessible. The file or directory is corrupted and unreadable. You might see this error after trying to open something from a USB drive. Or, depending on how your computer is set up, it might pop up right after inserting the drive into your computer. This “not accessible” error can happen at any time, even if you’ve recently used the drive. The location at the start of the error message is unique for whatever location is unreadable, so it might be E:, H:, K:, etc. There are several reasons you might see this error: The drive was pulled out without safely ejecting itMalware has infected the driveThe external drive is physically damaged This error could occur on any Windows operating system. The steps below apply to Windows 10 and earlier, back to Windows XP. How to Fix 'The File or Directory is Corrupted and Unreadable' Errors The best way to fix “The file or directory is corrupted and unreadable.” errors is to walk through these troubleshooting steps, in order: Run the chkdsk command against the hard drive. Do this by opening an elevated Command Prompt and entering the following command, replacing the last letter with the letter of the drive that’s displaying the error: chkdsk /r e: Running the chkdsk command is the most likely fix for this error. If you skip this step, it's possible that the next two suggestions below won't be effective because the drive will still be unreadable. Scan the hard drive with a malware removal program. If malware is to blame for the error, removing it might restore access to the drive. Format the drive. If it’s unreadable, it’s unlikely that you’ll be able to get far enough to format it, but give it a try anyway. Formatting will erase everything from the drive! Before you complete this step, try recovering files from the drive using a file recovery program. If the files are registered as being deleted, the file undelete program might give you one last chance to get your files. If the reason for your “The file or directory is corrupted and unreadable.” error is because the drive is physically broken, repairing the drive isn't enough to recover your data and stop the error. In this case, you'll need to replace it. Check out our updated lists of the best USB flash drives and the best external hard drives for suggestions.