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


March 18, 2003

How can I use DiskPart to extend a volume?

RSS
Subscribe to Windows IT Pro | See More Tips Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

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."

End of Article



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 (Article Rating: )


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

Anonymous User January 25, 2005 (Article Rating: )


nicest solution yet,ty,u're helpfull

Anonymous User March 16, 2005 (Article Rating: )


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 (Article Rating: )


thanks a lot!!!

Anonymous User May 17, 2005 (Article Rating: )


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

Anonymous User July 08, 2005 (Article Rating: )


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 (Article Rating: )


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 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

Anti-Virus Vendors Prepare for War with Microsoft ... Again

When Microsoft announced its Windows Live OneCare security and PC health product over five years (as MSN OneCare), Symantec, McAfee, and the other consumer-oriented security vendors reacted with stunning vigor. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Related Events WinConnections and Microsoft® Exchange Connections

7 Ways To Get More From Your SharePoint Deployment Now

Check out our list of Free Email Newsletters!

Related Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


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 ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing