To extend a partition or volume, you must first select the volume to give it the focus, and then you can specify how large to make the extension. To extend a volume, follow these steps:
- At a command prompt, type diskpart.exe.
- Type list volume to display the existing volumes on the computer.
- Type Select volume volume number where volume number is number of the volume that you want to extend.
- Type extend [size=n] [disk=n] [noerr]. The following describes the parameters:
The space, in megabytes (MB), to add to the current partition. If you do not specify a size, the disk is extended to use all the next contiguous unallocated space.
The dynamic disk on which to extend the volume. Space equal to size=n is allocated on the disk. If no disk is specified, the volume is extended on the current disk.
For scripting only. When an error is thrown, this parameter specifies that Diskpart continue to process commands as if the error did not occur. Without the noerr parameter, an error causes Diskpart to exit with an error code.
- Type exit to exit Diskpart.exe.
Posted in: Server