---
title: "Solution: “Windows Cannot Be Installed to This Disk” – GPT or MBR Partition Error"
description: "This is a common setup message when reinstalling or upgrading Windows—especially on older PCs or custom builds. If the installer mentions GPT or MBR, the problem is usually a mismatch between your system’s boot mode (UEFI/Legacy) and the way the drive is partitioned."
url: https://help.activekeys.com/en/articles/47-solution-windows-cannot-be-installed-to-this-disk-gpt-or-mbr-partition-error
collection: "Windows Troubleshooting"
updated: 2026-02-12
language: en
---

# Solution: “Windows Cannot Be Installed to This Disk” – GPT or MBR Partition Error

This is a common setup message when reinstalling or upgrading Windows—especially on older PCs or custom builds. If the installer mentions GPT or MBR, the problem is usually a mismatch between your system’s boot mode (UEFI/Legacy) and the way the drive is partitioned.

**🧠 What GPT and MBR mean**

MBR (Master Boot Record) is an older partition style typically used with Legacy/BIOS boot.  
GPT (GUID Partition Table) is the modern partition style commonly used with UEFI boot.

Windows installation requires the boot mode and partition style to match. If they don’t, Setup blocks the install.

**🛠 Examples of common messages**

“Windows cannot be installed to this disk. The selected disk has an MBR partition table.”  
“Windows cannot be installed to this disk. The selected disk is of the GPT partition style.”

**✅ How to fix it**

**🔁 Option 1: Convert the disk to the correct format**  
💡 Warning: Converting the disk using the method below erases everything on that drive. Back up any important files first.

At the “Where do you want to install Windows?” screen, press **Shift + F10** to open Command Prompt.

Type these commands one at a time:

diskpart  
list disk  
select disk X (replace X with the correct disk number)  
clean

Then choose the conversion based on your boot mode:

convert gpt (for UEFI boot)  
OR  
convert mbr (for Legacy/BIOS boot)

Type:  
exit

Close Command Prompt, click **Refresh** in the installer, and try the installation again.

**🧩 Option 2: Change boot mode in BIOS/UEFI (without erasing the drive)**  
If you don’t want to wipe the disk, you can try changing the boot mode instead.

Restart the PC and enter BIOS/UEFI settings (often **F2**, **DEL**, or **ESC** during startup). Find the boot mode option and set it to:

-   **UEFI** if your disk is GPT
    
-   **Legacy/CSM** if your disk is MBR
    

Save changes, exit, and retry the installation.
