Undo the CLEAN command on the portable hdd : DISKPART

17,635

Solution 1

testdisk might be able to fix that.

  1. Download System Rescue CD (live cd) and burn it to a disk or just download testdisk
  2. run testdisk
  3. choose to create a log file
  4. choose the disk that you ran clean on
  5. choose intel
  6. choose analyze
  7. choose quick search
  8. confirm to preceed
  9. testdisk should find the deleted partition
  10. confirm to save the partition table.
  11. check for files.

Solution 2

If there's data on the disk that needs to be recovered, don't do this!

You'll need to recreate a partition and format it. Diskpart is capable of doing both:

  • select disk 1 or whatever number refers to your hard drive, use list disk to find out.
  • create partition primary will create one large partition. Use help create partition primary for more options.
  • select partition 1
  • format quick to create the file system. Once again, check help format for more options.
Share:
17,635

Related videos on Youtube

pranav malayil
Author by

pranav malayil

Updated on September 18, 2022

Comments

  • pranav malayil
    pranav malayil almost 2 years

    When using DISKPART I accidentally used the CLEAN command on my portable WD 500gb HDD. Now it is not showing as a drive in my computer, though shows as unallocated space in Disk Management.

    Thanks for your help

  • pranav malayil
    pranav malayil almost 12 years
    Thanks, but I have a little understanding on these, can you please specify some steps..
  • pranav malayil
    pranav malayil almost 12 years
    YESS!! It is back :)
  • pranav malayil
    pranav malayil almost 12 years
    Hey you said format? I have datas in the portable!!
  • d4v3y0rk
    d4v3y0rk almost 12 years
    Excellent, it is always nice when we can so easily undo. LOL
  • Marcks Thomas
    Marcks Thomas almost 12 years
    This is true. Back up your data.
  • Blue Smith
    Blue Smith over 11 years
    Thanks @DaveYork so much, your tip saved my data and my life :D
  • om252345
    om252345 almost 11 years
    @DaveYork on my laptop internal hard disk, I ran clean command on disk 1 i.e. My entire data is gone, there is lots of code, pictures of my life, I do not have any backup. Now I do not have Windows installation on my laptop,.please tell me how can I recover all data, I can not loose data.
  • LoneWOLFs
    LoneWOLFs about 10 years
    I did exactly this but it didn't detect my lost partition on the drive any idea what would have gone wrong? I am pretty sure I didn't write anything on the drive. :(
  • d4v3y0rk
    d4v3y0rk about 10 years
    how exactly did you lose the partition?
  • Muhammet Ali Asan
    Muhammet Ali Asan over 8 years
    You saved my life sir :) I got all my files back in the fastest way