Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Recover partition after aborted diskpart clean all command

27 Feb 2016   #1
mimo4019

Windows 10 Pro x64
 
 
Recover partition after aborted diskpart clean all command

Hi,

I've used diskpart clean all command on my 640GB hdd by mistake. But I aborted (Ctrl+C) it after about 15 minutes of beginning.

There was 4 partitions on it:
1. Windows partition (about 90GB).
2. Unallocated space (about 25GB).
3. Another partition (about 50GB).
4. Data partition (The rest of it and this is what I want to recover).

I have done MiniTool Partition wizard fast and complete scan and the result was two 3MB partitions.
I have run Acronis recovery fast and complete scan, fast scan has no result and complete scan has run for over 20 hours without finishing.
Then, I run TestDisk quick scan with no results. After that, TestDisk Deeper scan with the attached results. I tried to list the files in that partition but it told me that "Can't open filesystem. Filesystem seems damaged." as the second attachment.

What should I do next? please help.




Attached Thumbnails
Recover partition after aborted diskpart clean all command-dsc_0006.jpg   Recover partition after aborted diskpart clean all command-dsc_0008.jpg  
My System SpecsSystem Spec
.
27 Feb 2016   #2
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Clean All is like shooting yourself into the leg - it writes all zeros on the disk. I am afraid you are out of luck. Sorry.
My System SpecsSystem Spec
29 Feb 2016   #3
mimo4019

Windows 10 Pro x64
 
 

Quote   Quote: Originally Posted by whs View Post
Clean All is like shooting yourself into the leg - it writes all zeros on the disk. I am afraid you are out of luck. Sorry.
Thanks for your response, I've aborted the process before its completion (about 15 minutes from its beginning) Can I recover the data that didn't have overwritten with zeroes?
Any way to fix the damaged filesystem?
My System SpecsSystem Spec
.

29 Feb 2016   #4
jumanji

Windows 7 Home Premium 32 bit
 
 

hmm... Since you aborted clean all after about 15 minutes, I presume that almost 75% (plus or minus) of your data may still be there. Please do the following:

This is only for exploration: Download, install and run GetDataback Simple Data Recovery Free demo version from here https://www.runtime.org/data-recovery-software.htm. ( Also read the How-to-Guides and Documentation on that page) Scan your 640GB drive.and check whether it shows all or some of your partitions and files in it.. That will be Level 1.

Recover partition after aborted diskpart clean all command-29-02-2016-18-22-37.jpg

If Level 1 fails , try Level 2. Level 3 and then Level 4. Report the results. ( Post screenshots)


2. If it successfully shows your files - which however you may not be able to copy because it is only a trial version - you may try PhotoRec to carve out the files.

PhotoRec Step By Step - CGSecurity

Guide to using PhotoRec recovery software. ( Do not format your drive. I formatted only to show how PhotoRec can recover files even after formatting the drive. Straightaway go to the topic Recovery in it.)


My System SpecsSystem Spec
29 Feb 2016   #5
jumanji

Windows 7 Home Premium 32 bit
 
 

After going through your first post leisurely and having examined the TestDisk screenshots in depth, I may comment as follows.

TestDisk seems to have found atleast one partition of 456 GB. This could be your last data Partition.( Initially I thought it was showing your whole Disk)

Since you said that it had one 90GB Windows Partition, it becomes imperative to know 1. wherefrom that HDD came, 2. what Windows and bit version was on it and 3. How is it connected at present while you ran TestDisk.

If you are connecting the old 640GB HDD - which was an MBR drive that ran Windows 7 - now to a Windows 10, 64 bit system, you are complicating the whole issue of data recovery.

TestDisk had to dig out the NTFS boot sector from its backup to show you that 456GB partition, but it still failed to list the files because it is now running on Windows 10 and looking for data in 4096 bytes/sector size as ordained by Windows 10, 64bit. Atleast that is my thinking. ( Read the last line in the first TestDisk screenshot in your first post. "NTFS found using backup sector, blocksize = 4096, 456GB / 424 GiB")

You may be better off connecting that HDD to a Windows 7 system, run TestDisk from Windows 7 and do a deeper scan. It may still find the backup boot sector and read from 512bytes/sector size . In such a situation it may be able to list the files.

