Have you accidentally lost/deleted your hard disk (or SSD) partitions, using Diskpart Clean Command?. Then, you don’t have to worry, if you haven’t taken any action after that. Because you can restore deleted partition. Though, if you have formatted your HDD or SSD. Then, recovering data is gonna be much harder and time-consuming.
“Last Night, I was trying to format my corrupted External HDD using Diskpart. But, accidentally selected Internal HDD during the process. And, after that “Clean” command, my all partitions got vanished from my PC. And, in disk management, HDD was showing “Unallocated”. But, with a free data recovery utility, I was able to get back all my data with partitions. So, this article is definitely gonna be helpful for you.”
What Clean command does in Diskpart?.
Diskpart is is a command-line Disk Partitioning Utility. That helps to manage hard disk and partitions with various commands. In Diskpart utility, there is a command called “Clean”. That erases selected disk and does leave disk as ‘not initialized’ and ‘unallocated’.
Basically, command removes all active partitions from the selected disk. The clean command actually doesn’t wipe all data from the disk. It just marks the data on the disk as “deleted”. On the other hand, there is a “clean all” command that actually wipes all data. And, does make the selected drive unrecoverable. So yes, you can recover your all partitions with all data. Even, after running the Diskpart Clean command.
Restore Deleted Partition.
TestDisk – Partition Recovery and Data Recovery.
To recover data and deleted partitions, there are many paid software available. But, I will suggest you use Test Disk. It is a free and open-source partition/data recovery utility. The software is designed to recover the lost data and partitions. And, also it does make a non-bootable disk to bootable again. If the hard drive is not functioning correctly, and, the partition is inaccessible. Then, the software is quite useful to recover the partition table. The software also can recover data from deleted partitions.
Using this software can be a little bit complicated. Though, just follow this guide, if you want to Restore Deleted Partition. Basically, this software will undo Diskpart Clean Command. But, if you find this software complicated. Then, you can use any other paid data recovery software.
IMPORTANT: Please follow all the steps correctly. I will not responsible for any data loss. Just make sure partition appears correctly before writing a partition table on the hard drive.
2. Extract the Zip file using any File Extractor tool. Or, you can right-click on “Extract All” > “Extract”.
3. Open Extracted the folder, and run the “TestDisk” application file as administrator.
4. Software Window will appear. Make sure the “Create” option is highlighted, and, press the Enter key. (To recover partition, you have to create a new log file.)
5. On the next Screen, Test Disk will ask you to select the drive to recover partition. Select the correct drive, select “Procced” and press enter. (I am selecting my 2TB hard disk. Because partitions deleted from that drive.)
6. Now, the software will ask you to select the partition table type. I am using Windows PC, that’s why I have selected “Intel/PC Partition“. Select and press enter.
7. Now, select “Analyse” and press enter. (This will search for your existing partition structure. Also, will look for lost partition.