{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreig4fmcesbmvjmodxzw4sxx3dfbsrbjfnp24bhyuy6x4s3k3c3fx6y",
"uri": "at://did:plc:ws6dhxzqnqxu5aqxt4kd27oc/app.bsky.feed.post/3mnea23v5iac2"
},
"coverImage": {
"$type": "blob",
"ref": {
"$link": "bafkreifrmlgd74ikybj333ykswjyl7vbn3vdvlxfhdcokphysz2ybl3k3i"
},
"mimeType": "image/webp",
"size": 94608
},
"description": "How to validate and switch your boot drive's partition style without wiping data, then move the firmware to UEFI.",
"path": "/convert-a-windows-11-system-disk-from-mbr-to-gpt-with-mbr2gpt/",
"publishedAt": "2026-06-03T04:02:44.000Z",
"site": "https://allthings.how",
"tags": [
"MBR2GPT documentation"
],
"textContent": "MBR2GPT.exe converts a system disk from the Master Boot Record (MBR) layout to the GUID Partition Table (GPT) layout without modifying or deleting the data already on it. The tool lives in the `Windows\\System32` directory on any supported version of Windows 11 and Windows 10, and it is the supported way to prepare a drive for UEFI boot and Secure Boot, which Windows 11 requires.\n\n**Quick answer:** Boot into the Advanced Startup command prompt, run `mbr2gpt /validate`, then `mbr2gpt /convert`. After it reports success, restart and switch the firmware from Legacy BIOS to UEFI mode.\n\n* * *\n\n## Requirements before running MBR2GPT\n\nThe tool validates the disk layout before it changes anything, and the conversion stops with an error if any check fails. Confirm these conditions first so the run completes.\n\n * The disk currently uses MBR and is the system disk. MBR2GPT cannot convert non-system data disks.\n * There are no more than three primary partitions, and none of them are extended or logical partitions.\n * One partition is marked active and is the system partition.\n * There is free space for the GPT metadata: 16 KB plus 2 sectors at the start of the disk and 16 KB plus 1 sector at the end.\n * The BCD store on the system partition has a default OS entry pointing to the OS partition.\n * Your device supports UEFI, since the disk can only boot in UEFI mode after conversion.\n\n\n\nIf BitLocker is enabled, suspend protection before you start. After conversion, delete the existing protectors and recreate them to resume BitLocker. Back up important files first, even though the process is non-destructive.\n\n⚠️\n\nOffline conversion of system disks running Windows 7, 8, or 8.1 is not supported. Upgrade to a current version of Windows first, then convert.\n\n* * *\n\n## MBR2GPT syntax and options\n\nThe command takes a single primary action, either `/validate` or `/convert`, followed by optional switches.\n\n\n MBR2GPT /validate|convert [/disk:<diskNumber>] [/logs:<logDirectory>] [/map:<source>=<destination>] [/allowFullOS]\n\nOption| What it does\n---|---\n`/validate`| Runs only the validation checks and reports whether the disk can be converted.\n`/convert`| Validates the disk, then performs the conversion if all checks pass.\n`/disk:<diskNumber>`| Picks the disk to convert. If omitted, the system disk is used.\n`/logs:<logDirectory>`| Writes logs to a folder you specify. Defaults to %windir%. The folder must already exist.\n`/map:<source>=<destination>`| Adds custom MBR-to-GPT partition type mappings. The MBR number is decimal.\n`/allowFullOS`| Overrides the block that limits the tool to Windows PE, so it can run inside full Windows.\n\nYou can read the full reference on the official MBR2GPT documentation from Microsoft.\n\n* * *\n\n## Convert MBR to GPT from the Advanced Startup command prompt\n\nRunning from Windows PE is the default supported environment and avoids the limitation where the in-use system partition cannot be reused.\n\n**Step 1:** Open Settings, go to Recovery, and start Advanced Startup. When the system restarts, choose Troubleshoot, then Advanced options, then Command Prompt.\n\n**Step 2:** Check that the drive qualifies by running the validation command. A passing run ends with a \"Validation completed successfully\" message.\n\n\n mbr2gpt /validate\n\n**Step 3:** Start the conversion. The tool shrinks the system and OS partitions, creates the EFI system partition, installs the boot files, applies the GPT layout, and restores drive letters.\n\n\n mbr2gpt /convert\n\n**Step 4:** Wait for the \"Conversion completed successfully\" line, then close the prompt and restart the computer.\n\n* * *\n\n## Convert from full Windows with /allowFullOS\n\nIf you prefer to run the tool from the desktop instead of Windows PE, add `/allowFullOS` to override the block. Because the current MBR system partition is in use, it cannot be reused, so a new EFI system partition is created by shrinking the OS partition.\n\n**Step 1:** Find the disk number. Press Win + R, type `diskmgmt.msc`, and note the number of the target disk (for example, Disk 0).\n\n**Step 2:** Open an elevated Command Prompt. Press Win + R, type `cmd`, then press Ctrl + Shift + Enter.\n\n**Step 3:** Validate the disk using your noted number.\n\n\n mbr2gpt /validate /disk:0 /allowFullOS\n\n**Step 4:** If validation passes, run the conversion.\n\n\n mbr2gpt /convert /disk:0 /allowFullOS\n\nReplace `0` with your system disk number if it differs.\n\n* * *\n\n## Verify the conversion worked\n\nA successful run prints a sequence ending with \"Conversion completed successfully\" and a reminder to switch the firmware to UEFI. To confirm the new layout, open DiskPart and run `list disk`; the converted disk shows an asterisk in the Gpt column.\n\nYou can also open Disk Management, right-click the disk, choose Properties, and look at the Volumes tab. The Partition style field reads \"GUID Partition Table (GPT)\" once the change is complete. A new FAT32 EFI system partition of about 100 MB (260 MB on 4K sector disks) appears alongside your existing partitions.\n\n* * *\n\n## Switch the firmware to UEFI mode\n\nAfter conversion the disk only boots in GPT mode, so the computer will not start until the firmware is set correctly. Enter the BIOS or firmware settings at startup and change the boot type from Legacy to UEFI. If you are preparing for Windows 11, enable Secure Boot at the same time. The exact menu names vary by motherboard.\n\n* * *\n\n## Why MBR2GPT fails and how return codes map\n\nThe most common failure is disk layout validation. This happens when the disk runs an unsupported older Windows version, when there are more than the allowed partitions, or when there is no free space to create the EFI system partition. Conversion also stops if a volume is encrypted and BitLocker is not suspended.\n\nReturn code| Meaning\n---|---\n0| Conversion completed successfully.\n1| Canceled by the user.\n2| Failed due to an internal error.\n3| Failed due to an initialization error.\n4| Failed due to invalid command-line parameters.\n5| Failed while reading the disk geometry and layout.\n6| Failed because one or more volumes are encrypted.\n7| Failed because the disk layout does not meet requirements.\n8| Failed while creating the EFI system partition.\n9| Failed while installing boot files.\n10| Failed while applying the GPT layout.\n100| GPT layout succeeded, but some boot configuration entries could not be restored.\n\nWhen validation reports too many partitions, delete or move one volume so the disk holds no more than three primary partitions, and back up that data first. If there is no room for the EFI system partition, shrink the OS volume to free unallocated space, then run the tool again. Detailed logs are written to `setupact.log` and `setuperr.log` in `%windir%`, alongside `diagerr.xml` and `diagwrn.xml`, and they pinpoint exactly which check stopped the run.\n\nOnce the disk shows GPT in DiskPart and the firmware is set to UEFI with Secure Boot on, the machine is ready for an in-place Windows 11 upgrade with no need to wipe or reinstall.",
"title": "Convert a Windows 11 System Disk from MBR to GPT with MBR2GPT",
"updatedAt": "2026-06-03T04:02:44.997Z"
}