Can t install windows on this partition

Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Windows Setup: Installing using the MBR or GPT partition style

  • Article
  • 12/15/2021
  • 3 minutes to read

In this article

When installing Windows on UEFI-based PCs using Windows Setup, your hard drive partition style must be set up to support either UEFI mode or legacy BIOS-compatibility mode.

For example, if you receive the error message: Windows cannot be installed to this disk. The selected disk is not of the GPT partition style, it’s because your PC is booted in UEFI mode, but your hard drive is not configured for UEFI mode. You’ve got a few options:

  1. Reboot the PC in legacy BIOS-compatibility mode. This option lets you keep the existing partition style. For more info, see Boot to UEFI Mode or Legacy BIOS mode.

  2. Configure your drive for UEFI by using the GPT partition style. This option lets you use the PC’s UEFI firmware features.

    You can preserve your data and convert the drive using the MBR2GPT tool, or you can choose to reformat the drive using the instructions below. Reformatting will erase all the data on the drive.

Why you should convert your drive

Many PCs now include the ability to use the UEFI version of BIOS, which can speed up boot and shutdown times and can provide additional security advantages. To boot your PC in UEFI mode, you'll need to use a drive formatted using the GPT drive format.

Many PCs are ready to use UEFI, but include a compatibility support module (CSM) that is set up to use the legacy version of BIOS. This version of BIOS was developed in the 1970s and provides compatibility to a variety of older equipment and network configurations, and requires a drive that uses the MBR drive format.

However, the basic MBR drive format does not support drives over 4TB. It's also difficult to set up more than four partitions. The GPT drive format lets you set up drives that are larger than 4 terabytes (TB), and lets you easily set up as many partitions as you need.

Reformatting the drive using a different partition style

Use Windows setup to Wipe and convert the drive

  1. Turn off the PC, and put in the Windows installation USB key or DVD.

  2. Boot the PC to the USB key or DVD in UEFI mode. For more info, see Boot to UEFI Mode or Legacy BIOS mode.

  3. In Windows setup, When choosing an installation type select Custom.

  4. On the Where do you want to install Windows? screen, select each of the partitions on the drive where you're installing Windows, and select Delete. The drive will show a single area of unallocated space.

    Caution

    If your PC has multiple drives, make sure you're deleting the partitions on the correct drive.

  5. Select the unallocated space and click Next. Windows detects that the PC was booted into UEFI mode, and reformats the drive using the GPT drive format, and begins the installation.

To manually wipe a drive and convert it to GPT

  1. Turn off the PC, and put in the Windows installation DVD or USB key.

  2. Boot the PC to the DVD or USB key in UEFI mode. For more info, see Boot to UEFI Mode or Legacy BIOS mode.

  3. From inside Windows Setup, press Shift+F10 to open a command prompt window.

  4. Open the diskpart tool:

    diskpart
    
  5. Identify the drive to reformat:

    list disk
    
  6. Select the drive, and reformat it:

    select disk 
    clean
    convert gpt
    exit
    
  7. Close the command prompt window.

  8. Continue the Windows Setup installation.

    When choosing an installation type, select Custom. The drive will appear as a single area of unallocated space.

    Select the unallocated space and click Next. Windows begins the installation.

Make sure Windows Setup boots to the correct firmware mode

To automate this process, you'll need to run Windows Setup from Windows PE and use a script to detect which mode you’re in before installing Windows. For more info, see WinPE: Boot in UEFI or legacy BIOS mode.

Boot to UEFI Mode or Legacy BIOS mode

There are many reasons as to why Windows can't be installed on a disk, but it's not immediately obvious as to what those reasons are. Fortunately, there is a range of different fixes you can try to get Windows installed onto your disk.

Let's explore how to fix the "Windows Cannot Be Installed to This Disk" error and the different forms that it can take.

Why Does the "Windows Cannot Be Installed to This Disk" Error Appear?

There are several iterations of the “Windows cannot be installed to this disk” error. Identifying which iteration you are getting goes a long way to figuring out what you need to do to get Windows installed.

The error occurs when your hard drive partition style doesn’t support your BIOS (Basic Input/Output System) version. BIOS has two versions: Unified Extensible Firmware Interface (UEFI) and Legacy BIOS.

As you can likely tell by the names, UEFI is more modern while Legacy BIOS is pretty old. Each of these versions only works with a certain hard drive partition style. When there’s a mismatch, you get the “Windows cannot be installed to this disk” error.

What Partition Style Will Work for You?

To figure out what you need to do to fix this error, you need to take a look at what the second sentence of the error message reads.

If the second sentence in your error message reads “The selected disk is of the GPT partition style,” it means your PC has a Legacy BIOS. BIOS doesn’t work with the GPT partition style, so you’ll need to convert to MBR.

If the second sentence in your error message reads “The selected disk has an MBR partition table. On EFI systems, Windows can only be installed to GPT disks,” it means your PC has a UEFI BIOS. You can install Windows only to GPT partition style disks on an EFI system.

How to Fix the "Selected Disk Is of the GPT Partition Style” Error

