All Products
Search
Document Center

:Resolve the "Not enough space" error when extending a partition on a Windows instance

Last Updated:Nov 24, 2025

Problem description

When you extend a partition in Disk Management on a Windows Server operating system, an error dialog box appears with the message: "There is not enough space available on the disk(s) to complete this operation."

Cause

The root cause is a hidden system partition between the target partition and the unallocated space. This partition breaks the contiguity that is required to extend the volume. The partition typically has no drive letter and is not visible in Disk Management, but you can view it using the diskpart command-line tool. This lack of contiguity causes the extension to fail.

Solution

Use the diskpart tool to delete the hidden partition that is blocking the extension. Then, perform the partition extension again.

Step 1: Use Diskpart to locate and delete the hidden partition

  1. Open Command Prompt as an administrator.

  2. Start the Diskpart tool.

    diskpart
  3. List all disks in the system and select the target disk.

    1. List all disks.

      list disk
    2. Select the disk by its number.

      select disk <disk number>
      For example, to select disk 0, run the select disk 0 command.
  4. List all partitions on the selected disk. Find the hidden partition and note its partition number.

    list partition

    Check the output. Find the partition with the type Reserved and confirm its partition number.

  5. Select and delete the hidden partition.

    1. Select the partition to delete.

      Replace <partition number> with the number of the hidden partition.

      select partition <partition number>
    2. Delete the hidden partition.

      Use the override parameter to force the deletion.
      delete partition override
  6. Enter exit to exit the tool.

Step 2: Extend the target partition

After you delete the hidden partition, the target partition and the unallocated space are contiguous.

  1. Return to the Disk Management interface.

  2. Right-click the target partition that you want to extend and select Extend Volume.

  3. Follow the prompts in the wizard to assign all available space to the partition. This completes the extension.

Recommendations

  • Optimize your partitioning strategy: When you add a new data disk or initialize a disk, create a single primary partition that uses all the available space. This approach helps prevent future extension issues.

  • Back up data regularly: Before you perform any low-level disk operations, such as resizing or formatting partitions, create a snapshot or back up your core business data.

  • Understand dynamic disks: Avoid using dynamic disks unless your business requires advanced features, such as spanned volumes. Basic disks generally offer better compatibility, recoverability, and simpler management.