This tutorial is about repairing disk errors and applies for all devices running the Windows 11/10, Windows 8/8.1, Windows 7 operating systems. Furthermore, we are also going to show you what causes this error. and lastly, how you can fix it on your PC.

What Causes Hard Drive Corruption

Hard drive corruption can occur due to the following;

  • File System errors
  • Read/Write issues
  • Software bugs
  • Virus attack
  • Damaged MBR on the disk
  • Bad sectors on the hard drive
  • Poor operating conditions
  • Power supply and connection
  • Physical damage

How the Error Appears

Sometimes plugging in an external device into your computer, Windows might prompt error message; ” Drive H:\ is not accessible. The file or directory is corrupted and unreadable.”. Windows prompts error message: “Drive H:\ is not accessible.

Repair Drive using Command Prompt Without Losing Data - Disk Error
Repair Drive using Command Prompt Without Losing Data – Disk Error

How we lose data

External Hard drives, USB flash drive, SD card, for instance, can be susceptible to this error. A significant number of people have lost important data from their PCs due to errors.

A common popup message on the Windows OS leading to data loss is “You need to format the disk in drive G: before you can use it “.

Avoid the “Format disk” button. Close the prompt instead. It should be used for unused drives or as the last result.

Format Message
Format Message
DO NOT CLICK "FORMAT DISK"

Repair Drive using Command Prompt Without Losing Data

There’s a way to fix this problems. Checking the disk errors and repairing corrupted file systems. Avoid clicking on “The file or directory is corrupted and unreadable” error caused by bad sectors, virus infection or file system corruption.

Issues addressed

When a file or directory gets corrupted and unreadable, it can cause a lot of problems on your PC. This can prevent you from accessing certain files.

  • Unusable files and directories
  • The drive does not show on “This PC”
  • Corrupted or unreadable folder
  • If the format disk prompt windows 10 doesn’t work.

Steps to fix Issue:

chkdsk checks the file system and file system metadata of a volume for logical and physical errors. If used without parameters, it displays only the status of the volume and does not fix any errors.

If used with the /f/r/x, or /b parameters, it fixes errors on the volume.

1. Check Drive Letter with error and take note.

2. Open Command Prompt as Administrator

3. Check Disk Drive Letter using Command Prompt

Sometimes the drive might not show in “This PC”. We can check it using command prompt using; “List disk

In Command Prompt type.

diskpart

then,

list disk

Learn more in our precious article “Formatting Using Command Prompt – diskpart

  • Formatting Using Command Prompt – diskpart

    Formatting Using Command Prompt – diskpart a command-line disk partitioning utility for Microsoft operating systems.

4. Perform Check Disk Operation using

chkdsk "dive letter/volume": /f

/f – fixes errors on the disk. Learn more from

How can I protect my hard drive from corrupting

The simplest way to repair damaged disks is to prevent hard drive corruption. You can develop this simple habit. Developing healthy habits with regard to handling storage devices will help you save your time and effort.

About Brian Gathu

mmGathu is a business and tech geek who spends half of his day, branding and designing. While the nights are spent on writing. You can check out-