> How to > Data Recovery Solution > Recover Data after Accidentally Cleaned Disk Using Diskpart

Recover Data after Accidentally Cleaned Disk Using Diskpart

Updated on Sep 11, 2018 by Abby Haines to Data Recovery Solution

Summary

This page tells how to recover data when you accidentally cleaned disk using DiskPart and show you the right way to undo the disk clean using cmd. Read and see how can you restore lost data and disk partition with ease.

Accidentally cleaned disk using Diskpart command, how to undo it and restore data?

Diskpart, a Windows built-in free command line tool designed for disk managing and you will not miss it as a PC user.

One of its most frequently used feature is the clean command with which you can wipe a disk with just one click. But sometimes, you may accidentally clean a hard disk and wipe the whole disk. And as a result, all your data and partitions will be fully removed. 

Lost data and partition after running DiskPart clean command

If you are facing such a problem, you may interest in how to rescue your important files and undo disk clean. Then, read on to get your solution.


Part 1. Restore lost data by DiskPart clean command
- Download data recovery software for help

Diskpart disk clean command remove all data.

For your information:

DiskPart clean command will remove the whole disk partitions and all existing data no matter you selected to clean a simple volume or a whole disk.

1. If you only ran 'Clean' command, it will remove all partition and data. Mostly, Diskpart clean recovery is possible.

2. If you've executed 'Clean All', this command will thoroughly erase all data and destroy partitions on the disk.  

Therefore, please make sure that you've run 'Clean' command not 'Clean all' command before you try the provided data recovery solution here.

So, what tool can recover the removed data from cleaned disk? Our advice is to try EaseUS data recovery software.

Therefore, please activate this software to gain unlimited data recovery capacity before you start the process. Of course, you can also try the free edition - EaseUS Data Recovery Wizard Free, if your disk data is less than 2GB.

And under this circumstance, activation will be a wise decision for a smooth hard disk data recovery process.

 

EaseUS Data Recovery Wizard

Restore unlimited lost files now

 

Click to Activate

-$20 Now

$69.95

 

 It can deep scan the Diskpart cleaned hard drive to find and recover all the removed data in just 3 simple steps.

▶ [3-step Guide] How to recover data lost by Diskpart clean

Step 1. Run EaseUS hard disk data recovery software

  1. 1. Launch EaseUS Data Recovery Wizard
  2. 2. Choose "Lost Partition" and click "Scan" button.
  3. (All removed partition will be listed and shown as Lost Partition in EaseUS Data Recovery Wizard.)

Recover data after accidentally cleaned disk in Diskpart - select the specific storage location to scan

Step 2. Scan and find lost data

A quick scan and deep scan will start simultaneously to find all the deleted or lost files on the target disk.

Recover data after accidentally cleaned disk in Diskpart  - perform a quick scan and deep scan

Step 3. Preview and restore lost data

  1. 1. After the scan, preview all the listed recoverable files and choose those you want.
  2. 2. Finally, click "Recover" button to retrieve them back from the cleaned hard drive.
  3. 3. Please choose a different location to save the recovered data to avoid data overwriting.

Preview and recover data after accidentally cleaned disk in Diskpart


Part 2. Undo DiskPart clean using cmd (to restore lost partitions)

So some of you may want to know is it possible to undo the DiskPart clean command and restore lost partitions? Sure!

Here we'll show you how to use command lines to restore all your lost partitions:

1. Open CMD and type: diskpart and hit Enter.
2. Type: list disk and hit Enter.
3. Type: select disk 2 (replace 2 with the disk number on which you lost data) and hit Enter.
4. Type: list volume and hit Enter.
5. Type: select volume 4 (and replace 4 with the partition number on which you lost data due to diskpart clean command) and hit Enter.
6. Type: assign letter=d (replace d with the drive letter that you want to add to the cleaned partition) and hit Enter.
7. Repeat 5 and 6, and assign each partition with a different drive letter. 
8. Exit and then all your partitions on the cleaned disk are all back.

Undo DiskPart clean disk command and restore partition.


More Information:

  1. DiskPart clean command can easily cause data loss and partition loss issue on your disk, please be very careful and make sure that all essential data on your disk has been backed up before executing this command.
  2. And once you lost data and disk partitions with DiskPart clean command, follow provided methods on this page for help.
  3. If you run a delete command in DiskPart, please apply EaseUS Data Recovery Wizard to retrieve deleted files.