Convert an existing Windows 10 Installation from Legacy BIOS to UEFI

Created by NHC IT Support, Modified on Thu, 21 Nov, 2024 at 6:33 AM by NHC IT Support

Convert an existing Windows 10 Installation from Legacy BIOS to UEFI

One of the critical system requirements for Windows 11 is a GPT Installation, which must be based on UEFI. This article explains how to convert existing Windows 10 Installation from Legacy MBR partition scheme to UEFI, using Microsoft's MBR2GPT.exe tool without losing any data.

Convert MBR to GPT without data loss

Windows has an in-built tool, called MBR2GPT which can help to convert a Legacy Windows 10 Installation(also called MBR), to modern UEFI, based on a GPT partition scheme. There are multiple steps involved in the process and some pre-requisites, discussed below:

Pre-requisites:

  1. The MBR disk must have at most 3-partitions.

  2. The OS must be 64-bit.

  3. Bitlocker or encryption must be turned off.

  4. There should be an Operating system on the disk.

  5. One of the partitions must be active(confirm that from disk Management).

  6. No dual boot.

  7. Windows 10 version must be at least version 1703.

How MBR2GPT works.

MBR2GPT tool works by first validating the disk. An EFI system partition is created if the disk is validated and UEFI boot files are installed. After that, layout and Boot configuration data are updated, matching with the new values.


Step 1: Boot to the Recovery environment

To boot to WinRE, from where Windows can trigger the MBR2GPT tool, please see the steps below:

  1. On the Lock screen, press and hold the Shift key while choosing Restart from the Power menu. Continue pressing the shift key until you see the Windows Recovery environment, asking you to select an option.
    Image

  2. Click Troubleshoot>Advanced options>Command Prompt.

  3. The computer would restart.

  4. Login to your account.

Step 2: Validate if the MBR2GPT tool can convert your disk 

On the Command Prompt Window, our next step would be to check if the tool can convert the disk to GPT. To do this, execute the following command:

mbr2gpt.exe /validate

The output should tell you if the validation is successful. If the disk is validated, conversion is possible.

Image

Step 3: Convert the disk.

The next step is to convert the disk. For that, use the /convert switch.

mbr2gpt.exe /convert

The process would take some minutes and tell you the output.

Image

Step 4: Change the boot order in firmware Settings

Now to boot from GPT, the settings in the firmware need to be changed. Boot to the PC's firmware settings, and do the following:

  1. Boot method: UEFI from Legacy.

  2. UEFI-CSM: Disabled.

  3. Secure Boot: ON.

The boot order would usually show Windows Boot Manager at the top. Save the changes in the BIOS menu.
The device should now have a UEFI boot method with a GPT disk layout.

Troubleshooting

If the MBR2GPT tool is failing to convert your installation, here are some steps you can try.

  1. Make sure the existing MBR disk has only three partitions or less: If the qualifying hard disk has more than three partitions, this tool would not work. To confirm the number of partitions, you can invoke the disk management tool from the Start menu. The three-count includes System partitions as well. If that is the case, decrease partitions using the Disk Management tool by merging and try again. 

  2. Run a disk check: If there is corruption on the disk, the tool may fail. To fix this, run a full disk check, preferably from the Recovery environment. See the steps here.

  3. Try running from a USB Installation media: Another option to invoke the MBR2GPT tool from a USB Installation media. After the computer has booted from the Installation media, click Repair your computer>Troubleshoot>Command Prompt.

  4. Return codes: If the conversion failed, the tool would return a code, which would tell you what went wrong. Appendix A table explains the return codes.

  5. Investigate Log files: If nothing has helped, it may be wise to look at the logs to see what went wrong. By default, the MBR2GPT tool creates Setupact.log and Setuperr.log in the C:/Windows directory, which records the process. Setuperr.log contains all the errors encountered during the conversion, which may give a hint. In addition, /logs switch can also redirect logging to a custom path if you need, like for an external drive which helps investigate later. The command for logging to a custom path would be like this(replace D:\Work with your desired path).

    1. mbr2gpt.exe /convert /logs:D:\Work

  6. If nothing has helped, perform a clean installation of Windows 10 using the GPT partition scheme. You must back up the data before, as a clean install would remove everything. As the Media Creation tool makes the media according to the existing method, which is likely MBR, use Rufus to create Installation media and choose GPT partition scheme for UEFI.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article