EDIT: If you still want to persist on doing it in Windows 10, change the Sector size from 4096 to 512 in TestDisk and then do a deeper search. You may find the appropriate screenshots in this post Solved Win 8.1 x64 and raw file system on external USB drive If you are sure that it was an MBR disk, select [Intel], then [Geometry]. If the first line shows Sector Size = 4096, then change it to 512 and proceed. Please note in that reference we were trying to change it from 512 to 4096 but here you will be changing it from 4096 t0 512.
My System SpecsSystem Spec
06 Mar 2016   #6
mimo4019

Windows 10 Pro x64
 
 

Quote   Quote: Originally Posted by jumanji View Post
hmm... Since you aborted clean all after about 15 minutes, I presume that almost 75% (plus or minus) of your data may still be there. Please do the following:

This is only for exploration: Download, install and run GetDataback Simple Data Recovery Free demo version from here https://www.runtime.org/data-recovery-software.htm. ( Also read the How-to-Guides and Documentation on that page) Scan your 640GB drive.and check whether it shows all or some of your partitions and files in it.. That will be Level 1.

Attachment 382695

If Level 1 fails , try Level 2. Level 3 and then Level 4. Report the results. ( Post screenshots)


2. If it successfully shows your files - which however you may not be able to copy because it is only a trial version - you may try PhotoRec to carve out the files.

PhotoRec Step By Step - CGSecurity

Guide to using PhotoRec recovery software. ( Do not format your drive. I formatted only to show how PhotoRec can recover files even after formatting the drive. Straightaway go to the topic Recovery in it.)
Quote   Quote: Originally Posted by jumanji View Post
After going through your first post leisurely and having examined the TestDisk screenshots in depth, I may comment as follows.

TestDisk seems to have found atleast one partition of 456 GB. This could be your last data Partition.( Initially I thought it was showing your whole Disk)

Since you said that it had one 90GB Windows Partition, it becomes imperative to know 1. wherefrom that HDD came, 2. what Windows and bit version was on it and 3. How is it connected at present while you ran TestDisk.

If you are connecting the old 640GB HDD - which was an MBR drive that ran Windows 7 - now to a Windows 10, 64 bit system, you are complicating the whole issue of data recovery.

TestDisk had to dig out the NTFS boot sector from its backup to show you that 456GB partition, but it still failed to list the files because it is now running on Windows 10 and looking for data in 4096 bytes/sector size as ordained by Windows 10, 64bit. Atleast that is my thinking. ( Read the last line in the first TestDisk screenshot in your first post. "NTFS found using backup sector, blocksize = 4096, 456GB / 424 GiB")

You may be better off connecting that HDD to a Windows 7 system, run TestDisk from Windows 7 and do a deeper scan. It may still find the backup boot sector and read from 512bytes/sector size . In such a situation it may be able to list the files.

EDIT: If you still want to persist on doing it in Windows 10, change the Sector size from 4096 to 512 in TestDisk and then do a deeper search. You may find the appropriate screenshots in this post Solved Win 8.1 x64 and raw file system on external USB drive If you are sure that it was an MBR disk, select [Intel], then [Geometry]. If the first line shows Sector Size = 4096, then change it to 512 and proceed. Please note in that reference we were trying to change it from 512 to 4096 but here you will be changing it from 4096 t0 512.


Thanks jumanji for your reply. Unfortunaltely I've write the TestDisk result shown on my first post before reading your reply. However, I've made the process you've told me. You've asked some questions about the system:
1. This is the original HDD came with the laptop.
2. It was have Windows 10 Pro x64 upgraded from Windows 7 Pro x64 (Upgraded about 3 months ago).
3. The result of the first post result was using Hiren's Boot CD loaded into USB flash memory (The HDD was connected inside my laptop).

I've checked the sector size you mentioned and it was already 512 for DOS. Also, I connected the HDD to another computer using USB 2 adapter and performed quick and deeper scan under Windows 7 x64 and another scan under Windows 10 x64 with the same results (Now quick scan get the same result as deeper scan).
Here are the screenshots of the scan in Windows 10 (same as Windows 7):
Recover partition after aborted diskpart clean all command-6a8tjqebtzcoci3zg.jpg
Recover partition after aborted diskpart clean all command-i09vri122bdlxshzg.jpg
Recover partition after aborted diskpart clean all command-md1gi2q1lc6p784zg.jpg
Recover partition after aborted diskpart clean all command-nunpuna02t3fnpazg.jpg
Recover partition after aborted diskpart clean all command-8gikh0ispa268a3zg.jpg
Recover partition after aborted diskpart clean all command-u7v3oze6kfncpdezg.jpg
Recover partition after aborted diskpart clean all command-jjv18ntb81bq6tbzg.jpg

