How to Create a Partition in DOS (9 Steps)

By Andrew Macauley

Install the browser plug-in for Safari and Firefox to browse websites using Silverlight on your Mac.
i Jupiterimages/ Images

Partitioning your hard drive can have numerous benefits. From allowing you to better manage your data by quarantining music and movie files from system files--which in turn will help keep you from losing all your media if you ever need to reformat--to allowing you to install a second operating system on the same drive, there are few reasons to not partition your hard drive. And if you have been having trouble with getting the process to work through Windows itself, using the DOS command prompt is a great way to get the job done.

Partitioning Your Hard Drive in the DOS Command Prompt

Step 1

Download DiskPart from, and follow the instructions to install if you are using Windows XP.

Step 2

Windows Vista and Windows 7 have DiskPart installed by default.

Step 3

Log in to your computer as an administrator and click the “Start” button.

Step 4

Click “All Programs” in Windows Vista or Windows 7. Click “Run…” in Windows XP.

Step 5

Click “Accessories,” right-click on “Command Prompt” and click “Run as Administrator” in Vista or Windows 7. Type “cmd” in Windows XP and press “Enter.”

Step 6

Type “diskpart”.

Step 7

Type “list volume”. Note the volume number of the drive you would like to partition, as well as the amount of space available.

Step 8

Type “select volume” and then the number of the drive you would like to partition and press "Enter." For example, if the drive you want to partition is labeled “Volume 2,” you would type “select volume 2” in the prompt.

Step 9

Type “shrink desired=” followed by the size you would like in megabytes, and “shrink minimum=” followed by the minimum size you want the drive to be if your desired size is too large.

For example, if you would like your new partition to be 11 gigabytes (GB), but need it to be a minimum of 7 GB, you would type “shrink desired=11000 minimum=7000” since 1 gigabyte is equal to 1000 megabytes.