How to Fix Corrupted Hard Drive Using CMD, Formatting and Other Methods

9254

repair corrupted hard disk

In just one moment, access to your files is revoked, and Windows refuses to open the drive. Any attempt to open the drive or shortcuts to your files will not work, leaving you unsure if your data is still there at all.

In the vast majority of cases, your data is actually fine, albeit inaccessible due to a damaged file system or some sort of logical error. With the right software, you can recover the lost files and then restore your hard drive to working condition.

Going about hard drive recovery and repair the wrong way will cause more issues and maybe even lead to some data becoming unrecoverable. We’ve created this full guide on recovering data from a corrupted hard drive, along with some ways to get the drive working again.

What to Do If a Hard Drive Becomes Corrupted

There are two or three critical actions you must take when you find your hard disk corrupted:

  1. Stop using it (and preferably unplug it safely).
  2. Create a byte-to-byte backup image if it’s unstable.
  3. Recover data from the drive or backup image.

The reason why you should stop using the drive is that your data isn’t actually gone, it’s just in a vulnerable state. For example, if you need to recover data from an internal hard drive, refrain from using it until you’re ready to perform recovery to reduce the chances of your data being overwritten and becoming unrecoverable.

How to Get Data From a Corrupted Hard Drive

Before you attempt to repair a corrupted hard drive, you should look at recovering the data from it first to avoid losing it in the process.

The method you use to get data from your corrupted hard drive will depend on your situation.

Scenario 1: The Drive Is Visible and Reading the Correct Size

As long as your hard drive is visible in Disk Management and showing the correct size, there’s a good chance you’ll be able to recover your data with few issues. To do this safely, we’ll be using Disk Drill Data Recovery to create a disk image of the corrupted hard drive, eliminating the risks involved with performing data recovery on the live drive.

  1. Download and install Disk Drill.
  2. Click Byte-to-byte Backup.The Drive Backup feature.
  3. Select the drive, then click Create backup.Backing up the corrupted HDD.
  4. Choose a name and path for the backup, then click OK.The backup configuration.
  5. Return to Storage devices and attach the disk image.Attaching the corrupted HDD image.
  6. Select the disk image, then click Search for lost data.Scanning the corrupted HDD.
  7. Click Universal Scan to recover all file types. Advanced Camera Recovery is for the recovery of fragmented videos from cameras and drones.Scanning the corrupted hard drive.
  8. Click Review found items when the scan is finished. If you want to recover everything immediately, click Recover all instead.Reviewing data on the corrupted HDD.
  9. Select the files you want to recover from the corrupted disk image. Use the filter buttons to organize the results and find what you’re looking for faster. When you’re ready, click Recover.Recovering data from the corrupted HDD.
  10. Choose a safe recovery location and click Next.Finishing corrupted HDD recovery.

Scenario 2: The System Drive Is Corrupted and Won’t Boot

It is possible to fix a corrupted hard drive that won’t boot, but recovering data from it is a little bit trickier (though still possible). When Windows won’t launch correctly, this is an indication that some essential system files have become corrupted.

In this case, you will need to remove the hard drive from your computer and connect it to a working computer as an external hard drive. Once connected, you will be able to perform recovery with Disk Drill like normal.

Scenario 3: The Drive Is Physically Corrupted

A data recovery service.

Physical corruption is typically the worst type of corruption, as physically damaged HDDs may not show up when you connect them, and there’s no reliable way to fix a broken hard drive at home. In such cases, a data recovery service is your best option, as it offers the best odds of recovering corrupted hard drives. This involves packing up your drive, sending it away for recovery, and receiving the data back on a separate, healthy storage device. This is the best possible way to recover your data, and although it is also the most expensive option, it’s the only option for physical corruption.

How to Fix a Corrupted Hard Drive on Windows

Let’s move on to fixing the corrupted hard drive once your data has been recovered. If you skipped recovery, and simply want to fix your corrupted drive, be sure to at least create a byte-to-byte backup to preserve your disk’s state. This allows for future corrupted hard drive recovery in case the drive fails or some data is lost. You can create a free drive backup with Disk Drill, or other tools like Clonezilla.

Check out these methods on how to repair a corrupted hard disk.

Method 1: Try Another Cable or Port

Sometimes a corrupted hard drive just appears as so due to a faulty cable or port. This is especially true if your external hard drive is showing corrupted, seeing as your cable is frequently connecting and disconnecting. If the damage is indeed being caused by a faulty connection, it’s a fast and easy way to fix a corrupted external hard drive without formatting.

Try another cable, then try connecting the drive to another port. If you want to be extra thorough, test the hard drive in another computer entirely. If the fault persists, move to the next solution.

Method 2: Repair Using CHKDSK

CHKDSK (CheckDisk) is a hard drive repair tool that allows you to repair corrupted hard disks using CMD. In instances where your disk structure is corrupted and unreadable, CHKDSK is one of the many ways you can fix it.

CHKDSK doesn’t work on RAW drives, with the exception being NTFS volume missing its boot sector. So, if you get the message “CHKDSK is not available for RAW drives,” move to the next method.

With how CHKDSK fixes file system issues, there is a risk of data loss. This is especially true with the /r parameter we’ll be using, as it reads sectors and relocates data from bad ones. Therefore, the data should be recovered or backed up before fixing.

