How can I use DiskPart to extend a volume?

Learn how to use DiskPart to extend a volume.

John Savill

March 17, 2003

1 Min Read
How can I use DiskPart to extend a volume?

A. You can use the DiskPart utility from the Windows 2000 Server Resource Kit or the Win2K Professional Resource kit to extend an existing volume by performing the following steps:

  1. Download the DiskPart utility from the Microsoft website, then install it on your computer.

  2. Go to Start, Run, then type

    cmd

    to start a command-line session.

  3. Type

    diskpart

    to start a DiskPart session.

  4. Type

    list volume

    to list the current volumes. The list will look like

       Volume ### Ltr Label Fs Type       Size  Status   Info   ---------- --- ------------------- ----- -------- -------   Volume 0   C   NTFS Partition      10 GB Healthy  System   Volume 1   D   Data NTFS Partition  9 GB Healthy  Pagefile 
  5. Type

    select volume 

    to select the volume you want to extend.

  6. Type

    extend

    to extend the selected volume. If you don't pass any parameters, DiskPart will use all unpartitioned space on the current disk. Alternatively, you can type

    extent size= disk=

    to set a size and disk to use for the extension.

  7. Type

    exit

    when you're finished.

You can extend only volumes created on a dynamic disk, not volumes created on a basic disk that you've upgraded. If you try to extend volumes created on a basic disk, you'll receive the error "DiskPart failed to extend the volume. Please make sure the volume is valid for extending."

Learn more from "Initializing Windows Disks with DiskPart."

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like