Regarding GetDataBack, I've run the four levels of scan. The first three levels result was two NTFS 425GB empty partitions. Level4 scan result was also two NTFS 425GB partition with two system folders inside them in addition to 3 NTFS 3MB partitions, some FAT12 partitions, and one FAT16 32MB partition which has one data folder of my work. Here are the screenshots:

Level1 scan:
Recover partition after aborted diskpart clean all command-w5ssgu57d6l577dzg.jpg
Recover partition after aborted diskpart clean all command-h2e1e9762g6fypszg.jpg

Level2 scan:
Recover partition after aborted diskpart clean all command-2n8l4dc84ikei7izg.jpg

Level3 scan:
Recover partition after aborted diskpart clean all command-vtkt4uz0b54gu7hzg.jpg
Recover partition after aborted diskpart clean all command-3hg24cu9w09xtv4zg.jpg
Recover partition after aborted diskpart clean all command-ccvhhp00552h0p8zg.jpg

Level4 scan:
Recover partition after aborted diskpart clean all command-vong9rannc44jnkzg.jpg
Recover partition after aborted diskpart clean all command-e7xb5r3md3lm2cczg.jpg
Recover partition after aborted diskpart clean all command-s7919dzoyhu8cpkzg.jpg
Recover partition after aborted diskpart clean all command-prlt316c4e17lggzg.jpg
Recover partition after aborted diskpart clean all command-7c1ffv4qni2rgvqzg.jpg
Recover partition after aborted diskpart clean all command-lozydca0c77n5dmzg.jpg

Should I do anything regarding the write I've mentioned in the beginning of this reply. Please advise for further process I should do.


Attached Thumbnails
Recover partition after aborted diskpart clean all command-6a8tjqebtzcoci3zg.jpg   Recover partition after aborted diskpart clean all command-i09vri122bdlxshzg.jpg   Recover partition after aborted diskpart clean all command-md1gi2q1lc6p784zg.jpg   Recover partition after aborted diskpart clean all command-nunpuna02t3fnpazg.jpg   Recover partition after aborted diskpart clean all command-8gikh0ispa268a3zg.jpg  

Recover partition after aborted diskpart clean all command-u7v3oze6kfncpdezg.jpg   Recover partition after aborted diskpart clean all command-jjv18ntb81bq6tbzg.jpg   Recover partition after aborted diskpart clean all command-w5ssgu57d6l577dzg.jpg   Recover partition after aborted diskpart clean all command-h2e1e9762g6fypszg.jpg   Recover partition after aborted diskpart clean all command-2n8l4dc84ikei7izg.jpg  

Recover partition after aborted diskpart clean all command-vtkt4uz0b54gu7hzg.jpg   Recover partition after aborted diskpart clean all command-3hg24cu9w09xtv4zg.jpg   Recover partition after aborted diskpart clean all command-ccvhhp00552h0p8zg.jpg   Recover partition after aborted diskpart clean all command-vong9rannc44jnkzg.jpg   Recover partition after aborted diskpart clean all command-e7xb5r3md3lm2cczg.jpg  

Recover partition after aborted diskpart clean all command-s7919dzoyhu8cpkzg.jpg   Recover partition after aborted diskpart clean all command-prlt316c4e17lggzg.jpg   Recover partition after aborted diskpart clean all command-7c1ffv4qni2rgvqzg.jpg   Recover partition after aborted diskpart clean all command-lozydca0c77n5dmzg.jpg  
My System SpecsSystem Spec
09 Mar 2016   #7
jumanji

Windows 7 Home Premium 32 bit
 
 

OK, I missed your post since it is under Backup and Restore.

Now your first post TestDisk Screenshot showed that TestDisk could find the partition with the backup boot sector. Your recent TestDisk screenshot does not show that. So obviously some change has taken place. Never mind. We shall start from scratch and see where we are.

Now please stick to one system.

Windows 7 ( 32bit or 64 bit does not matter but do indicate which one you are using)

