How to use Diskpart.exe to extend a data volume in Windows Server 2003, in Windows XP, and in Windows 2000
This article describes how to use the Diskpart.exe command-line utility to extend a data volume into unallocated space. You can use the Diskpart.exe utility to manage disks, partitions, and volumes from a command-line interface. You can use Diskpart.exe on both Basic disks and Dynamic disks. If an NTFS volume resides on a hardware RAID 5 container that has the capability of adding space to the container, you can extend the NTFS Volume with Diskpart.exe while the disk remains a Basic disk.
Use the extend command to incorporate unallocated space into an existing volume while preserving the data.
Requirements for the extend command
The following are the requirements for the extend command:
- The volume must be formatted with the NTFS file system.
- For Basic volumes, the unallocated space for the extension must be the next contiguous space on the same disk.
- For Dynamic Volumes, the unallocated space can be any empty space on any Dynamic disk on the system.
- Only the extension of data volumes is supported. System or boot volumes may be blocked from being extended, and you may receive the following error:
Diskpart failed to extend the volume. Please make sure the volume is valid for extending
- You cannot extend the partition if the system page file is located on the partition. Move the page file to a partition that you do not wish to extend.