
You can extend only simple volumes that were created after the disk was upgraded to Dynamic disk. In Windows XP and Windows 2000, you can't use Diskpart.exe to extend a simple volume on a Dynamic disk that was originally created on a Basic disk. The new space should be added to the existing drive while maintaining the data on the volume. When the extend command is complete, you should receive a message that states that Diskpart successfully extended the volume. Without the noerr parameter, an error causes Diskpart to exit with an error code. When an error is thrown, this parameter specifies that Diskpart continue to process commands as if the error didn't occur. If no disk is specified, the volume is extended on the current disk.įor scripting only. Space equal to size=n is allocated on the disk. The dynamic disk on which to extend the volume. If you don't specify a size, the disk is extended to use all the next contiguous unallocated space. The space, in megabytes (MB), to add to the current partition. The following section describes the parameters: Type Select volume where is number of the volume that you want to extend. Type list volume to display the existing volumes on the computer. To extend a partition or volume, first select the volume to give it the focus, and then specify how large to make the extension. Move the page file to a partition that you don't want to extend. You can't extend the partition if the system page file is located on the partition. Please make sure the volume is valid for extending System or boot volumes may be blocked from being extended, and you may receive the following error:ĭiskpart failed to extend the volume. Only the extension of data volumes is supported. The volume must be formatted with the NTFS file system.įor Basic volumes, the unallocated space for the extension must be the next contiguous space on the same disk.įor Dynamic Volumes, the unallocated space can be any empty area on any Dynamic disk on the system. The following are the requirements for the extend command: Use the extend command to incorporate unallocated space into an existing volume while preserving the data. If an NTFS volume resides on a hardware RAID 5 container that can add space to the container, you can extend the NTFS Volume with Diskpart.exe while the disk remains a Basic disk. You can use Diskpart.exe on both Basic disks and Dynamic disks. You can use the Diskpart.exe utility to manage disks, partitions, and volumes from a command-line interface. How to extend the boot partition in Windows Server 2008.Īpplies to: Windows 10 - all editions, Windows Server 2012 R2 Original KB number: 325590 Use Diskpart.exe to extend a data volume in Windows Server 2003, in Windows XP, and in Windows 2000.How to use the Diskpart.exe command prompt utility to extend a data volume into unallocated space in Windows Server 2003, Windows XP, and Windows 2000.This article describes the following topics:
