How to Fix Corrupted Hard Drive Using CMD, Formatting and More (2024)

How to Fix Corrupted Hard Drive Using CMD, Formatting and More (1)Hard drive corruption is one of the worst types of data loss, and it can strike at any moment. While there are steps you can take to minimize the chances of it happening, there’s no guarantee that you’ll be completely safe.

If your hard drive has become corrupted, you need to act quickly in order to safely recover your data and restore the hard drive to working order. Read on to find out how to fix hard drive corruption.

Table of Contents

What to Do If a Hard Drive Becomes Corrupted

There are two critical actions you must take when you find your hard drive has become corrupted:

  1. Stop using it (and preferably unplug it safely).
  2. Recover the data from it.

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 it is showing the correct size, there’s a good chance you’ll be able to recover your data with little 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 Drive Backup.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (2)
  3. Select the drive, then click Byte-to-byte Backup.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (3)
  4. Choose a path for the backup, then click OK.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (4)
  5. Return to Storage devices and attach the disk image.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (5)
  6. Select the disk image, then click Search for lost data.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (6)
  7. Click Review found items when the scan is finished. If you want to recover everything immediately, click Recover all instead.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (7)
  8. 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.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (8)
  9. Choose a safe recovery location and click Next.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (9)

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

Physical corruption is typically the worst type of corruption, as physically damaged disks may not show up when you connect them. In such cases, a data recovery service is your best option, as they specialize in recovering corrupted hard drives. Relying on the services of a data recovery professional means you’re giving yourself the best chance at getting your data back. This is the best possible way to recover your data, but it is also the most expensive. Here’s a quick look at the process:

  1. Click Start Recovery.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (10)
  2. Choose the type of service you want and fill out your information.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (11)
  3. Submit the work order.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (12)

Once recovery is complete, your data will be returned to you on a healthy storage device, ready for backing up.

How to Fix a Corrupted Hard Drive on Windows

Once your data is safely recovered from the corrupted hard drive, you can look at performing corrupted hard drive recovery. There are many different ways of fixing a corrupted hard drive, many of them being very easy (especially with our instructions).

Check out these methods on how to fix a corrupted hard drive.

Method 1: Try Another Cable or Port

Sometimes a corrupted hard drive is just the result of a faulty cable or port. This is especially true if your external hard drive is corrupted, seeing as your cable is frequently connected and disconnected. 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 CheckDisk

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, CheckDisk is one of the many ways you can fix it. Furthermore, it is a great way to fix corrupted hard drives without losing data.

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

  1. Right-click Start and click Windows PowerShell (Admin). On Windows 11, this will be Terminal (Admin) instead.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (13)
  2. Type chkdsk *: /r. Replace * with your own drive letter. Press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (14)

Method 3: Scan for Viruses

Viruses intend to harm your computer by design. If a virus has managed to infect your computer, perform a scan to remove it before it can do more harm. To do so, you can use any antivirus program. We’ll be using the antivirus program that’s built-in to Windows 10 and 11, Microsoft Defender Antivirus.

Follow these instructions to scan for viruses on your Windows computer:

  1. Right-click your drive and click Scan with Microsoft Defender. This will perform a quick scan.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (15)
  2. To perform a more thorough scan, select Microsoft Defender Offline scan and click Scan now. Ensure all your work is saved, as this will scan will restart your computer.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (16)

Method 4: Run SFC and DISM

If your hard drive is preventing the computer from booting, it’s likely because 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.

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

  1. Right-click Start and click Windows PowerShell (Admin).How to Fix Corrupted Hard Drive Using CMD, Formatting and More (17)
  2. Type sfc /scannow. Press Enter. If the drive is still corrupted, try the next step.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (18)
  3. Type dism /online /cleanup-image /restorehealth. Press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (19)

Method 5: Format the Drive

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.

