When clean installing Windows 10 or Windows 11, one of the most frustrating errors you can encounter is:
"Windows cannot be installed to this disk. The selected disk is of the GPT partition style."
OR
"The selected disk has an MBR partition table."
This happens because of a mismatch between your system’s BIOS boot mode (UEFI vs. Legacy BIOS) and your drive’s partition scheme (GPT vs. MBR).
Here is a quick, step-by-step guide to fixing this error without wiping or losing your hard drive data.
Why Does This Error Happen?
UEFI Boot Mode requires a GPT (GUID Partition Table) partition style.
Legacy BIOS / CSM Mode requires an MBR (Master Boot Record) partition style.
If your USB installer booted in UEFI mode, but your SSD/HDD is formatted as MBR, Windows setup blocks the installation.
Method 1: Change USB Boot Mode in BIOS (Fastest Fix)
Before altering your drive partitions, try changing how your PC boots your installation media:
Restart your PC and press your BIOS key (F2, F12, DEL, or ESC depending on your motherboard).
Go to the Boot or Security tab.
If your drive is MBR: Change boot mode from UEFI to Legacy / CSM.
If your drive is GPT: Change boot mode from Legacy to UEFI Only and enable Secure Boot.
Save changes, restart, and boot back into the Windows setup.
Method 2: Convert MBR to GPT Without Data Loss (Using Command Prompt)
If you must install Windows in UEFI mode on an MBR drive, you can convert it right inside the setup screen without losing your file using Microsoft's built-in mbr2gpt tool.
Type the following command to validate your drive:
mbr2gpt /validate /allowFullOS
- If validation succeeds, run:
mbr2gpt /convert /allowFullOS
- Once completed, close Command Prompt, refresh the drive selection page, and proceed with installation!
Method 3: Convert via Diskpart (For Clean Installs / Data Backup Done)
⚠️ Warning: This method will erase all partitions and data on the target drive. Only use this if you have backed up your files or are working with a fresh SSD.
1.Press Shift + F10 on the setup screen to open Command Prompt.
- Type:
diskpart
- List available drives:
list disk
- Select your disk (replace 0 with your target drive number):
select disk 0
- Clean the disk and convert to GPT:
clean
convert gpt
exit
- Return to the setup window, click Refresh, select the unallocated space and click Next.
Summary Checklist
Modern Windows 11 Systems: Always use UEFI + GPT.Older Hardware: Use Legacy BIOS + MBR.
Older Hardware: Use Legacy BIOS + MBR.
Tool Recommendation: Use Ventoy to create multi-boot USBs that support both UEFI and Legacy booting automatically.
Top comments (0)