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’smbr2gpt.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, thembr2gpt /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 runningsudo 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, thembr2gpt 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.