Why Windows Won't Extend the Volume
The primary reason for this issue lies in how logical disk structures work on modern computers. When you dual-booted Ubuntu, it likely created an /boot partition, a root partition, and possibly a swap area. When you deleted these partitions through the Ubuntu installer or a live USB, they became "unallocated space." However, this space is often located after other partitions, such as a Recovery Partition or the EFI System Partition (ESP).
Windows Disk Management enforces a strict rule: you can only extend a volume if the unallocated space is directly to the right of it in the partition map. If there is even a single small recovery partition sitting between your C: drive and the freed-up space, the "Extend Volume" option will remain grayed out. This is not a bug but a fundamental limitation of the built-in Microsoft management utility.
Identifying the Blocker
To confirm this, open the Disk Management console by pressing Win + X and selecting "Disk Management." Look at the visual layout of your disks. You will likely see your large C: drive, followed by a small 500MB-1GB Recovery partition, and then the large chunk of black "Unallocated" space. Because the Recovery partition blocks the adjacency, Windows refuses to merge the space.
Solution 1: Using Third-Party Partition Software
This is the safest and most user-friendly method for most users. Tools like MiniTool Partition Wizard, AOMEI Partition Assistant, or EaseUS Partition Master can move partitions around without data loss. These applications handle the complex process of shifting sectors on the hard drive, which Windows Disk Management cannot do.
- Download and Install: Get a reputable partition manager. Most offer free versions sufficient for moving one partition.
- Select the Blocking Partition: Right-click the Recovery Partition (or whatever sits between C: and Unallocated space) and choose "Move/Resize."
- Shift It: Drag the entire partition block to the right, into the unallocated space. This effectively pushes the unallocated space to the left, placing it directly next to your C: drive.
- Apply Changes: Click OK and then the "Apply" button. The computer may need to reboot into a special pre-OS mode to perform the move safely.
- Extend C: Once back in Windows, go back to Disk Management. The unallocated space should now be adjacent to C:, allowing you to right-click and select "Extend Volume."
Solution 2: Using Command Prompt (Advanced)
If you prefer not to install third-party software, you can use the diskpart utility. Note that diskpart also generally cannot move partitions; it primarily deletes them. Therefore, this solution is viable only if you are willing to delete the blocking partition (often the Recovery Partition) entirely. This is risky as it removes your ability to factory-reset easily via Windows settings.
Open Command Prompt as Administrator and type diskpart. Then execute the following commands carefully:
list disk
select disk 0
list partition
select partition X
delete partition override
exit
Replace X with the number of the partition blocking your space (check sizes to identify it). After deleting it, return to Disk Management. The space should now be contiguous with your C: drive, allowing you to extend it. Be aware that some manufacturers require specific recovery partitions to be present for warranty support.
Cleaning Up Boot Options
After resizing your partition, you may still see "Ubuntu" in your boot menu. To remove this, open Command Prompt as Administrator and run bcdedit /enum firmware. Identify the entry labeled "ubuntu" or similar. Delete it using bcdedit /delete {identifier}. Alternatively, you can use a tool like EasyBCD to manage the GRUB entries more visually.
Frequently Asked Questions
Will moving partitions erase my data?
Reputable third-party partition tools preserve data during moves, but backing up critical files is always recommended before altering disk structures. Moving a partition involves rewriting sector addresses, which carries a small risk of corruption if power is lost during the process.
Can I extend the volume using only Windows tools?
No, Windows Disk Management cannot move partitions. It can only delete them. If a partition exists between your C: drive and the unallocated space, you must either delete that partition or use external software to shift it.
What if the unallocated space is before the C: drive?
Windows cannot extend a volume into space located to its left. You would need to shrink the C: drive to create space on the right, or use third-party software to move the entire C: partition to the right of the unallocated space.
Is it safe to delete the Recovery Partition?
It is technically safe for daily operation, but it removes the manufacturer's factory reset capability. If you delete it, you lose the ability to restore the PC to its original state using built-in Windows recovery options without creating external installation media.
How do I check if my disk is MBR or GPT?
In Disk Management, right-click the disk label (e.g., "Disk 0") and look at the properties. GPT is standard for UEFI systems and supports larger drives, while MBR is older. Partitioning behavior can differ slightly between the two, but the adjacency rule remains the same.