Follow these steps to repair a corrupted hard drive using CHKDSK:

  1. Right-click Start and click Windows PowerShell (Admin). On Windows 11, this will be Terminal (Admin) instead. Opening Terminal.
  2. Type chkdsk *: /r. Replace * with your own drive letter. Press Enter.Running the CHKDSK command.

Method 4: Run SFC and DISM

If your hard drive is preventing the computer from booting, it’s possible some of your Windows system files have been damaged or corrupted. In some cases, Windows can corrupt your hard drive due to an interrupted installation or update. SFC (System File Checker) and DISM (Deployment Image Servicing and Management) are two commands that can check the integrity of your Windows system files and repair them if necessary.

Here is a quick overview of what each command does:

  • SFC – This will scan your system files and verify they are in working order. Should it find any that are damaged or corrupted, it will attempt to replace them with working versions.
  • DISM – If SFC is unable to fix it, DISM can repair the underlying Windows system image using Windows Update to pull the necessary files. Seeing as it relies on Windows Update, it does need an internet connection.

The only caveat is, since your system won’t boot, you’ll need to run them in the Windows Recovery Environment (WinRE). There are two ways you can get here:

  • With a bootable USB. Use a bootable USB containing Windows, then from the setup screen, you can click Next, then choose to Repair your computer. This is the preferred method.
  • Perform three forced restarts. This involves powering on your PC, then once the spinning dots of Windows logo appear, hold the power button until it shuts down. Do this 3 times, then on the fourth boot, you’ll be in the WinRE.

Follow these instructions to execute SFC and DISM to repair any corrupted system files:

  1. Boot into WinRE using one of the above methods.
  2. Click Troubleshoot.Troubleshooting in the Windows Recovery Environment.
  3. Click Command Prompt. Those who used the three forced restarts method will need to click Advanced options first.Opening Command Prompt in WinRE.
  4. Type sfc /scannow. Press Enter. If the drive is still corrupted, try the next step.Running the SFC command.
  5. Type dism /online /cleanup-image /restorehealth. Press Enter.Running the DISM command.

If DISM throws the error “DISM Error: 87 the Cleanup-Image option is unknown,” try Dism /image:C:\ /Cleanup-Image /RestoreHealth instead.

Method 4: Format the Drive

Answering the question, “Will formatting fix a corrupted hard drive?,” yes. In fact, one of the most effective ways to recover a corrupted hard drive is through formatting it with a new file system. When you format a corrupted hard drive, it essentially deletes the file system currently used by the corrupted volume and provides it with a new one to store data again.

Formatting is a guaranteed fix for almost any logical corruption, but it will delete your data in the process. Even though data recovery is possible afterward, your chances are reduced and so data recovery should be done before formatting.

Follow these steps on how to format a corrupted hard drive with Disk Management:

  1. Right-click Start and click Disk Management.Opening Disk Management.
  2. Right-click the volume of your corrupted hard drive and select Format.Choosing the Format option.
  3. Ensure Perform a quick format is selected and click OK.Formatting the drive.
  4. Click OK again to confirm the action.

Conclusion

Dealing with a corrupted hard drive is tricky, but it’s rarely a lost cause. The methods outlined in this article will guide you through securing your data and fixing the drive. Going forward, your best bet for recovering from a damaged hard drive is to keep your data backed up. Then, if it happens again, you can just format the drive and restore a copy of the data.

If you run into other issues, like your disk structure becomes corrupted or unreadable, your SSD becomes corrupted, or you need to recover files from a corrupted USB drive, check out our other guides.

Did you find this guide helpful? We’re always looking to improve, and would love to hear your recovery experience in the comments.

FAQ

A corrupted hard drive will not allow you to access your data. In most cases where only the drive is corrupted, your data is still safe and can be recovered using data recovery software. Otherwise, until you recover the corrupt hard drive to a working state, the drive will remain unusable.
Yes, you can fix a corrupted hard drive by formatting it with a new file system. Logical hard drive corruption is often caused by a damaged or corrupted file system. Formatting the partition will correct this. However, all of the data on the drive will be deleted, and your chances of recovering that data will be reduced.
When a hard drive is corrupted, Windows will usually display a message indicating as much. Typically, Windows will automatically prompt you to format the drive to restore it to working order. For a physically damaged hard drive only a professional will know how to fix the hard drive.
A corrupted disk in Windows 7 can be fixed using CHKDSK, a file system-repair HDD repairtool included with Windows. CHKDSK will not work on RAW drives, with the exception being NTFS drives that have become RAW due to a lost boot sector. If your drive is RAW, try using TestDisk or performing a format. Follow these steps to do so:
  1. Click Start and search “PowerShell”.
  2. Right-click Windows PowerShell and click Run as administrator.
  3. Type chkdsk *: /r. Replace * with your own drive letter. Press Enter.
Hard drive corruption can be caused by a variety of factors, including sudden power loss, unsafe ejection, malware infection, bad sectors, or failing hardware. Any sort of corruption will prevent you from reading from or writing to the volume, but the data is left intact most of the time, making it recoverable with the data recovery software.
Yes, formatting a corrupted hard drive will delete all files stored on it. A quick format, which is typically the default option on Windows, only removes file system references, making the data inaccessible and allowing for the data to be recovered after the fact. However, it won’t stay this way, and eventually the data will be overwritten. A full format completely overwrites the data, making recovery virtually impossible.
0 COMMENTS
This field is required
This field is required
We respect your privacy; your email address will not be published.

We respect your privacy; your email address will not be published.

You have entered an incorrect email address!
This field is required