The DiskPart utility is used to manage disks, such as creating/deleting/formatting/extending a partition. This post introduces the full guide to DiskPart extend volume and its alternative, MiniTool Partition Wizard.

DiskPart is a command-line utility built into Windows that allows you to manage your computer’s disks and partitions. It has some common DiskPart commands, such as:

This guide will delve into the DiskPart extend volume command, outline the step-by-step process, and introduce its alternative: MiniTool Partition Wizard.

What Is DiskPart Extend Volume/Partition?

The DiskPart extend volume command is used to increase the size of an existing partition or volume by incorporating unallocated (free) space while preserving all existing data.

For the extend command to work, your disk must meet these specific criteria:

  • Same disk: There is free space available on the same physical disk, unless you are using dynamic disks or RAID configurations.
  • Contiguous unallocated space: For basic disks, the unallocated space must be immediately to the right of the volume you want to extend. There should be no other partitions (like a recovery or EFI partition) in between.
  • File system: The volume must be formatted with NTFS or ReFS. DiskPart cannot extend FAT32 or exFAT partitions.

Well, how do you check these requirements? Simply right-click Start and choose Disk Management to open it. Then check if the volume you want to extend is NTFS and if there is contiguous unallocated space to its right.

Additionally, before starting the extension process, you need to confirm the following necessary information in Disk Management:

  • Disk number
  • Partition number
  • Current size of the target partition
  • Amount of available unallocated space

How to Extend Partition Using DiskPart?

To use DiskPart to extend volume, here are the detailed steps:

  1. Type cmd in the Search bar, right-click Command Prompt, and select Run as administrator.
  2. Type diskpart and press Enter to launch the DiskPart utility.
  3. Type list disk and press Enter. This command will show all disks.
  4. Type select disk * (replace * with your target disk number) and press Enter.
  5. Type list partition and press Enter. This will display all partitions on the target disk.
  6. Type select partition * (replace * with your target partition number) and press Enter.
  7. Type extend size=n (replace n with the size in MB you want to extend) and press Enter.
  8. Wait until you receive the information saying “Disk Part successfully extended the volume”.
Tips:
If you want to extend the partition with all adjacent unallocated space, type extend and press Enter.
The DiskPart window with the extend partition commands.

Common Error Messages When Using DiskPart to Extend Volume

When using the DiskPart extend partition command, common error messages and their solutions are provided in the following section.

Error 1. You may not extend OEM, ESP, or recovery partitions, or, offline volumes. The volume you have selected may not be extended. Please select another volume and try again.

As the error message said, this error occurs when you extend an OEM, ESP, or recovery partition, or offline volumes. You can not directly extend these partitions.

The Volume You Have Selected May Not Be Extended in Server 2003
The Volume You Have Selected May Not Be Extended in Server 2003

Many users encounter error "the volume you have selected may not be extended" when attempting to extend a hard drive by using diskpart, here are the solutions.

Read More

Error 2. There is not enough usable free space on specified disk(s) to extend the volume.

Causes:

  • No adjacent unallocated space.
  • A hidden partition, like an MBR reserved partition, blocks the partition extension. When you use the list partition command, all partitions in the disk will be displayed, including the Reserved partition. Then check if its number # is after the partition you want to extend.

If the blocking partition (including the hidden and protected partition) is not necessary and has no important data, you can use the delete partition command in DiskPart to delete it. Then, perform partition expansion again.

Tips:
If the partition is a protected type (like an OEM, recovery, or EFI system partition), use the delete partition override command to force the deletion.

If the blocking partition includes important data, you can use a third-party tool like MiniTool Partition Wizard to move partitions safely without losing data.

Error 3. Virtual Disk Service error: There is not enough usable space for this operation.

When you perform a partial extension, the size of the extended space you entered is larger than the size of the unallocated space. You should check the total size of the unallocated space.

Error 4. Virtual Disk Service error: The volume cannot be extended because the file system does not support it.

This error message appears when you extend a non-NTFS/ReFS file system partition. If the partition to be extended is an FAT32 file system, you can use the convert <driveletter>: /fs:ntfs command in Command Prompt to convert the partition from FAT32 to NTFS.

If the partition is another file system like ext4 or exFAT, you need to format it to NTFS to perform the extension. But this will delete data.

Error 5. Diskpart failed to extend the volume. Please make sure the volume is valid for extending.

This error message often happens in Windows Server, where only the extension of data volumes is supported. If you attempt to extend a system or boot volume, you will receive this error.

Simultaneously, you can’t extend the partition if the system page file is located on the partition. You can temporarily move the page file to a different drive.

Also Read:Windows Server 2022 Cannot Extend Volume

If Windows DiskPart limitations are a persistent issue, consider using a free third-party partition manager like MiniTool Partition Wizard, which often offers more flexibility, such as moving non-contiguous unallocated space without data loss.

Tips:
Although Disk Management can also help you to extend a partition, it has some of the same limitations as DiskPart.  If you can’t meet the requirements for partition or volume extension, you will see the “Extend Volume option is greyed out” error.

DiskPart Extend Volume Alternative – MiniTool Partition Wizard

