sodcalculator

10 Tech How-To

Fix Windows Could Not Be Installed to This Disk Error

Guide 10-50686 · Updated · Step by step

If you see “Windows could not be installed to this disk” during setup, the fix is usually to correct the disk’s partition style (GPT vs. MBR), free up space, or change a BIOS setting. This article walks through the exact steps to resolve each common cause, from converting the disk to enabling UEFI mode.

What This Error Means

Windows Setup displays this message when it cannot write the boot files or system files to the selected disk. The most common reasons are:

  • The disk uses the Master Boot Record (MBR) partition table, but the PC is booting in UEFI mode (or vice versa).
  • The disk has no unallocated space large enough for Windows.
  • The disk is offline, locked, or has a corrupted partition table.
  • Secure Boot or other firmware settings are blocking installation.

The exact wording of the error often includes a specific reason, such as “Windows cannot be installed to this disk. The selected disk is of the GPT partition style” or “This computer’s hardware may not support booting to this disk.” That wording tells you which fix to apply.

Check the Partition Style First

Modern Windows (10 and 11) can install to either GPT (GUID Partition Table) or MBR disks, but the firmware must match. If your PC uses UEFI, the disk must be GPT. If it uses legacy BIOS, the disk must be MBR. Most computers from the last decade use UEFI.

To see the current partition style during setup:

  1. At the error screen, press Shift + F10 to open a command prompt.
  2. Type diskpart and press Enter.
  3. Type list disk and press Enter.
  4. Look at the “Gpt” column. An asterisk (*) means the disk is GPT; no asterisk means MBR.

If the disk is GPT but your PC is in legacy BIOS mode (or MBR but in UEFI mode), you have two options: convert the disk to the correct style, or change the firmware mode. Converting is usually faster and safer.

Convert the Disk to GPT or MBR

Converting erases all data on the disk, so back up any files you need first. In the same command prompt from above:

  1. Type diskpart and press Enter.
  2. Type list disk to identify the target disk number.
  3. Type select disk X (replace X with the disk number).
  4. Type clean to remove all partitions and data.
  5. Type convert gpt or convert mbr depending on what your firmware requires.
  6. Type exit and close the command prompt.
  7. Click Refresh in the Windows Setup disk selection screen, then try installing again.

If you prefer a graphical method, you can delete all partitions on the disk during setup and let Windows create the correct ones automatically—but that only works if the disk already has the right partition style. If the disk is empty and still shows the error, conversion is the reliable path.

Change Firmware Mode in BIOS/UEFI

Instead of converting the disk, you can switch the firmware mode to match the disk. This is useful if the disk already has data you cannot back up.

  1. Restart the PC and press the key to enter firmware setup (often F2, F10, Del, or Esc).
  2. Find the boot mode or UEFI/Legacy setting. It may be under “Boot,” “Startup,” or “Advanced.”
  3. If the disk is GPT, set the mode to UEFI (disable CSM/Legacy). If the disk is MBR, set it to Legacy/CSM.
  4. Save changes and exit. Boot from the Windows installation media again.

Note that changing this setting affects how the PC boots all drives. If you have an existing operating system on another disk, it may not boot after the switch. Also, Secure Boot may need to be disabled when using legacy mode.

Free Up Space or Delete Partitions

Windows needs a minimum amount of free space—typically around 20 GB for 64-bit versions, though 32 GB or more is recommended. If the disk is full or has a small unallocated region, the error appears.

During setup, you can delete existing partitions to create unallocated space. Be careful: deleting a partition erases everything on it. Select each partition on the target disk and click Delete, then click New to create a fresh partition. Windows will automatically create the system reserved partition if the disk is GPT and you are booting in UEFI mode.

If the disk shows as “Unallocated” but the error persists, the disk may be offline. In DiskPart, type select disk X, then online disk, then clean and try again.

Other Common Causes and Fixes

Beyond partition style and space, a few other issues can trigger the error:

  • RAID or Intel RST: If the disk is part of a RAID array or uses Intel Rapid Storage Technology, Windows Setup may not see it. You may need to load the storage driver during installation (click “Load driver” on the disk selection screen) or change the SATA mode in BIOS from RAID to AHCI.
  • Corrupted installation media: A bad USB drive or ISO can cause setup to fail. Recreate the bootable USB using Microsoft’s Media Creation Tool, or try a different USB port (preferably USB 2.0).
  • Disk locked by BitLocker: If the drive was encrypted, unlock it first or use DiskPart’s clean command (which erases encryption keys).
  • Firmware bug: Rarely, a BIOS update is needed to fix compatibility issues with large disks or NVMe drives. Check the motherboard manufacturer’s website for updates.

If you see “Windows cannot be installed to this disk. The selected disk has an MBR partition table” on a UEFI machine, the conversion method above is the standard fix. If you see “This computer’s hardware may not support booting to this disk,” it usually means the firmware is set to UEFI but the disk is MBR—convert to GPT or switch to Legacy mode.

Frequently Asked Questions

Will converting the disk erase my files?

Yes, the clean and convert commands remove all partitions and data. Back up anything important to an external drive before proceeding. If you cannot back up, try the BIOS mode switch instead, which does not touch the disk.

Can I convert MBR to GPT without losing data?

Windows includes a tool called MBR2GPT that can convert without data loss, but it must be run from an existing Windows installation, not from setup. If you have a working Windows on another disk, you can use it. Otherwise, the safe path is to back up and clean the disk.

How do I know if my PC uses UEFI or legacy BIOS?

During setup, the error message often hints at it. You can also check in the firmware settings: if you see “UEFI” or “CSM” options, that is the clue. In Windows, open System Information (msinfo32) and look at “BIOS Mode.” If it says “UEFI,” your firmware is UEFI.

Why does the error say “The selected disk is of the GPT partition style” when I’m trying to install to an MBR disk?

This happens when the disk is GPT but your firmware is set to legacy BIOS mode. Either convert the disk to MBR (using the steps above) or switch the firmware to UEFI. The latter is recommended for modern hardware because GPT supports larger disks and faster boot.

What if I have multiple disks and the error appears on the wrong one?

Make sure you select the correct disk in the setup screen. Disconnect any other drives temporarily to avoid confusion. The disk number in DiskPart may not match the order shown in setup, so verify by size and model.

Can I install Windows to an external USB drive?

Technically yes, but Windows does not support booting from external drives reliably, and Setup may show this error. It is not recommended for a primary installation. Use an internal SATA or NVMe drive instead.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →