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 data from a diskpart > clean command

23 Jun 2014   #51
jumanji

Windows 7 Home Premium 32 bit
 
 

Since we are not running a scan, you can close and run TestDisk any number of times.

Only thing make sure to select the correct faulty external drive everytime.

Wait for instructions and do not attempt to do things on your own.


My System SpecsSystem Spec
.
23 Jun 2014   #52
lonewolfs

Windows 10 Pro (64-bit)
 
 
No partitions available

Hi,

I can't see any partitions in there. It says "No partitions available". Pasting a snap below

Recover data from a diskpart > clean command-testdisk.png


My System SpecsSystem Spec
23 Jun 2014   #53
jumanji

Windows 7 Home Premium 32 bit
 
 

OK. That would mean something more than just diskpart clean has happened wiping the partition clean.

By that I mean the volume boot record that should exist in LBA 63.Let us see whether there is any trace of it.

( At the moment I am thinking that there is no way to recover any data. May be you have to format your drive and then we have to try data recovery from a formatted drive. Even with this there is no guarantee you will be able to recover any data. I am only sounding you to get prepared for that.We will keep it as the last option. Not now.)

Right now I am zeroing my 750GB drive to carryout a small experiment. I plan to format the full capacity and then do a disk part clean. With Bootice I shall check what changes have taken place in the relevant LBAs.. If it doesn't correlate with the LBAs on your drive, my first statement is confirmed. I may not finish the experiment before tomorrow evening. I shall post my findings then.

Right now run bootice, select your external drive, and then Sector Edit. Click on the the Sector Indicator Field (where it shows 0 now) to bring a Window where you will type 63 and press OK. This will show LBA 63 in the disk map. Post a screenshot of LBA 63. You may do it now and upload.
My System SpecsSystem Spec
.

23 Jun 2014   #54
Anshad Edavana

Windows 7 Ultimate x64
 
 

@Jumanji

The sector dump he uploaded in post Recover data from a diskpart > clean command can be open in "Winhex". That is full of zeros - other than the disk signature and MBR magic number on sector 0. May be the disk was GPT partitioned ?.
My System SpecsSystem Spec
23 Jun 2014   #55
Anshad Edavana

Windows 7 Ultimate x64
 
 

There is an easy way to view that sector copy just like an actual disk. First rename "Mbrsect.txt" to "mbresect.img". This will convert the hex dump to a "dd" like disk copy. Then download freeware hex editor "HxD" from HxD - Freeware Hex Editor and Disk Editor | mh-nexus

Open "HxD" and choose Extras --> Open Disk Image. HxD interface is much similar to "BOOTICE". You can simply type the sector number 63 to jump to it.
My System SpecsSystem Spec
23 Jun 2014   #56
jumanji

Windows 7 Home Premium 32 bit
 
 

Yep. I already have HxD on my desktop. Have used it many times and forget.

I don't think the disk was GPT. Why would anyone want GPT on a 2TB drive with only a single partition?

Anyway I shall check on that too.
My System SpecsSystem Spec
23 Jun 2014   #57
Anshad Edavana

Windows 7 Ultimate x64
 
 

@Jumanji

I just did a quick test on a virtual machine. Installed "Windows 7" and then did a DISKPART CLEAN operation. Guess what, entire first sectors are completely empty. At sector 2048 i can see NTFS boot sector of 100 MB "System Reserved" Partition.

I don't think "Seagate" will create partition on sector 63 which is unaligned. Probably the partition was started at sector 2048 just like any modern HDD. The sector dump uploaded by OP doesn't seems to contain sector 2048 ( it is from LBA 0 to LBA 2047). It may worth a try to inspect the contents of sector 2048 but i leave the decision to you.
My System SpecsSystem Spec
23 Jun 2014   #58
jumanji

Windows 7 Home Premium 32 bit
 
 

I would think what you have aforesaid is applicable in a Windows 7 system disk with System Reserved partition. "The "RELATIVE" offset of the first partition is 2048 sectors; instead of the usual 63"

In all other cases including an external HDD the first partition boot record will be bang on absolute sector 63, Sector 64 if we start counting from 1. ( damn it, this always confuses me the absolute and as we count.)

I don't have a system reserved partition and the first active partition on my system disk is bang on 63.

Recover data from a diskpart > clean command-24-06-2014-08-19-37.jpg

EDIT:Thanks Anshad, as you mentioned in your post#57 I opened OP's mbrsect.img in HxD and Sector 63 is all zeros. So no trace of partition boot record. ( I do things very slowly. )


My System SpecsSystem Spec
24 Jun 2014   #59
Anshad Edavana

Windows 7 Ultimate x64
 
 

Quote:
I would think what you have aforesaid is applicable in a Windows 7 system disk with System Reserved partition. "The "RELATIVE" offset of the first partition is 2048 sectors; instead of the usual 63"
Actually it depends on the partitioning tool. All modern partitioning tools are by default creates only aligned partitions. I did another quick test to confirm. Wiped all partitions and used DISKPART from Windows install disk to create a single Primary partion. This will avoid creation of "System Reserved". The partitions seems to be started on LBA 2048. Then again cleaned that disk and used "Partition Wizard" Windows edition to create a primary partition. It also created partition starting at LBA 2048. By default "Partition Wizard" Windows edition creates first partition as "MB Aligned" or at LBA 2048.

Interestingly "Partition Wizard" bootable CD seems to create first partition as "Cylinder Aligned" or at sector 63. So if i assume correctly, you used either "Partition Wizard" bootable disc or XP setup to avoid creation of "System Reserved".

Here is some snapshots which shows the difference :


Attached Thumbnails
Recover data from a diskpart > clean command-windows-edition.png   Recover data from a diskpart > clean command-bootable-cd.png  
My System SpecsSystem Spec
24 Jun 2014   #60
lonewolfs

Windows 10 Pro (64-bit)
 
 

Ok Jumanji your last post makes sense now. And yes my disk is an external HDD, Segate GoFlex Desktop USB version from like 2 years back, so the partition must have started from LBA63 and not from LBA2048. I've used every tool out there to scan the disk but all of them have failed to show any kidn of hope. Does this mean that I've lost too much data to rebuild the partition?

I've EaseUS Partition manager which has some partition recovery tools but as of now from what i've learnt all of the softwares are showing same results. So I doubt scanning by EaseUS would make any kind of difference.

Seems the clean command is indeed a powerful tool

Is there anything more we can do?
My System SpecsSystem Spec
Reply

 Recover data from a diskpart > clean command




Thread Tools




Similar help and support threads
Thread Forum
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...
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
CLEAN Diskpart´s victim ,how to recover data?
Hi everyone I wanted clear the 1st partition (of 3) of my notebook , and ..was the Disaster :cry: whole 250 Gb was gone in one click. All my documents and photos..my life, since i was a child is there .. and i havent backed up it .. so i really need your help guys. I´ve seen some...
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 10:43.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App