Although all of your data will be deleted, it will still be recoverable afterwards using Disk Drill, so long as you perform a quick format instead of a full format.

  1. Right-click Start and click Disk Management.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (20)
  2. Right-click the volume of your corrupted hard drive and select Format.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (21)
  3. Ensure Perform a quick format is selected and click OK.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (22)
  4. Click OK again to confirm the action.

Method 6: Reconfigure With DiskPart

In cases where the corruption is so severe that you’re unable to repair a corrupted hard drive by formatting, you can prepare the disk manually using DiskPart. Similar to Disk Management but at the command-line level, DiskPart allows you to manage your computer’s drives and gives you more control over how you want to set them up.

This method will delete any data and partitions you have on the drive.

  1. Right-click Start and click Windows PowerShell (Admin).How to Fix Corrupted Hard Drive Using CMD, Formatting and More (23)
  2. Type diskpart and press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (24)
  3. Type list disk and press Enter. Make note of your corrupt disk number.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (25)
  4. Type select disk *. Replace * with your disk number. Press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (26)
  5. Type clean and press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (27)
  6. Type create partition primary and press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (28)
  7. Type active and press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (29)
  8. Type select partition 1 and press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (30)
  9. Type format fs=ntfs and press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (31)
  10. Type assign and press Enter.How to Fix Corrupted Hard Drive Using CMD, Formatting and More (32)

What Causes a Hard Drive to Be Corrupted?

Even though you’re unable to absolutely guarantee the protection of your hard drive against corruption, you can actively reduce your chances of it happening by knowing what causes it. Here are a few common causes behind hard drive corruption.

CauseDescription
🪟 Blue screen of death (BSoD)The infamous blue screen of death is how Windows alerts you to fatal system errors. It indicates something that has gone wrong and caused your computer to crash.
⏏️ Improper removal/ejectionRemoving your external drive while it is handling read-write processes can cause corruption of the file system, preventing you from accessing your data.
🔌 Sudden power failureImmediate power failure can also interrupt delicate read-write processes. Additionally, a power surge that follows a power outage can short out the hard drive’s control board.
🚫 Bad sectorsBad sectors occur naturally in drives as time goes on. However, a sudden influx of bad sectors can point towards a drive in critical condition, and may even render a sector used by your operating system unusable.
🦠 Virus attacksA boot-sector virus is capable of accessing the boot sector of your drive, which executes automatically upon startup. If this becomes infected, it can prevent you from accessing your drive.

Conclusion

Hard drive corruption is devastating. Should you be unfortunate enough to encounter it, you should stop using your drive immediately and recover your data from it at your earliest convenience. Recover your data using a data recovery application like Disk Drill if the disk is readable and showing the correct size. If the drive is physically damaged, use a data recovery service instead.

Once your data is safe, you can safely repair the drive. Start by checking the cables and connection points for faults. Next, try repairing the drive with CheckDisk and clearing the drive of viruses with Microsoft Defender Antivirus. If neither works, repair any corrupted Windows files using SFC and DISM. Should functionality still not be restored, format the drive with a new file system to reset it.

FAQ

What happens if your hard drive is corrupted?

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 it is fixed, the drive will remain unusable.

Can you fix a corrupted hard drive by formatting?

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.

How to check if a hard drive is corrupted?

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.

How do I fix a corrupted disk in Windows 7?

A corrupted disk in Windows 7 can be fixed using CheckDisk, a hard drive repair tool included with Windows. 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.
How to Fix Corrupted Hard Drive Using CMD, Formatting and More (2024)

FAQs

How to fix a corrupted hard drive using cmd? ›

Here's how to repair the drive:
  1. Close the Error Checking dialog.
  2. Open the Command Prompt by typing cmd into the desktop search field and selecting Run as administrator.
  3. Type the command chkdsk C: /f. If the drive you're trying to repair isn't the C drive, replace “C” with the letter of the relevant drive.
Sep 22, 2023

How do I force a corrupted hard drive to format? ›

How to Format a Corrupted Hard Drive
  1. Launch File Explorer, navigate to This PC, and right-click the corrupted hard drive you want to format.
  2. Select the Format option from the context menu.
  3. Choose the desired file system and make sure the Quick Format option is unchecked.
  4. Click Start to begin.
