Preserving Windows Partitions: Ubuntu Installation Fails with MBR2GPT

Abstract: Resolve Ubuntu installation failures on MBR2GPT disks by fully converting to GPT and validating the partition table before installing.

Created: 2026-08-05 by

Ubuntu installation fails on systems using the MBR2GPT transition because the tool often leaves the disk in a hybrid state that confuses the installer. To preserve Windows partitions, you must ensure the disk is fully converted to GPT before starting. This requires backing up data, disabling Secure Boot temporarily, and verifying the partition table structure with gdisk or lsblk.

Understanding the MBR2GPT Conflict

The primary reason Ubuntu refuses to install while preserving Windows partitions is a mismatch between the expected disk layout and the actual state of the drive. When you use Microsoft’s mbr2gpt.exe utility, it converts the Master Boot Record (MBR) to GUID Partition Table (GPT). However, if this process is interrupted or fails silently, the system enters a "hybrid" state. In this state, the BIOS/UEFI firmware sees a GPT header, but the partition boundaries are still aligned with legacy MBR constraints. Ubuntu’s installer, specifically the Ubiquity or Calamares installers depending on your version, checks for standard GPT structures. If it detects the residual MBR metadata or an invalid partition alignment, it may refuse to proceed to avoid corrupting the existing Windows bootloader. This is not a bug in Ubuntu but a safety feature designed to prevent data loss. The installer cannot safely place GRUB bootloaders or create new Linux partitions when the underlying disk geometry is ambiguous. Therefore, the solution is not to bypass these checks but to correct the disk state beforehand.

Why Hybrid States Occur

Hybrid states typically occur when users attempt to dual-boot without fully completing the conversion process. Sometimes, the mbr2gpt /validate step passes, but the /convert step does not finalize all necessary changes to the EFI System Partition (ESP). Additionally, some OEM laptops pre-install Windows with proprietary recovery partitions that do not conform to standard GPT rules. These custom partitions can interfere with the installer’s ability to detect free space or align new partitions correctly. If you have already attempted an installation and failed, do not restart the process immediately. The previous attempt may have left temporary files or locked partitions. Reboot into Windows and run a disk check to ensure no file system errors exist that could complicate the repair.

Pre-Installation Checklist and Backup

Before attempting any partition changes, you must secure your data. Modifying partition tables carries inherent risks, even when following official procedures. Create a full image backup of your Windows partition using tools like Macrium Reflect or Clonezilla. Store this backup on an external drive, as relying solely on cloud backups may be insufficient if the local disk becomes unbootable. Next, verify your current disk status. Open Command Prompt as Administrator in Windows and run:
mbr2gpt /validate /disk:0
Replace disk:0 with the appropriate disk number if you have multiple drives. If this command returns an error, the disk is not ready for conversion. Do not proceed until the validation passes cleanly. If it fails, note the specific error message, such as "Invalid partition count" or "EFI System Partition not found," as this will guide your troubleshooting steps. You should also disable Fast Startup in Windows. Navigate to Control Panel > Power Options > Choose what the power buttons do. Uncheck "Turn on fast startup." This ensures that Windows releases all locks on the hard drive when shut down, allowing Ubuntu to access and modify partitions freely during installation.

Executing the Clean Conversion

Once validated, perform the actual conversion. Run the following command in the same elevated Command Prompt:
mbr2gpt /convert /disk:0
This command rewrites the partition table from MBR to GPT. It creates a new EFI System Partition if one does not exist and adjusts the logical block addresses of existing partitions. After completion, reboot your computer and enter the UEFI/BIOS settings. Ensure that the boot mode is set to UEFI only, not Legacy or CSM. Some systems may require you to clear NVRAM to remove old boot entries associated with the MBR structure. With the disk fully converted, you can now proceed with the Ubuntu installation. Boot from your USB installer and select "Something else" for manual partitioning if you want precise control, or "Install alongside Windows" for automatic setup. The installer should now recognize the GPT structure and allow you to allocate space for Linux without overwriting Windows partitions.

Handling Existing ESP Partitions

If your system already has an EFI System Partition, do not format it during Ubuntu installation. Instead, mount it at /boot/efi. This preserves the Windows bootloader while adding Ubuntu’s GRUB configuration to the same FAT32 volume. Formatting the ESP will break Windows boot capability, forcing you to repair it later via recovery media. For more details on managing boot loaders after installation, see Windows Restore on Dell Precision 5490 Leaves GRUB Partition Issues with Ubuntu. This article explains how to sync GRUB configurations across dual-boot environments.

Post-Installation Verification

After installation, verify that both operating systems boot correctly. Check the GRUB menu to ensure Windows is listed. If Windows does not appear, update GRUB by running sudo update-grub in Ubuntu. You may need to install os-prober if it is not included by default in newer Ubuntu versions. Additionally, confirm that the disk is still recognized as GPT. Use the command fdisk -l to list partitions. Look for the "Disk label type: gpt" indicator. If you see "dos" instead, the conversion may have failed partially, requiring a repeat of the validation and conversion steps. Regarding security, keeping Secure Boot enabled is recommended for modern hardware. Most mainstream Linux distributions, including Ubuntu, support Secure Boot out of the box. Only disable it if you plan to install third-party kernel modules or non-signed drivers. For guidance on maintaining security during dual-boot setups, refer to How to Switch from Bitlocked Windows 10 to Ubuntu on a New Laptop, which discusses encryption and boot security interactions.

Frequently Asked Questions

Can I convert MBR to GPT without losing data?

Yes, the mbr2gpt tool is designed to preserve data during conversion. However, always create a backup first because unexpected power failures or errors can corrupt the partition table. The tool works by rewriting the partition headers, not by deleting files.

What if mbr2gpt validation fails due to hidden partitions?

Hidden or recovery partitions often cause validation errors. You may need to delete unnecessary OEM recovery partitions using Disk Management in Windows before running the conversion. Ensure that the main Windows partition remains intact and properly aligned.

Do I need to disable Secure Boot for Ubuntu?

No, Ubuntu supports Secure Boot natively. Disabling it is only necessary if you encounter driver issues with unsigned kernel modules. Keeping Secure Boot enabled provides better protection against bootkits and malware.

How do I fix a broken Windows boot after installing Ubuntu?

Use a Windows Recovery USB to repair the bootloader. Select "Repair your computer" > "Troubleshoot" > "Advanced options" > "Startup Repair." This tool scans for Windows installations and reinstates the correct boot entries in the EFI partition.

Is it safe to install Ubuntu alongside Windows on an NVMe drive?

Yes, NVMe drives work identically to SATA drives regarding partitioning. The key is ensuring the drive uses GPT rather than MBR. Modern motherboards default to UEFI and GPT, making dual-booting straightforward once the initial conversion is complete.

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