How to Merge With DiskPart

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
A CD in a laptop's drive
Image Credit: Ramiraise/iStock/Getty Images

DiskPart is a simple partition management system included with Windows Vista and 7. The program works through a command line interface similar to MS-Dos and lets you perform additional tasks not offered through the normal Disk Management interface. With DiskPart you can extend volumes to assimilate unallocated space. This makes it possible to merge with DiskPart by first freeing the space from a volume you no longer need and allocating it to the desired partition.

Advertisement

Step 1

Copy any files located on the drive where you are going to free the space to an external hard drive, DVD, CD or other partition.

Video of the Day

Step 2

Open the "Start" menu. Type "diskpart.exe," then click the link in the results pane.

Advertisement

Step 3

Type "list volume" without the quotes at the command prompt.

Step 4

Type "select volume (number)" without the quotes to select the volume you no longer need. Replace "(number)" with the number beside the desired volume as listed in the DiskPart window.

Advertisement

Step 5

Type "delete volume" (without the quotes) to delete the selected volume and free up the space.

Advertisement

Step 6

Type "select volume (number)" without the quotes to select the volume you want to merge with the free space. Replace "(number)" with the number beside the desired volume as listed in the DiskPart window previously.

Step 7

Type "extend" without the quotes to merge all of the free space with the specified volume.

Video of the Day

Advertisement

Advertisement

references & resources