Apr 4, 2023

How to fix error you need to format the disk in drive using cmd? ›

CHKDSK is a file system repair tool that can be run through Command Prompt (CMD) to scan for errors on the drive and fix them. It has a chance of repairing the problem that's causing the message to appear, so we'll show you how to go about running it. Right-click Start and click Terminal (Admin). Type CHKDSK *: /r .

How to reset a hard drive using cmd? ›

How to Format a Hard Drive Using the Command Prompt
  1. STEP 1: Open Command Prompt As Administrator. Opening the command prompt. ...
  2. STEP 2: Use Diskpart. ...
  3. STEP 3: Type List Disk. ...
  4. STEP 4: Select the Drive to Format. ...
  5. STEP 5: Clean the Disk. ...
  6. STEP 6: Create Partition Primary. ...
  7. STEP 7: Format the Drive. ...
  8. STEP 8: Assign a Drive Letter.
Jul 12, 2023

Which is better, CHKDSK r or f? ›

chkdsk /f fixes any structural issues with the file system and directory, correcting inconsistencies between the two. chkdsk /r searches for corrupted parts of the physical hard drive (while also running chkdsk /f) and tries to recover the data there to put it in a part of the drive that isn't damaged.

How do I clean up my hard drive using cmd? ›

Steps to Erase and Clean a Drive Using Disk Part Command on Windows
  1. Press the Windows Key + X. Click Disk Management.
  2. Locate the Disk # for the drive.
  3. Press the Windows Key. Type cmd. ...
  4. Type diskpart. Press Enter.
  5. Type list disk. Press Enter.
  6. Locate the Disk #.
  7. Type Select Disk #. Press Enter. ...
  8. Type clean. Press Enter.
Dec 21, 2018

How to fix a hard disk corrupted and unreadable? ›

Methods to Fix Corrupted Hard Drive
  1. Go to Computer/This PC >> Select Hard Drive >> Choose Properties.
  2. Select Tools >> Error checking >> Check now >> Check local disk >> Start.
  3. Shut down all open and running programs >> wait for the system to check upon the next boot >> restart the PC.
Mar 9, 2023

Can you uncorrupt a hard drive? ›

CHKDSK is a built-in Windows tool that can help repair corrupted hard drives. Open Command Prompt and type "chkdsk /f X:" (replace X with the drive letter of the corrupted hard drive) and press Enter. CHKDSK will scan and attempt to fix any errors it finds on the drive.

How to fix a corrupted external hard drive without formatting using cmd? ›

Use Check Disk Utility (CHKDSK)

Here's how to use CHKDSK: Open the Command Prompt as an administrator by searching for 'cmd' in the Start menu, right-clicking on 'Command Prompt', and selecting 'Run as administrator'. Enter the command chkdsk E: /f /r /x (replace 'E' with the letter assigned to your external drive).

How to force format disk using cmd? ›

How to format Hard Drive on Windows using Command Prompt?
  1. Open Command Prompt in Administrative format.
  2. Type 'diskpart' command in CMD.
  3. Get the list of disks using the list disk command.
  4. Select the Disk and clean the disk with the clean command.
  5. Make it the Primary Partition and format the drive.
Aug 27, 2024

How to repair a corrupted flash drive using cmd command prompt? ›

Open Command Prompt by right-clicking the Windows icon and selecting "Search." Type: cmd in the search box, right-click Command Prompt, and select "Run as administrator". Type: chkdsk I: /f /r /x and hit Enter. (Replace I: with the drive letter of your USB.)

How to repair hard disk not detected by Windows cmd? ›

To run CHKDSK:
  1. Identify the drive letter of the external HDD by opening File Explorer and reviewing the devices under This PC.
  2. Enter Command Prompt in the Windows search bar.
  3. Right-click on Command Prompt and select Run as administrator.
  4. Enter the following command: chkdsk X: /f. ...
  5. Press Enter.
