"Windows cannot be installed to this disk" appears when the installer's boot mode and the disk's partition style do not match. UEFI boot needs a GPT disk, while legacy BIOS boot needs MBR. Fix it by converting the disk with diskpart (this erases it), converting without data loss using MBR2GPT, or switching the boot mode in firmware.
Key Takeaways
- The error is a mismatch: UEFI firmware wants GPT, legacy BIOS (CSM) wants MBR.
- Read the exact wording. "The selected disk is of the GPT partition style" and "The selected disk has an MBR partition table" are opposite problems with different fixes.
- The simplest fix is often free and data-safe: boot the USB in the other mode (UEFI or Legacy) from the boot menu.
- Diskpart's
cleancommand permanently wipes the selected disk.mbr2gptcan convert an existing Windows system disk without deleting files. - Windows 11 needs UEFI and GPT, so converting to GPT is the right long-term choice for modern PCs.
What the Error Actually Means
Every storage drive uses a partition style, which is the format of the table that tells the computer where each partition starts and ends. The two styles you will meet are:
- MBR (Master Boot Record): the older style. It works with legacy BIOS firmware, supports disks up to 2 TB and allows only four primary partitions.
- GPT (GUID Partition Table): the modern style. It works with UEFI firmware, supports very large disks and many partitions, and is required for Windows 11.
The Windows installer checks which mode the PC started in, then refuses to install to a disk that does not suit that mode. That is what produces the message. You will usually see it in one of two forms:
- "Windows cannot be installed to this disk. The selected disk is of the GPT partition style." The PC booted the installer in legacy BIOS mode, but the disk is GPT.
- "Windows cannot be installed to this disk. The selected disk has an MBR partition table. On EFI systems, Windows can only be installed to GPT disks." The PC booted in UEFI mode, but the disk is MBR.
You may also see "Windows cannot be installed to this disk. This computer's hardware may not support booting to this disk." That wording points to a related cause, such as the wrong boot mode or a missing storage driver, and the steps below often resolve it too.
Warning: Some of the fixes below delete every file on the disk. Back up anything important before you continue. If you have already lost files during a reinstall, read our guide on data recovery after a Windows update or reinstall and stop writing to that disk.
Step 1: Confirm Which Boot Mode You Are Using
Before changing anything, find out whether the installer started in UEFI or legacy mode.
- On the "Windows cannot be installed" screen, press Shift + F10 to open a Command Prompt. (On some laptops use Shift + Fn + F10.)
- Type the following and press Enter:
reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType - Read the value.
0x1means the PC booted in BIOS (legacy) mode.0x2means it booted in UEFI mode.
On an already installed copy of Windows, you can instead press the Windows key, type msinfo32, press Enter and look at the line labelled BIOS Mode. It will say either UEFI or Legacy.
Step 2: Check the Disk's Partition Style
In the same Command Prompt, run diskpart and list your drives:
diskpart
list disk
Look at the right-hand column labelled Gpt. A disk with an asterisk (*) there is GPT. A blank entry means it is MBR. Match the disk number to the size you expect. If you are installing to the only internal drive, it is usually Disk 0, but a USB installer can take that number on some systems. Confirm by size before touching anything.
Now you can see whether the boot mode and partition style disagree, and choose a fix.
Fix 1: Boot the Installer in the Matching Mode (No Data Loss)
If the disk already holds data you want to keep, change the boot mode rather than the disk.
- Restart the PC and open the boot menu (commonly F12, F9, F10, F8 or Esc, depending on the brand).
- You may see your USB drive listed twice, once with a "UEFI:" prefix and once without. These represent the two boot modes.
- If the error said the disk is GPT and you booted in legacy mode, choose the entry with UEFI in its name.
- If the error said the disk is MBR and you booted in UEFI mode, choose the entry without "UEFI".
- Run Windows Setup again and select the drive. The error should disappear.
If the USB drive appears only once, open the firmware setup (BIOS) and look for a setting named Boot Mode, Boot List Option, CSM or Legacy Support. Switch it to UEFI or Legacy as required, save, and try again. Be aware that changing the boot mode on an already installed system can stop that installation from starting, which is why matching the mode to the disk is the safest path when you are keeping the current operating system.
Fix 2: Convert the Disk With Diskpart (Erases All Data)
If the disk is empty, or you are doing a clean install and do not need what is on it, converting with diskpart is quick and reliable. Everything on the disk will be deleted.
- Press Shift + F10 on the installer screen to open Command Prompt.
- Type
diskpartand press Enter. - Type
list diskand press Enter. Identify the correct disk by its size. - Type
select disk 0(replace 0 with your disk number) and press Enter. Diskpart should reply that Disk 0 is now the selected disk. - Type
cleanand press Enter. This removes all partitions and the partition table. - Convert it to the style that matches your boot mode:
- For UEFI boot, type
convert gpt - For legacy BIOS boot, type
convert mbr
- For UEFI boot, type
- Type
exittwice (once to leave diskpart, once to close Command Prompt). - Back in the installer, click Refresh if needed, select the unallocated space and click Next. Windows will create the partitions it needs automatically.
Some practical points. Unplug extra drives and any USB storage before you start, so there is no chance of cleaning the wrong disk. The plain clean command is fast. The slower clean all overwrites every sector with zeros and is only needed if you want a secure wipe. If diskpart reports that it cannot clean the disk, check for write-protect switches or a BitLocker or hardware encryption lock.
Fix 3: Convert MBR to GPT Without Losing Data
If you want to keep your files and are moving an existing Windows 10 install towards UEFI (for example to prepare for Windows 11), Microsoft's MBR2GPT tool converts the partition table in place. It has been included with Windows 10 since version 1703.
- Back up your data first. A conversion is generally safe, but a power cut during the process could leave the disk unbootable.
- Open an elevated Command Prompt in Windows (right-click Start, choose Terminal or Command Prompt as administrator).
- Run the validation check:
mbr2gpt /validate /disk:0 /allowFullOS - If validation passes, convert:
mbr2gpt /convert /disk:0 /allowFullOS - Restart straight into the firmware setup and switch the boot mode from Legacy/CSM to UEFI. Do this immediately. The disk is now GPT and will not boot in legacy mode.
- Start Windows and check
msinfo32shows BIOS Mode: UEFI.
Validation can fail if the disk has more than three primary partitions, if the layout has no room for the EFI system partition, or if the disk is not the system disk. In those cases, resolve the layout or use a clean install instead. If you run the tool from the Windows installer's Command Prompt rather than inside Windows, omit /allowFullOS. It is only needed when running from a full Windows session.
Fix 4: Check the Related Causes
If the error persists after the boot mode and partition style match, look at the following.
- Secure Boot and CSM conflicts. In UEFI mode with CSM enabled, some firmware boots the USB in a hybrid way. Disable CSM for a pure UEFI start.
- Storage controller mode. Some laptops, especially with Intel RST or VMD enabled, show no drives in the installer until you load a storage driver or change the SATA/NVMe mode in firmware. Check your manufacturer's support page before changing it, since altering this setting on an existing install can cause boot failures.
- Disk over 2 TB with MBR. MBR only addresses 2 TB. Larger disks need GPT to use their full capacity.
- A failing drive or cable. Repeated odd errors, slow detection or a disk that disappears can mean hardware trouble. Test the drive on another system if you can.
Which Option Should You Choose?
- New PC or fresh drive, Windows 11 target: use UEFI with GPT. Run the diskpart conversion on the empty disk.
- Existing Windows 10 install you want to keep: boot the installer in the matching mode, or use MBR2GPT and then switch firmware to UEFI.
- Old PC that only supports legacy BIOS: use MBR. Note that such a machine cannot run Windows 11 in a supported way.
- Dual-boot setups: keep every operating system in the same mode. Converting one disk can break the other system's boot entries.
If you are unsure whether your computer meets the requirements for Windows 11, our guide to checking your computer specs shows how to find your firmware type, processor and memory in a few minutes.
After the Install: If Windows Will Not Start
Switching modes after an installation, or converting a disk and forgetting to change the firmware setting, can leave a PC that shows a black screen, "No bootable device" or a repair prompt. Return the firmware to the mode that matches the disk. If Windows starts but keeps cycling through repair, see how to fix the Windows 11 automatic repair loop. If you simply want a clean slate on a working Windows 10 machine, the Windows 10 reset guide is a gentler alternative to a full reinstall.
When to Call a Professional
Get help if the drive holds irreplaceable files and you are unsure which disk is which, if diskpart refuses to clean or convert the disk, if validation keeps failing, or if the PC does not detect its storage at all. A wrong command in diskpart cannot be undone, so a second pair of eyes is worth it. We can walk through the process with you over a secure remote session. See our Windows support service, or our remote computer repair in Canada and remote computer repair in the USA pages.
Not sure what is wrong? Get a diagnosis first.
Our certified tech can connect remotely, check your software, drivers and backups, and tell you honestly whether the problem needs a hands-on repair.
Frequently Asked Questions
Does converting from MBR to GPT delete my data?
It depends on the method. Diskpart's clean followed by convert gpt erases everything. Microsoft's mbr2gpt tool converts a Windows system disk in place without deleting files, although you should still back up first.
Should I choose UEFI or Legacy BIOS?
Choose UEFI whenever your PC supports it. It enables Secure Boot, faster startup and disks larger than 2 TB, and Windows 11 requires it. Legacy mode is only worth using on very old hardware.
Can I install Windows on an MBR disk in UEFI mode?
No. The installer will refuse and show the MBR error. You must either convert the disk to GPT or boot the installer in legacy mode.
What does Shift + F10 do during Windows Setup?
It opens a Command Prompt inside the installer so you can run tools such as diskpart and registry queries without leaving the setup screen. On laptops with function-key shortcuts you may need to press Fn as well.
Why does my USB drive appear twice in the boot menu?
One entry boots it in UEFI mode and the other in legacy mode. The version with "UEFI" in the name uses UEFI. Choosing the right one is the quickest way to fix the partition style error without touching your data.
