Using Diskpart "clean"

Discussion in 'backup, imaging & disk mgmt' started by Brian K, Jan 13, 2016.

  1. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    8,634
    Location:
    NSW, Australia
    "clean" zeroes the sectors in the first and last MiB of the disk. If you aren't careful you can "clean" the wrong disk. I tried this with a UEFI Win10 system. A HD0 "clean". After "clean" there was no Protective MBR, no Primary or Secondary GUID partition tables. Win10 didn't boot.

    A complete fix is possible. Briefly...

    Undelete the partitions
    Create a GPT disk
    Edit the "Type" of the ESP and Recovery partitions
    Do a BCD Edit on the ESP

    Win10 now boots.
     
  2. Peter2150

    Peter2150 Global Moderator

    Joined:
    Sep 20, 2003
    Posts:
    17,040
    I've clean on USB flash drives. Operative word is careful.
     
Loading...