If your PC uses Legacy BIOS, you can’t install Windows on a GPT partition disk. In this case, you’ll need to convert the drive before you can install Windows.

Check Your BIOS Version to Confirm UEFI Isn’t Available

Before you do that, double-check to see if your PC supports UEFI. You can check your BIOS version by going into the BIOS when your PC boots. Start your PC, and press the BIOS key. The BIOS key may differ among manufacturers, but the most commonly used keys are F1, F2, F10, F12, or DEL.

When you’re in BIOS, you’ll need to look for the Boot mode. Again, there is no one step-by-step process here. You will need to look through all tabs, but generally, there’s a Boot tab, and this is where you’ll find Boot mode.

If your boot mode is set to Legacy and UEFI doesn’t appear as an option, you can’t use your GPT disk partition. At this point, you’ll need to convert it to an MBR partition table.

Convert an MBR Disk to GPT

There are two methods to convert a GPT disk partition to MBR. Unfortunately, both methods wipe the data stored on the disk. Alternatively, you could use third-party software to convert your GPT partition disk to MBR without losing data.

1. Convert From MBR Disk to GPT Using Command Prompt

You can use the command prompt if you don’t have any other operating systems installed on another hard drive. Note that this method will erase all the data stored on the drive you’re about to convert.

  1. Start by inserting Windows Installation Disk and wait for the Windows Setup screen. Press Shift + F10 to open the command prompt.
  2. Type diskpart and press Enter.
  3. Type list disk to fetch a list of drives on your computer.
  4. Choose the disk you want to convert to MBR. This should be the disk on which you want to install Windows. You can choose the disk with select disk 0.
  5. Run clean then convert mbr to convert the partition to MBR.

CMD diskpart utility

When you’re done, exit the command prompt. Return to the Windows installation and run the install again.

2. Convert From MBR Disk to GPT Using the Disk Management Utility

If your system already has another copy of Windows on a different drive, you can use the Disk Management Utility on that copy to convert a GTP partition disk to MBR.

  1. Type Disk Management in the search bar beside the Start Menu. The first item in the search results will be Create and Format Hard Disk Partitions. Press Enter to open the Disk Management Utility.
  2. Find the disk you’re trying to convert from the list displayed in the utility. Right-click on it and select Delete volume.
  3. Next, right-click on the same disk and select Convert to MBR disk.

Disk utility Windows

How to Fix the "Selected Disk Has an MBR Partition Table” Error

If your PC has a UEFI BIOS, you’ll need a GPT partition disk to install Windows. If you have an MBR partition, you’ll need to convert it to a GPT partition disk.

1. Try to Disable EFI Boot Sources

If you don’t want to convert the partition, go to the BIOS and see if it allows you to disable EFI boot sources. When you’re in the BIOS, navigate to the Boot Order section and search for EFI boot sources. Disable it and run Windows installation. Once the installation completes, re-enable EFI boot sources.

If the option to disable EFI sources isn’t available, you’ll need to convert the partition.

2. Convert From MBR to GPT Using the Command Prompt

The method we used to convert the GPT partition to MBR also works here. The only thing that will change is the command in step 5. Instead of convert mbr, type convert gpt instead.

When you’re done with the previous steps, exit the command prompt and continue with the installation.

3. Convert From MBR to GPT Using a Windows Installation Disk

During the installation process, you’ll be asked to select a disk on which you want to install Windows. Select the disk you want to install Windows to and click on Delete.

Next, choose the same disk and click on New and create a partition in GPT style. Click Next and continue with the installation. This should fix the error and you’ll be able to move forward with the installation.

Disk Partition Error Solved

Hopefully, this solved your “Windows cannot be installed to this disk” error. There are various other issues you may encounter during the Windows installation process. However, they are almost always an easy fix.

How do I fix Windows Cannot be installed on this partition?

In this case, you'll need to convert the drive before you can install Windows..
Check Your BIOS Version to Confirm UEFI Isn't Available. ... .
Convert an MBR Disk to GPT. ... .
Try to Disable EFI Boot Sources. ... .
Convert From MBR to GPT Using the Command Prompt. ... .
Convert From MBR to GPT Using a Windows Installation Disk..

How do I fix Windows 10 Cannot be installed on drive 0 partition 1?

How to Fix Windows Cannot Be Installed on Drive (0).
Method 1: Erase your drive to avoid compatibility with previous partitioning systems..
Method 2: Select the correct option for booting, Legacy BIOS or UEFI..
Method 3: Change the partitioning table from GPT to MBR (Please backup your data if any).

How do I fix the selected disk is of GPT partition style?

Press keys Shift + F10 when you see the "The selected disk is of the GPT partition style" error during system installation, which opens Command Prompt. If that does not work, please go back to the first screen of the installation and press Shift + F10. Step 2. Type diskpart in the command prompt and press Enter.

Can I install Windows on GPT partition?

We recommend performing Windows® 10 installations enabling UEFI with a GUID Partition Table (GPT). Some features may not be available if you use the Master Boot Record (MBR) style partition table. System acceleration with Intel® Optane™ memory is not available when using MBR.