Nov 9, 2023

How to repair a disk using cmd? ›

Run CHKDSK from the command prompt

Type a CHKDSK command in the command prompt and press “Enter”. Include parameters like “/f”, “/r”, and “/x” to scan and repair any errors. Note: If you opt to only scan your PC for drive errors, type “chkdsk” and press “Enter”.

How do I force a hard drive to reset? ›

How to wipe a hard drive – Windows 10
  1. Press the Windows key.
  2. Type “Settings” to find the Settings app.
  3. Open Settings.
  4. Click Update & Security.
  5. Click Recovery.
  6. Click Get Started.
  7. Use the Remove everything option.
  8. Chose Local reinstall.

How to hard reset using cmd? ›

Follow the steps below:
  1. If your PC is bootable, you can launch Command Prompt as an administrator by typing cmd in the search bar.
  2. Paste the following command in the Command Prompt window and hit “Enter”: systemreset -factoryreset.
  3. On the next window, select whether you want to “Keep My Files” or “Remove Everything”.
Feb 7, 2024

Can a corrupted hard drive be fixed? ›

CHKDSK is a built-in Windows tool that can help repair corrupted hard drives. Open Command Prompt and type "chkdsk /f X:" (replace X with the drive letter of the corrupted hard drive) and press Enter. CHKDSK will scan and attempt to fix any errors it finds on the drive.

Does CHKDSK fix hard drive? ›

CHKDSK can either scan your hard disk and provide a report, or scan your disk and correct both file errors and bad sectors.

How to fix corrupted files using cmd? ›

The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache. The %WinDir% placeholder represents the Windows operating system folder.

Top Articles
15 Money making apps that generate passive income. - The Wise Half
Hotshot Wharton professor sees $34 trillion debt triggering 2025 meltdown as mortgage rates spike above 7%: 'It could derail the next administration'
Express Pay Cspire
What spices do Germans cook with?
Danatar Gym
Dew Acuity
Sissy Hypno Gif
CHESAPEAKE WV :: Topix, Craigslist Replacement
Craigslist Dog Sitter
Student Rating Of Teaching Umn
Caroline Cps.powerschool.com
Craigslist Cars Nwi
What Happened To Maxwell Laughlin
TS-Optics ToupTek Color Astro Camera 2600CP Sony IMX571 Sensor D=28.3 mm-TS2600CP
Hair Love Salon Bradley Beach
Craigslist Missoula Atv
Lola Bunny R34 Gif
2021 Volleyball Roster
Atlases, Cartography, Asia (Collection Dr. Dupuis), Arch…
Aspenx2 Newburyport
Prey For The Devil Showtimes Near Ontario Luxe Reel Theatre
Vivaciousveteran
Bidrl.com Visalia
Feathers
Angel Haynes Dropbox
ATM, 3813 N Woodlawn Blvd, Wichita, KS 67220, US - MapQuest
About | Swan Medical Group
Golden Tickets
Consume Oakbrook Terrace Menu
Marie Peppers Chronic Care Management
2024 Ford Bronco Sport for sale - McDonough, GA - craigslist
#1 | Rottweiler Puppies For Sale In New York | Uptown
Giantess Feet Deviantart
Frank 26 Forum
Can You Buy Pedialyte On Food Stamps
Heelyqutii
Dollar Tree's 1,000 store closure tells the perils of poor acquisitions
Chatropolis Call Me
Culver's of Whitewater, WI - W Main St
Craigslist En Brownsville Texas
Fwpd Activity Log
Lake Kingdom Moon 31
Craigslist Farm And Garden Reading Pa
Vintage Stock Edmond Ok
Gt500 Forums
Lesly Center Tiraj Rapid
Advance Auto.parts Near Me
Electric Toothbrush Feature Crossword
Pilot Travel Center Portersville Photos
Unit 4 + 2 - Concrete and Clay: The Complete Recordings 1964-1969 - Album Review
Texas 4A Baseball
Kindlerso
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 5892

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.