Use DiskPart to Clean and Format a Drive

  1. Run Command Prompt as an Administrator
  2. Type diskpart and hit Enter
  3. To see all drives connected to the machine, use the list disk command
  4. Select the drive you’d like to fix by typing select disk # where # is the number shown from the list disk command
  5. With the disk selected, use the clean command to wipe it
  6. To create a new partition on the drive use the command create partition primary
  7. Select your new partition by using select partition 1
  8. Activate the partition by using active
  9. Format the partition using NTFS using format FS=NTFS label=MyDrive quick (note that MyDrive can be any valid label)
  10. Assign a letter to the drive using assign letter=Z (note that Z can be any unused drive letter)
  11. Exit DiskPart using exit

Published in .