Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


Return to article

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 Web site, 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 <volume number>
    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=<size in MB> disk=<disk number>
    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."







Reader Comments

Thank you for this article. I was searching for a good partition program to resize my disks and the darn thing was right under my nose in Windows XP Pro. I'll be damned. Search over and I didn't have to spend a dime or download a big weighty program. I may still look for a small, light disk partitioner and resizer with a gui. Thanks again Brian

Brian Hooder -April 03, 2004

This is great info!

Anonymous User -December 28, 2004

Cut through the rubbish and got straight to the point. Excellent advice. Worked flawlessly.

Anonymous User -January 25, 2005

nicest solution yet,ty,u're helpfull

Anonymous User -March 16, 2005

Can diskpart be run on a windows 2003 server (standard edition) with a Dell Perc RAID 5 disc system WITHOUT booting the server in safe mode. Microsoft suggest that you run the program in safe mode but I need (if possible) to set this running remotely (via remote desktop) Thanks in advance for your replies !

Anonymous User -April 22, 2005

thanks a lot!!!

Anonymous User -May 17, 2005

Thanks for that, It worked well on a Windows 2003 server

Anonymous User -July 08, 2005

I bought a new machine with WinXP Pro and the seller told me "You have a 180 Gb disk, I created a disk C of 40 Gb for the system, you have te rest free" What can I do? I tried to CREATE PARTITIONS, CREATE VOLUMES, ASSIGN LETTERS, etc etc but nothing works...

Anonymous User -August 07, 2005

We have a HP Compaq ML350 G3 Raid-5 (Env. Win 2003 SP1 Standard). It had 1GB RAM and 3x36.4GB disk (67.82GB Available). We were desperately running out of disk space. We added a further 3x36.4GB, upgraded to 4GB RAM and an HP Storage SDLT unit to increase Tape backup capacity. Diskpart did NOT work Our resolve to resize the disk was to buy 3rd party tool:- http://www.partition-manager.com/corporate/server/ Lesson I learned here: If in doubt cheat!! (take the easy route....) If anyone's interested a for a free tool to resize Win XP try knoppix http://www.knopper.net/knoppix/index-en.html Hope this helps.. Bat.

God_of_Bat -February 21, 2006
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement