Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

March 18, 2003 12:00 AM

How can I use DiskPart to extend a volume?

Windows IT Pro
InstantDoc ID #38362
Rating: (35)

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

Related Content:

ARTICLE TOOLS

Comments
  • Guest
    6 years ago
    Feb 21, 2006

    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.

  • Anonymous User
    7 years ago
    Aug 07, 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
    7 years ago
    Jul 08, 2005

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

  • Anonymous User
    7 years ago
    May 17, 2005

    thanks a lot!!!

  • Anonymous User
    7 years ago
    Apr 22, 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 !

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.