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: Accidental Used Diskpart - Clear Command. How To Revert

27 Dec 2012   #31
Pedroc1999

Windows 7 Ultimate x86
 
 

Im pretty dissapointed... it once again found my 3 but not my 4th along with about 5-7 other 'boot' partitions about 3mb big. What should i do! I had 4yrs worth of pictures on that drive!


My System SpecsSystem Spec
.
27 Dec 2012   #32
Kaktussoft

Microsoft Community Contributor Award Recipient

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

Quote   Quote: Originally Posted by pedroc1999 View Post
Im pretty dissapointed... it once again found my 3 but not my 4th along with about 5-7 other 'boot' partitions about 3mb big. What should i do! I had 4yrs worth of pictures on that drive!
your 3 partitions recovered succesfully? Do what I asked you to do in post 20
My System SpecsSystem Spec
27 Dec 2012   #33
Pedroc1999

Windows 7 Ultimate x86
 
 

I only recovered 1 as the others i was going to delete anyway. Il do it now....
My System SpecsSystem Spec
.

27 Dec 2012   #34
Pedroc1999

Windows 7 Ultimate x86
 
 

BTW it is a FAT32 Format...

1682648163

that is the first sector
My System SpecsSystem Spec
27 Dec 2012   #35
Kaktussoft

Microsoft Community Contributor Award Recipient

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

Quote   Quote: Originally Posted by pedroc1999 View Post
BTW it is a FAT32 Format...

1682648163

that is the first sector
If partitions are aligned at MB boundary it starting sector is multiple of 2048. 1 sector is 512 bytes, so 2048 sectors= 1 048 576 bytres=1MB

1682648163 isn't dividable by 2048!! So not aligned. I think partition 1 is also not aligned and starting before 1MB boundary so cleared by "diskpart clean" command. And many relevant information is at beginning of partition.
  • How can WIN7 or PW know it's an NTFS partition?
  • How does it know which blocks belong to a file if the mapping has been lost?
You can try recovery software, but most (maybe all?) can only recover/repair a partition (and you don't know where it was).

Why the heck did you do the "diskpart clean" command? And why didn't you make backups?
My System SpecsSystem Spec
27 Dec 2012   #36
Pedroc1999

Windows 7 Ultimate x86
 
 

I was following a tutorial on how to make a bootable usb drive with win7 and only noticed i ran the command after it happened. There was no warning what so ever about it clearing my mbr. Is there any hope. Maybe a more advanced partition recovery that will look where the mbr should be for one?
My System SpecsSystem Spec
27 Dec 2012   #37
Kaktussoft

Microsoft Community Contributor Award Recipient

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

Quote   Quote: Originally Posted by pedroc1999 View Post
I was following a tutorial on how to make a bootable usb drive with win7 and only noticed i ran the command after it happened. There was no warning what so ever about it clearing my mbr. Is there any hope. Maybe a more advanced partition recovery that will look where the mbr should be for one?
MBR consist of
  • Master Boot Code: Generic code that looks for an active partition. It jumps to bootcode on that partition. This code can easy be regenerated. But this is not a problem in your case.
  • Partition table: Start sector of partition, number of sectors, partition type (for example NTFS).
  • Disk signature: Sort of bar code ... it uniquely identifies the disk. If you swap two physical disks, win7 still knows where it is. But this is not a problem in your case.
Only real problem is that the MBR (first 512bytes on physical disk) has been overwritten with zero's. Recovery software knows how NTFS, FAT etc works and how the first few blocks of such partitions look like. If it finds one it can update partition table and it's fine.

But you zeroed more than first 512bytes! You zeroed first 1MB. In that area was the first part of 1st partition.
My System SpecsSystem Spec
27 Dec 2012   #38
Pedroc1999

Windows 7 Ultimate x86
 
 

So basicly there is no start to my partition.... Only an end...
My System SpecsSystem Spec
27 Dec 2012   #39
Kaktussoft

Microsoft Community Contributor Award Recipient

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

Quote   Quote: Originally Posted by pedroc1999 View Post
So basicly there is no start to my partition.... Only an end...
End position is also unknown yet. Most likely it's ending one sector before start of second partition. Start sector is most likely 63.
My System SpecsSystem Spec
27 Dec 2012   #40
Pedroc1999

Windows 7 Ultimate x86
 
 

so... what if i specify the search rang from 0 to the start of partition 2, would it find anything or just nothing
My System SpecsSystem Spec
Reply

 Accidental Used Diskpart - Clear Command. How To Revert




Thread Tools




Similar help and support threads
Thread Forum
Data Recovery after using diskpart clean command
Hello! I wanted to install a fresh windows and here's what happened in details: 1. I couldn't install windows 7 on C Drive because it was a GPT partition (the error message stated that). 2. I followd a tutorial and i used diskpart but i selected partition 1 and then issued the clean command. I...
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
Used diskpart-clean command on sd card? Help
Hello all! Im in desperate need of some help!! Long story short, my micro SD card was in an adapter on my PC, working fine, and suddenly i got an error message, saying it needed to be reformatted. I STUPIDLY trusted a youtube video that brought me to command prompt-diskpart. From there i ended...
Music, Pictures & Video
Deleted HDD files using diskpart command
Hello In an attempt to create a windows 7 bootable USB I've deleted my HDD (it was late and in a hurry :cry:). I have 2 drives connected: 1'st is an SSD drive - for main windows, 2'nd is a 1TB HDD drive western digital splitted in two partitions. The commands i've runned are: diskpart, list...
Backup and Restore
Lost EVERYTHING by using 'diskpart - clear'. Help??
Hi guys, I am pretty sure I have lost everything and there is no way of getting back, but still I am reaching out to you all as a last resort. I am so depressed right now, I have lost so many important documents, along with pics and videos of my son. I know it's my own stupid fault though. ...
Installation & Setup


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 11:43.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App