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 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
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
BSOD on command diskpart, rescan, error 0xfffff880009a97e8
Hello i'm new here, and english isnt my main language, so i was trying to read on how to create the BSOD dump file, but how i'm supposed to do that if i can't get into windows 7 to install that software or change anything? My system is complete unacessible. I was trying to recover one harddrive...
BSOD Help and Support
DISKPART throwing I/O error at create partition command
Hi, My laptop doesn't boot from hard disk anymore. So I tried to start system with Windows 7 installation DVD and ran DISKPART. It recognized disk 0 but when I execute "create partition primary size=80000" it runs for sometime and displays that it is not able to execute the operation...
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 17:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App