Compared to DiskPart, MiniTool Partition Wizard is a more powerful partition manager. It bypasses many of DiskPart’s restrictions, allowing you to resize and move partitions more flexibly. It offers several critical advantages over DiskPart:

  • Extend with non-adjacent space: You can extend a partition by directly taking free space from any other existing partition or unallocated block on the same disk, even if it isn’t next to the target partition.
  • Move partitions: Unlike DiskPart, this tool allows you to “move” a blocking partition (like a Recovery Partition) to shift unallocated space next to your C: drive.
  • FAT32 support: It can extend and resize FAT32 partitions, whereas DiskPart is limited to NTFS and ReFS.
  • Safe preview: It uses a “Pending Operations” queue. You can see a preview of your changes and click “Apply” only when you are certain, reducing the risk of accidental data loss.

In addition to its advantages in partition expansion, MiniTool Partition Wizard can format/delete/clone a partition, recover data from hard drives, and wipe disks. It also performs excellently in conversion between MBR and GPT without data loss, and in converting NTFS to FAT32 or vice versa without data loss.

Therefore, for easy partition management and expansion, MiniTool Partition Wizard may be a better choice. Its Extend Partition and Move/Resize Partition features can help you do a partition expansion.

MiniTool Partition Wizard FreeClick to Download100%Clean & Safe

Now, download and install this free partition manager to try the following features.

Extend Partition

To use the Extend Partition feature to enlarge a partition, here are the steps:

Step 1. Launch MiniTool Partition Wizard to enter its main interface. Then highlight the partition you want to extend and choose the Extend Partition feature from the left action panel.

The MiniTool Partition Wizard main interface with the Extend Partition feature selected in the left action panel.

Step 2. Open the drop-down list of Take Free Space from and choose a partition or unallocated space to take free space. Drag the sliding handle leftwards or rightwards to decide how much space to take, with the partition size changing intuitively. Then click OK to continue.

The MiniTool Partition Wizard interface with the option to take space from and use the sliding handle to specify how much space.

Step 3. Preview this change and then click Apply.

The MiniTool Partition Wizard main interface with the Apply option selected in the bottom left corner.

Move/Resize Partition

To use the Move/Resize Partition feature to extend, shrink, and move a partition, the steps are as follows:

Step 1. On its main interface, select the partition (for example, the recovery partition) to operate and click the Move/Resize Partition feature from the left action panel.

The MiniTool Partition Wizard interface with the Move Resize Partition option selected in the left action panel.

Step 2. In the pop-up window, the blue handle represents the partition, while the blank area means unallocated space. Do the following and click OK to go back to the main interface.

  • To shrink a partition, shorten the handle by dragging the triangles.
  • To extend a partition, there should be unallocated space next to (on the left or right side) the partition you want to expand. Then, lengthen the handle to occupy more unallocated space. Alternatively, you can manually type the specified partition size in MB, GB, or TB.
  • To move a partition, drag the whole partition handle towards unallocated space or manually define unallocated space before or after the partition.
Tips:
The Using Enhanced Data Protecting Mode option is checked by default to give the strongest protection to your data.
The Move Resize Partition window with the blue handle selected to move, shrink, or extend in MiniTool Partition Wizard.

Step 3. From the main interface, you can preview that the selected partition has changed its position. Then click Apply.

The MiniTool Partition Wizard interface with the recovery partition and Apply option selected.

How to extend partition using DiskPart? This post introduces the extend partition DiskPart command, the detailed steps to extend volume, and its alternative, MiniTool Partition Wizard.Click to Tweet

DiskPart Extend Volume FAQ

1. Can I extend a dynamic volume using DiskPart?
Yes, you can extend a dynamic volume using DiskPart in Windows, provided it is a simple or spanned volume formatted with NTFS or ReFS. The unallocated space does not need to be contiguous, but it must be on a dynamic disk.
2. Is there a way to move partitions if DiskPart can’t?
DiskPart has no move partition feature. So, to move partitions, you should use the third-party partition software such as MiniTool Partition Wizard. This tool provides a graphical interface to drag and relocate partitions (including recovery partitions) to adjacent unallocated space without data loss, which DiskPart cannot do.
3. Why can't I expand C if I have unallocated space?
The most common reason is that the space is not directly adjacent to the right of the C drive in Disk Management.
Even if you see no partition blocking the way in Disk Management, if the extension still fails, a hidden MBR reserved partition is likely blocking it. You can delete it in DiskPart to resolve the issue.
4. Can DiskPart extend a system volume?
Yes, DiskPart can extend a system volume (C: drive), but it has strict requirements: the unallocated space must be immediately to the right of the target partition, and the partition must be formatted as NTFS.
It cannot extend partitions if other data volumes or recovery partitions are in the way, requiring them to be deleted first.
5. How to fix the size of the extent is less than the minimum?
To fix the "The size of the extent is less than the minimum" error (often occurring in Disk Management or when using DiskPart), ensure the unallocated space is immediately to the right of the partition you want to extend.
If a partition blocks this, delete it or clean the disk using DiskPart. Or, you can use third-party tools like MiniTool Partition Wizard to move it.
6. What does the override parameter do?
When deleting a partition to make room for an extension, some partitions (like OEM or Recovery partitions) are protected.
Using delete partition override forces DiskPart to delete these protected partitions.

Bottom Line

Expanding volumes on basic disks is an essential skill for Windows users, and both DiskPart and MiniTool Partition Wizard offer effective solutions.

If you want a user-friendly graphical interface, more flexible partitioning options, and additional features such as disk cloning and recovery, choose MiniTool Partition Wizard.

If you have any problems or suggestions when using MiniTool Partition Wizard, you can contact us by sending an email via [email protected]. We’ll get back to you as soon as possible.

  • linkedin
  • reddit