DiskPart is a command-line disk partitioning utility included with all Microsoft Windows operating systems built on the New Technology, or NT, kernel. This utility allows you to perform a variety of tasks, including creating, deleting, resizing, enabling and disabling partitions and volumes. After you create a new partition on a disk, Windows will not recognise it as enabled unless it's online and assigned a drive letter. You can do both in DiskPart. For each command listed, do not include the quotation marks or commas.
- Skill level:
- Moderately Challenging
Other People Are Reading
Log into Windows using an account with administrator rights.
Click "Start," and position your mouse cursor in the "Search" box.
Type "cmd," and press "Enter."
Type "diskpart," and press "Enter."
Type "list disk," and press "Enter." Use the list that displays to determine the physical disk number containing the partition you wish to make into an enabled disk. As a guide, Disk 0 is your master drive and contains your system partition -- it's always online.
Type "select disk=x" (substitute "x" for the physical disk number you want), and press "Enter."
Type "online disk" and press "Enter." The utility will bring the disk online and issue a confirmation message.
Bring the Disk Online
Type "create partition primary size=xxxx" (substitute "xxxx" for the size you want in megabytes) in DiskPart and press "Enter." If you want the partition to take up all the remaining space on the physical disk, leave out the "size=xxxx."
Type "format fs=ntfs" and press "Enter." DiskPart will format the new volume (disk), and output a "success" message when finished.
Type "list volume" and press "Enter." If your new volume has a drive letter assigned to it, you've successfully enabled your disk.
Create Volume and Enable
Tips and warnings
- Do not confuse DiskPart with Diskpart (note the lack of capitalisation). Diskpart is a "light" version of DiskPart included with Microsoft XP's Recovery Console and Windows Vista and 7's Windows Recovery Environment. You can only create and delete partitions with this "light" version. Additionally, do not confuse the meaning of the DiskPart command "active." This command will not "activate" your disk; it will set the selected partition as "active." An active partition is where your computer boots from, and only one may be active at a time. If you set a non-bootable partition as "active" your computer will not boot.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for