Your laptop HDD connected externally with the SATA to USB adapter you had mentioned. Confirm.

Download, install and run MiniTool Partition Wizard 9.1 from MiniTool Partition Wizard | Best partition magic alternative for Windows PC and Server

Do a Quick Scan with Partition Recovery Wizard and post the screenshot of Partitions found Window.

Click on Cancel and quit PW.

If Quick San does not find any partition, do a Full Scan. If it finds any partition, post the screenshot of that Window. Again Cancel and quit PW.

Please upload the screenshots to SevenForums server. ( I refuse to go to a third party site to see it.)

Screenshots and Files - Upload and Post in Seven Forums
My System SpecsSystem Spec
09 Mar 2016   #8
mimo4019

Windows 10 Pro x64
 
 

Quote   Quote: Originally Posted by jumanji View Post
OK, I missed your post since it is under Backup and Restore.

Now your first post TestDisk Screenshot showed that TestDisk could find the partition with the backup boot sector. Your recent TestDisk screenshot does not show that. So obviously some change has taken place. Never mind. We shall start from scratch and see where we are.

Now please stick to one system.

Windows 7 ( 32bit or 64 bit does not matter but do indicate which one you are using)

Your laptop HDD connected externally with the SATA to USB adapter you had mentioned. Confirm.

Download, install and run MiniTool Partition Wizard 9.1 from MiniTool Partition Wizard | Best partition magic alternative for Windows PC and Server

Do a Quick Scan with Partition Recovery Wizard and post the screenshot of Partitions found Window.

Click on Cancel and quit PW.

If Quick San does not find any partition, do a Full Scan. If it finds any partition, post the screenshot of that Window. Again Cancel and quit PW.

Please upload the screenshots to SevenForums server. ( I refuse to go to a third party site to see it.)

Screenshots and Files - Upload and Post in Seven Forums
Thanks Mr. jumanji for your attention.
The available PC now is with Windows 10 x64. Should I install Windows 7 on it first or use Windows 10?
My System SpecsSystem Spec
09 Mar 2016   #9
jumanji

Windows 7 Home Premium 32 bit
 
 

OK, go ahead with Windows 10 and run Partition Recovery Wizard.
My System SpecsSystem Spec
12 Mar 2016   #10
mimo4019

Windows 10 Pro x64
 
 

Quick scan is now running since 15 hours ago (attached screenshot).

BTW, I'm willing to buy a new hdd for the laptop. After some search, I think that Seagate SSHD ST1000LM014 is a good choice for performance and cost. Do you agree or have a better suggestion?


Attached Thumbnails
Recover partition after aborted diskpart clean all command-pw-1_quickscan.jpg  
My System SpecsSystem Spec
Reply

 Recover partition after aborted diskpart clean all command




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Recover data from a diskpart > clean command
This must be my one time blunder but I did manage to clean my 2TB backup external HDD in an attempt to clean a pendrive to make a bootable pendrive for installing Windows 8. Now the help file for the diskpart > clean command says only the MBR partitioning information and hidden sector...
Backup and Restore
Recover Partitions from diskpart -> clean command
Hi Guys, I was trying to install windows 7 on my windows 8 laptop (UEFI) and when it didnt allow me to install win7 on partitioned drive I followed YouTube video foolishly and fired diskpart - clean command. everything gone after that. Luckily I didnt do anything after that and referred one of...
Backup and Restore
Recover data from diskpart > clean command
Hi everyone, with my luck I have accidentally executed diskpart > clean command on my 1tb external hard drive. I stopped right after though, realizing what i have done. Is it at all possible to recover the data from the hard drive? It had the personal data of my family - pictures, videos,...
Backup and Restore
Restore Partition/Recover Files after Diskpart clean & format
Hi all, I got myself into a bit of a muck here. While trying to create a bootable USB, I accidentally selected the wrong USB disk (my back up USB disk that contained the manual I was using), & ended up clearing it out. The exact commands I ran are as below:- Diskpart Select disk 1 (my bad...
Backup and Restore
Recover data from an accidental diskpart / clean command
Hey folks, What I did: Within CMD>diskpart>Select disk, i ran the clean (not clean all) command on a different drive than intended, (the goal was to recover a partition of a USB thumb drive), and ended up cleaning an external data drive (3TB), and would love to find out that my data is not lost....
Backup and Restore


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:52.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App