Diskpart clean by mistake

dj_mez Posted messages 82 Status Member -  
dj_mez Posted messages 82 Status Member -
Hello,

Following a startup issue with my PC on W10, I tried various manipulations with DISKPART.
However, I typed CLEAN and realized that I no longer have any partitions.

How can I go back?

Best regards

3 answers

quentin2121 Posted messages 9063 Registration date   Status Member Last intervention   Ambassadeur 1 312
 
Hello,
Do it in cmd:
diskpart
list disk

let me know if your hard drive appears and its storage space

To be able to use this hard drive again, type:

- Run (Windows + R)
- Type cmd then press enter
- In the window that opens, type "diskpart"
- list disk
- select disk x (x being the number of the external hard drive)
- clean
- create partition primary
- format fs=ntfs quick
- active
- assign
- exit to quit diskpart

exit to quit command prompt

“Impose your chance, clasp your happiness, and go toward your risk. By looking at you, they will get used to it.” René Char
0
bazfile Posted messages 58484 Registration date   Status Moderator Last intervention   20 265
 
Hello,
There is no going back.

--
bazfile.
Moderator/Security Contributor.
A hello, a response, a thank you are always appreciated.
0
dj_mez Posted messages 82 Status Member 14
 
So, I found it, I'm posting it, it might be useful for others.

I used testdisk in version 13.2 of Hirens Boot CD.
To access it, once we have created the bootable USB stick (Rufus in my case), we boot from it and go to:
--> Mini Linux (Recovery Is Possible)
right-click --> applications --> Partitions Tools --> Testdisk
Then follow the steps here
https://www.cgsecurity.org/wiki/TestDisk_Etape_par_Etape

I recovered my partitions.

I return to my first problem, blue screen: Recovery, error 0xc000000e.
0