Format disk with diskpart

Posted on 13.10.16   diskpart Storage

Below is a quick guide to illustrate how we can format a disk using diskpart.

First open the command prompt (if booting from Windows install media you may be able to open the command prompt by pressing F8 or Shift+F10).

In your command prompt, type diskpart to enter the diskpart utility. Your input cursor should now look like DISKPART> and you are ready to run the commands below:

// list all disks connected to your computer
list disk

// select the disk you wish to format. Replace X below with the number you see from list disk
select disk X

// marks everything on the disk to be deleted
// you could also use "clean all" to actually delete it, but this will take a while

// convert disk to MBR - you could also change mbr with gpt
convert mbr

// create a new primary partition
create partition primary

// select the newly created partition
select part 1

// make it active if this is the boot partition

// format it to NTFS fileystem and set label to whatever you wish
format fs=ntfs label=X quick

// assign a letter to the partition, typically C for the Windows drive
assign letter C

// list volumes to verify the results
list vol

For more information about Diskpart, see:

More on ITDB

Managing WiFi profiles in Windows 10

Fix twitchy/wobbling touchpad for Ubuntu based distributions

Create a cmd alias/shortcut for issuing commands on remote computer

Turn off CTRL + ALT + DEL at login prompt Windows 10

How to debug a non starting application with ProcMon