Extend a volume with diskpart
Extend a Windows volume with diskpart and fix the error 'The volume you have selected may not be extended'.
This procedure extends a Windows volume with diskpart, and explains how to fix the refusal of the extend command when the volume has no drive letter.
Extending the volume
DISKPART> list disk
DISKPART> select volume 1
DISKPART> extend
Error when extending
If extend returns the following message, the volume cannot be extended as it is:
The volume you have selected may not be extended.
Please select another volume and try again.
Then assign a drive letter to the volume, and run the extension again:
DISKPART> assign
DISKPART> select volume 1
DISKPART> extend
Notes
- The
extendcommand grows the selected volume into contiguous unallocated space located directly after it on the same disk. - Check the volume number with
list volumebefore runningextend.