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: Lost EVERYTHING by using 'diskpart - clear'. Help??

23 Mar 2014   #1
MrJay7891

Windows 8
 
 
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.

Long story short, I was preparing to install Windows 8 and decided to put all my data on a separate partition. I already had 2 other separate partitions filled with other data too. So I got to the start of the installation when I got the error message 'Windows cannot be installed on this disk. The selected disk is of the GPT partition style'. I then looked up how to resolve this and mistakenly chose the method of using the Command Prompt and typing 'diskpart' > list disk > select disk 0 > clean. (I now know I should have entered convert mbr). After that I saw all the partitions I had created had disappeared, I tried to restart my computer but I can only assume my installation of windows 7 had gone too because it wouldn't start up, I got an error saying the was no boot disk or something like that. So I had to do a clean install of Windows 8.

I have tried using TestDisk and Find and Mount but with no luck. I'm pretty sure your replies are going to confirm my worst fears but I want to be absolutely sure there is nothing else I can do to recover what has been lost.

Thanks all.


My System SpecsSystem Spec
.
23 Mar 2014   #2
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

You could try partition recovery module on the free Home version of partition wizard ( PW). If you can't get into windows, use the PW boot disc.

Best Free Partition Manager Freeware and free partition magic for Windows 7, Windows 8, Windows Vista and Windows XP 32 bit & 64 bit. MiniTool Free Partition Manager Software Home Edition.
My System SpecsSystem Spec
23 Mar 2014   #3
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Sad story that proves again how important backups and images are. If those files were precious for you and you did not back them up, you did it to yourself, The OS is easy to replace, but personal files are not.

Try the program SIW2 suggested. There is also Recuva. That may work because you did only a clean and not a clean all. That means all the data is still on the disk but the control records are wiped. That's where Recuva comes in.

Recuva - Undelete, Unerase, File and Disk Recovery - Free Download
My System SpecsSystem Spec
.

24 Mar 2014   #4
jumanji

Windows 7 Home Premium 32 bit
 
 

This is what I will do. :)

Doing diskpart clean only writes zeros in the first sector ( more conventionally called as Sector 0)

In the case of a GPT disk sector 0 contains Protective MBR. And all GPT disks whether single partition or multiple partitions contain only the data highlighted in the following screenshot. ( Taken with Bootice Sector Edit.)

Lost EVERYTHING by using 'diskpart - clear'. Help??-24-03-2014-11-57-45.jpg

On a four partition GPT disk, I deliberately wrote all zeros in the first sector (as the OP did mistakenly) and lost my drive. Not initialised, online, Unallocated. Unfazed, Using bootice, Sector Edit I wrote the relevant data in the correct fields and saved it to the first Sector.

Populating the relevant fields:

Lost EVERYTHING by using 'diskpart - clear'. Help??-24-03-2014-12-26-35.jpg

Voila, I got back my disk. Doesn't take much time. Very few characters (28 to be specific) to type in and then hit save.

(Note: In OP's case he has to attach the drive as a second drive on a PC or put it inside an HDD enclosure and recover.He also says that he had gone ahead and installed Windows 8. What he did to install Windows 8 ( on the same drive ?) is not known. So I would think that taking out the drive and trying data recovery whether he wants to go with Partition Wizard/Recuva or this method is the best option. I only wish he had come here before installing Windows 8. May be I hurried to present this method :), but this should be of help to anyone who has done this on an external drive.)


My System SpecsSystem Spec
24 Mar 2014   #5
gregrocker
Microsoft MVP

 

Partition Wizard Partition Recovery Wizard - Video Help.

This will always work if you only ran Diskpart CLEAN command, as long as you didn't format.


Not having files backed up is reckless.
My System SpecsSystem Spec
24 Mar 2014   #6
MrJay7891

Windows 8
 
 

SUCCESS!!!

I can't tell you how relieved I am to have found everything again. I used a recovery software called EaseUS Data Recovery Wizard. I did a partition recovery scan and there they were, all my old partitions containing all the files I thought were gone for good. Phew!! I've definitely learnt my lesson now, I'm planning on purchasing an external hard drive to back up everything, just to be on the safe side, I'm not risking that again.

Thanks to those who replied. :)
My System SpecsSystem Spec
Reply

 Lost EVERYTHING by using 'diskpart - clear'. Help??




Thread Tools




Similar help and support threads
Thread Forum
Accidentally started diskpart format on 2TB external drive, lost data
Hey everyone. A few days ago, I accidentally formatted my external HDD with close to 2TB of data on it, which I obviously have no backups of. Suffice to say, I'm panicking right now, and would appreciate some help recovering as much as of the data as I possibly can - ideally all of it. I...
Hardware & Devices
Accidental Used Diskpart - Clear Command. How To Revert
I have accidentaly used the 'clear' command of diskpart. I have tried Minitool Power Dat6a Recovery but I see my small partitions but not my main one? What can i do to get these back?
General Discussion
HDD Data lost, Diskpart Clean and Create Partition Primary Commands
Good day, afternoon, night. As the title explains I was trying to create a new primary partition in my Hard Disk Samsung HM500JI that I use as External Disk with an Acteck Enclosure USB 2.0 and with DISKPART I selected the Small Partition recently created and used the command "clean" (thinking...
Backup and Restore
how regain lost session lost favorite file due to currupt
my system window 7 IE 11 ;is set to reopen last open tabs after any reboot etc. this time due to freeze ; I ended task at task manager thereby all open tabs got lost ; were told the folder for them should be favorite htm ;how do I find it ??? saved to favorites file ,renamed and moved...
Browsers & Mail
Lost my HP Touchsmart LOGO since I lost resetted my BIOS (I guess)
Hi All I have a HP Touchsmart 300-1060a (Home Premium Windows 7 64 BIT) which I bought few years back. Now for the last 6 months or so I started getting issues with my machine was not displaying anything at all after turning it on. So I had to hard reset my power from the machine and then...
Hardware & Devices


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