How to Resize a Partition in Windows XP by Using Command Prompt

Written by peter thomas
  • Share
  • Tweet
  • Share
  • Email

Windows XP comes with a command-line utility that allows you to manipulate hard drives and partitions. The DiskPart utility, which is short for "Disk Partition," offers the ability to manually resize any partition on the system. You may want to resize a partition to expand the amount of space available to a drive in Windows, or to shrink a drive prior to installing a new copy of Windows on another partition. You'll be able to accomplish the resize with only a few commands.

Skill level:
Moderately Easy


  1. 1

    Click "Start," "Run."

  2. 2

    Type "cmd" and press "Enter" to open the Command Prompt.

  3. 3

    Type "diskpart" into the Command Prompt and press "Enter."

  4. 4

    Type "list disk" and press "Enter" to get a list of system hard disks. When you see your disk on the list, type "select disk #" (where # is the number of your hard disk). Press "Enter."

  5. 5

    Type "list partition" to see all existing partitions on the disk. Press "Enter."

  6. 6

    Type "select partition #" (where # is the partition you wish to modify).

  7. 7

    Type "extend size=[+/-][megabytes]." For example, to subtract 100 megabytes type "extend size=-100," and to add 243 megabytes type "extend size=+243."

Tips and warnings

  • This command will only work with the NTFS partition type.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.