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

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

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
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

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


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

Windows 8


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

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

Thread Tools

Similar help and support threads
Thread Forum
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
I am trying to do a diskpart/clean all via command prompt. Should the command prompt opened via repair menu at startup be at c:\windows\system32 or x:\sources or doesn't matter? Here is the tutorial that I am doing this according to: ...
General Discussion
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
DiskPart help
Ok i couldn't mark my D partition as active because there wasn't a "Mark as Active" in diskmgmt.msc. so i tried to do it in command Prompt like it is described here. But the problem is that there is 3 partitions listed...
Installation & Setup
Hi everyone. I have an external harddrive that is unreadable, so I used DBAN to clean it. I think it fixed the disk. Unfortunately, I cannot open it or assign a drive letter. I was trying to use diskpart, but it doesn't work. I am uploading a screenshot of the problem. Any assistance will be...
Hardware & Devices
Lost Dual Boot Screen?...Lost Windows 7
I have Vista Home Premium 64 bit and I downloaded 64 Bit RC Windows 7 and did a clean install on another partition of my hard drive. Dual boot was working for about 4 days then all of a sudden it doesnt come up any more. The partition is still there with Windows 7 installed on it but its not...
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 15:42.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App