Miralinux Blog

  • Home
  • Linux
    • Scripts
    • CentOS
  • Apple
  • Microsoft
    • Features
    • Office
    • Windows
  • Learning
  • Games
  • Multimedia
    • XBMC
  • Other
    • About WordPress
  • Links
    • General
    • Software
      • Autocad
    • Hardware
      • BIOS
    • Linux
    • WiKieS

Posted on 2022/06/17 by arno Posted in Features, Windows

source: https://answers.microsoft.com/en-us/windows/forum/all/convert-an-existing-windows-10-installation-from/aa8c2de3-460b-4a8c-b30b-641405f800d7

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.

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.
  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.

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.

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. My colleague Shawn has a good tutorial on this on Tenforums.

Appendix 1:

Return CodeDetails
0Conversion completed successfully.
1User canceled.
2Internal error occurred.
3Disk initialization error.
4Command-Line parameters were incorrect.
5MBR2GPT could not read the disk layout.
6One of the volumes was encrypted on the disk.
7The disk does not meet the requirements.
8EFI Partition could not be created.
9Error installing boot files.
10Error while applying GPT layout.
« Convert MBR to GPT (BIOS to UEFI)
  • Login
  • Mother of all Portals
  • .Handy .Handig
  • Links – wikis – wikies

Archives

  • June 2022
  • October 2021
  • June 2021
  • September 2016
  • April 2016
  • March 2016
  • November 2014
  • September 2014
  • August 2014
  • July 2014
  • April 2014
  • March 2014
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
CyberChimps ©2025