diskpart
.list volume
. Make note of the basic volume you want to extend.select volume <volumenumber>
. This selects the basic volume volumenumber that you want to extend into contiguous, empty space on the same disk.extend [size=<size>]
. This extends the selected volume by size in megabytes (MB).Value | Description |
---|---|
list volume | Displays a list of basic and dynamic volumes on all disks. |
select volume | Selects the specified volume, where volumenumber is the volume number, and gives it focus. If no volume is specified, the select command lists the current volume with focus. You can specify the volume by number, drive letter, or mount point path. On a basic disk, selecting a volume also gives the corresponding partition focus. |
extend |
|
size=size | The amount of space, in megabytes (MB), to add to the current partition. If you do not specify a size, the disk is extended to take up all the contiguous unallocated space. |