Friday, March 25, 2016

How To Use Diskpart To Clean/Partition/Format HDD/SDD/USB/SD On Windows 10

QUICK STEPS:

  1. Run 'cmd' as administrator - click 'Yes' if UAC pops up

  2. In command window run 'diskpart'

  3. Execute 'list disk'

  4. Select the correct disk by executing 'select disk x' (x = disk number)

  5. Clean disk by executing 'clean'

  6. OPTIONAL: Convert to MBR by executing 'convert mbr'

  7. Create primary partition by executing 'create partition primary'

  8. Select the partition by executing 'select partition 1'

  9. OPTIONAL: Make partition active by executing 'active'

  10. Format partition by executing 'format fs=[fs] label=[label] quick' (where [fs] = filesystem and [label] = new label name)

  11. OPTIONAL: Assign a drive letter by executing 'assign'

  12. Exit diskpart by executing 'exit'

  13. Exit cmd by executing 'exit'


DETAILED STEPS:

  1. Right click on 'start' button and click on 'Command Prompt (Admin)'.

  2. If UAC pops up, click on the 'Yes' button.

  3. In the command window, type 'diskpart' and press the 'Enter' key.

  4. Type 'list disk' and press the 'Enter' key.

  5. From the list of disks displayed, identify the disk that you want prepared. If unsure, use the 'Control Panel' (click on 'System and Security' then on 'Create and format hard disk partitions') to identify the correct disk. MAKE SURE THAT YOU IDENTIFY THE CORRECT DISK!

  6. Type 'select disk x' (where x = disk number) and press the 'Enter' key.

  7. Type 'clean' and press the 'Enter' key, in order to clean the disk. All the existing partitions and formatting will be deleted.

  8. OPTIONAL: If the disk was previously set up as a GPT disk, you can convert it back to MBR by typing 'convert mbr' and pressing the 'Enter' key.

  9. Type 'create partition primary' and press the 'Enter' key, in order to create one primary partition.

  10. Type 'select partition 1' and press the 'Enter' key, in order to select the primary partition.

  11. OPTIONAL: To make the primary partition as the active partition (i.e, the 'boot' partition), type 'active' and press the 'Enter' key.

  12. Type 'format fs=[fs] label=[label] quick' (where [fs] = filesystem and [label] = new label name) and press the 'Enter' key, in order to format the primary partition. (NOTE: Screenshot shows NTFS as the filesystem and 'new-hdd' as the new label.)

  13. OPTIONAL: Type 'assign' and press the 'Enter' key, in order to assign a drive letter to the disk.

  14. Type 'exit' to exit (quit) the diskpart program.

  15. Type 'exit' to exit (quit) the command window.


URL of official guide:


For a more detailed information on 'diskpart', go to https://technet.microsoft.com/en-us/library/cc766465(v=ws.10).aspx.

No comments:

Post a Comment