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


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.
  • Thanks, but I have a little understanding on these, can you please specify some steps.. – ruben Sep 11 '12 at 15:54
  • This assumes they need to recover data, not just get the drive back up. For recovery, Testdisk rocks. But beware that if your drive was pretty full then it may take days to recover all the data on it. It is also likely to be in a random order, not in the nice, neat folders you may have had. – techturtle Sep 11 '12 at 16:10
  • 1
    YESS!! It is back :) – ruben Sep 11 '12 at 16:10
  • 1
    Excellent, it is always nice when we can so easily undo. LOL – d4v3y0rk Sep 11 '12 at 17:25
  • This is true. Back up your data. – Marcks Thomas Sep 11 '12 at 21:34

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.
  • 1
    Hey you said format? I have datas in the portable!! – ruben Sep 11 '12 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.