Skip to main content

Partitions

A logical division of the available space on a hard disk drive, carved out to save data. It can take one of two partition styles, MBR or GPT.

Partition Creation w/ DISKPART

DISKPART is Windows' command line interface for the management and configuration of mounted volumes. You can access DISKPART with Administrator privileges via PowerShell or Command Prompt.

CMD > diskpart (Will prompt the UAC menu, requires Administrator privileges.) CMD > list disk CMD > select disk [int|index] (If the selected disk is offline, enable it with the command online disk after selecting it.)

  • If using MBR, convert the selected disk to use the MBR partitioning format with the command convert mbr. CMD > create partition primary [size=[int]] (If partition size not specified, DISKPART will use the entire disk.) CMD > list partition (Prints all the partitions within the selected disk.) CMD > format FS=[NTFS|fat|fat32] label=[string] quick (Formats all partitions within the disk to use the selected file system)
  • If using GPT, select the partition to format with the command select partition x. You can find which partition to select by listing them with list partition. CMD > assign letter [string] (Assign a drive letter to the new volume.)