Can't Extend Volume in Windows After Deleting Ubuntu Dual Boot

Abstract: Resolve the grayed out Extend Volume option in Windows Disk Management when unallocated space is not adjacent to the C drive after deleting Ubuntu.

Created: 2026-09-22 by
You cannot extend the Windows partition because the unallocated space created by deleting Ubuntu is not adjacent to your C: drive. The Windows Disk Management tool only allows extending volumes into immediately following unallocated space, so you must move that free space next to your system partition first using third-party software or advanced command-line tools.

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.

  1. Download and Install: Get a reputable partition manager. Most offer free versions sufficient for moving one partition.
  2. Select the Blocking Partition: Right-click the Recovery Partition (or whatever sits between C: and Unallocated space) and choose "Move/Resize."
  3. 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.
  4. 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.
  5. 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.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More