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

03 Jun 2014   #1
lonewolfs

Windows 10 Pro (64-bit)
 
 
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 information are overwritten. And I was able to realize what i did exactly after hitting the enter key on the clean command.

On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information are overwritten. On GUID partition table (GPT) disks, the GPT partitioning information, including the Protective MBR, is overwritten. If the ALL parameter is not used, the first 1MB and the last 1MB of the disk are zeroed. This erases any disk formatting that had been previously applied to the disk. The disk's state after cleaning the disk is 'UNINITIALIZED'.

While I am aware of the fact that any data recovery is not 100%, still I am looking for a sure-shot way to recover the data as I don't have any other drive clone the disk as a way of backing it up. So I am in need of a way which has maximum chances of recovering the data.
Some facts about the state of the drive are as under
  • I stopped exactly after hitting the clean command and no operation has been performed on the HDD after that.
  • The HDD has no partitions on it i.e. its a 2TB single partition.
  • I am running Windows 8.1 Pro
Is there any way I can recover my data?


My System SpecsSystem Spec
.
03 Jun 2014   #2
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

You did diskpart->clean? So not "clean all". So If the ALL parameter is not used, the first 1MB and the last 1MB of the disk are zeroed.

Was the 2TB partition originally created within win7/8?
The last 1MB is not a huge problem. Most likely it's free space. Or used by one useless file.

Where did the 2TB partition start? I mean what was the first sector of that partition? If it was below the 1MB boundary.... you're out of luck... it's overwritten with zeroes.

"To work around this issue specify a starting offset of 2,048 sectors (1 megabyte). A starting offset of 2,048 sectors covers most stripe unit size scenarios. This is the default for windows Vista and windows 7 and also adds support for GPT (guid partition tables)"
Win7/vista creates partitions starting at the 1MB boundary by default.
My System SpecsSystem Spec
03 Jun 2014   #3
lonewolfs

Windows 10 Pro (64-bit)
 
 

Its not a system boot disk but rather an external disk where I keep important files. And no It wasn't formatted by the Windows 7/8 setup. It was pre-formatted when I opened the box so my best guess is that it started from the beginning and extended up to the end of the drive. Its a Seagate GoFlex Desktop 2TB External USB 2.0 Drive
My System SpecsSystem Spec
.

03 Jun 2014   #4
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

How to perform lost partition recovery and deleted partition recovery under Windows? Partition Recovery Help.
Use "quick scan" and post a camshot of the results. It should find 1 very large partition (I hope) in only a few seconds.
My System SpecsSystem Spec
03 Jun 2014   #5
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by lonewolfs View Post
Its not a system boot disk but rather an external disk where I keep important files. And no It wasn't formatted by the Windows 7/8 setup. It was pre-formatted when I opened the box so my best guess is that it started from the beginning and extended up to the end of the drive. Its a Seagate GoFlex Desktop 2TB External USB 2.0 Drive
Preformatted as NTFS or FAT32?
My System SpecsSystem Spec
03 Jun 2014   #6
lonewolfs

Windows 10 Pro (64-bit)
 
 

It was pre formatted NTFS and quick scan by Partition Recovery Wizard didn't find anything quickly but rather its scanning the whole drive i am at 8% yet so it will take sometime.
My System SpecsSystem Spec
03 Jun 2014   #7
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

From Resizing NTFS problems for Seagate GoFlex Desk 2TB External USB 2.0 (Page 1) ? GParted ? GParted forum

path: /dev/sdd1
start: 63
end: 3907024127
size: 3907024065 (1.82 TB)
check file system on /dev/sdd1 for errors and (if possible) fix them 00:01:25 ( SUCCESS )

So 1.82TB (vendor calls is 2TB...quite normal). Start-sector=63 also quite normal in winxp and other OS'es. Sector 63=63*512=31.5kB. So before the 1MB boundary!!! I hoped for start sector 2048.
My System SpecsSystem Spec
03 Jun 2014   #8
lonewolfs

Windows 10 Pro (64-bit)
 
 

So most probably everything is lost? I'd still continue the scan and check if it can recover anything.
My System SpecsSystem Spec
03 Jun 2014   #9
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by lonewolfs View Post
So most probably everything is lost? I'd still continue the scan and check if it can recover anything.
Try TESTDISK .... very good software. But be carefull what you do!! cgsecurity.org ? View topic - Partitions, Filesystem, MFT all corrupt? explains a lot. Try to recover a partition that starts at sector 63 and is very large and is type NTFS. Use "Deeper search" if it isn't found.

Post camshot of results please.

After partition has been recovered you can do "Repair MFT" (also in manual). [if needed]
After that "Repais BS (boot sector)". [if needed]

Also usefull information Regain a lost drive using Test Disk - An Illustrated Guide
My System SpecsSystem Spec
03 Jun 2014   #10
lonewolfs

Windows 10 Pro (64-bit)
 
 

While it is still scanning it found 2 lost/deleted partitions which I don't suppose I had on my drive. Am I going the wrong way?

Recover data from a diskpart > clean command-scan.jpg


My System SpecsSystem Spec
Reply

 Recover data from a diskpart > clean command




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Disk - Clean and Clean All with Diskpart Command
How to "Clean" or "Clean All" a Disk with the Diskpart Command This will show you how to use the clean or clean all command on a selected disk to delete all of it's MBR or GPT partitions, volumes, and any hidden sector information on MBR disks is overwritten. The data on the HDD is not...
Tutorials
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
DISKPART clean performed accidently. how to recover data?
Hello everyone, I had major partition problems and tried fixmbr,fixboot,etc and even rebuilding bcd was not working. I was misguided by one of the other Forums and entered: DISKPART Select Volume 1 DISKPART Clean Volume 1 The Volume has been cleaned where volume 1 was my C...
General Discussion
diskpart / clean, format by accident , need to recover data
Hello, I know it's stupid but i diskpart/clean and formatted while installing windows from cmd, it's a new laptop so i had no other data just (i don't remember exactly) 100GB not more. i installed windows on that formatted disk. I had all data on D Disk (500GB) and now i have only one disk which...
Backup and Restore
Should I clean my HDD with Parted Magic or Diskpart clean all command?
Hi everyone i have a question about HDD Clean and also question about Win 7 64 bit :) I want to wiped out my all HDD data inside i want to delete all information like a brand new HDD. I heard that there is a program called Parted Magic can do this and also Diskpart clean all command too. ...
General Discussion


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 23:54.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App