Categories About Us Contact Us Become a Member

MBR2GPT Validation Failed? How to Fix Disk Layout Errors

Back up your files before you touch the disk, because Microsoft says an MBR2GPT conversion cannot be undone. Validation fails when the disk breaks one of the layout rules that Microsoft lists, like more than three primary partitions or an extended partition. Read the log, fix the rule that failed and validate again.

By Neeraj Singh ~7 min Updated Nov 2026 Checked against Microsoft Learn
Error message
Disk layout validation failed for disk 0
Summary

Microsoft says the MBR2GPT conversion cannot be undone. Back up your files first. Validation with mbr2gpt /validate fails when the disk breaks a layout rule. Open setupact.log to see the check that failed. Microsoft allows at most three primary partitions, one active system partition and no extended or logical partition. Suspend BitLocker and leave free space at the front and end of the disk. Add /allowFullOS when you convert from Windows. Validate again until the output says Validation completed successfully.

What MBR2GPT validation failed means

MBR2GPT checks the disk layout before it changes anything. Microsoft says that if any check fails, the conversion does not proceed and the tool returns an error.

Secure Boot needs UEFI and UEFI needs a GPT system disk. That is why gamers and upgraders try the tool. A failed validation blocks the next step.

Microsoft does not publish the text of every validation message. It publishes the checks and a list of return codes. The log and the code point to the cause.

Why mbr2gpt /validate fails

The disk holds more than three primary partitions in the MBR partition table.
The disk has an extended or logical partition.
No partition is set as active and as the system partition. The BCD store can also lack a default OS entry that points to an OS partition.
The disk lacks free space for the GPT at the front or end of the disk.
A BitLocker volume on the disk is still protected (return code 6).
A partition has an MBR type that Windows does not recognize and you gave no /map option.

✓ How to fix it

Method 1

Back Up and Read the Log

1Back up your files to an external drive first. Microsoft says you cannot reverse the conversion after it finishes. The fixes below can delete partitions.
2Open Command Prompt as administrator and create a folder for the logs. Microsoft says the folder must already exist.
mkdir C:\mbr2gpt-logs
3Validate the disk and send the logs to that folder. Use your own disk number if it is not 0.
mbr2gpt /validate /disk:0 /logs:C:\mbr2gpt-logs
4Open setupact.log and setuperr.log in that folder with Notepad. Microsoft says these two files hold the most detail. Without /logs, the files go to %windir%.
5Check the return code too. Code 7 means the disk layout does not meet requirements and code 6 means an encrypted volume. Code 5 means MBR2GPT could not read the layout and code 8 means it could not create the EFI system partition.
echo %errorlevel%
Method 2

Fix the Partition Layout

1Press the Start button, type diskmgmt.msc and press Enter. Find the disk that holds Windows.
2Count the primary partitions. Microsoft allows at most three in the MBR partition table.
3Look for an extended partition with logical drives inside. Microsoft says the disk cannot have any extended or logical partition.
4Move the data off every logical drive, right-click it, select Delete Volume and select Yes. Microsoft warns that you must back up any data on the disk first.
5Confirm that one partition is the active system partition and that Windows boots from this same disk. Microsoft requires an active system partition and a BCD default OS entry that points to the OS partition.
6Validate again. If the disk still fails, go to Method 4 or Method 5. Microsoft explains every check on the MBR2GPT.exe page on Microsoft Learn.
Method 3

Suspend BitLocker Before You Validate

1Return code 6 means one or more volumes on the disk are encrypted. Microsoft says you can convert a disk with BitLocker volumes as long as protection is suspended.
2Open Command Prompt as administrator and suspend protection on the Windows drive. The -rc 0 option suspends it until you resume it yourself.
manage-bde -protectors -disable C: -rc 0
3Validate and convert the disk. Then resume BitLocker. Microsoft says the existing protectors must be deleted and recreated after the conversion.
4Read the manage-bde protectors page on Microsoft Learn for the exact options.
Method 4

Free Up Space for the GPT and the EFI Partition

1MBR2GPT needs unpartitioned space for the GPT. Microsoft lists 16 KB plus 2 sectors at the front of the disk and 16 KB plus 1 sector at the end.
2Microsoft says it reuses your MBR system partition only when that partition is at least 100 MB (260 MB on 4K sector disks) and no larger than 1 GB. Otherwise it creates a new EFI system partition by shrinking the OS partition.
3In Disk Management, right-click the last volume on the disk and select Shrink Volume. Follow the on-screen instructions and leave unallocated space behind it.
4Microsoft says the shrink stops at files it cannot move, like the paging file or the shadow copy storage area. Read the shrink a basic volume page on Microsoft Learn if the shrink size looks too small.
5Validate again after you free the space.
Method 5

Use /allowFullOS to Convert From Windows

1Microsoft says MBR2GPT works only in Windows PE by default and blocks itself in full Windows. The /allowFullOS option removes that block.
2Some guides tell you to add /allowOnline. Microsoft does not list that option on its MBR2GPT page. Use /allowFullOS.
3Validate with the option included. Use your own disk number if it is not 0.
mbr2gpt /validate /disk:0 /allowFullOS
4Convert only after the output says Validation completed successfully. Do not restart until the next step is done.
mbr2gpt /convert /disk:0 /allowFullOS
5Open your firmware settings and switch the boot mode to UEFI. Microsoft warns that the converted disk boots only in UEFI mode. Check the result with How to Check If Your PC Uses UEFI or Legacy BIOS.
Method 6

Start Over on an Empty Disk When Nothing Else Works

1Use this last method only when validation keeps failing. It erases the disk. Back up everything first.
2Microsoft says you can change the partition style of a disk only when it has no partitions or volumes.
3Delete all volumes in Disk Management, right-click the disk and select Convert to GPT Disk. The Disk Management page on Microsoft Learn lists the steps.
4Install Windows again in UEFI mode on the empty GPT disk. If Setup blocks you, read Selected Disk Is of the GPT or MBR Partition Style.

Back up your files before any MBR2GPT step, because Microsoft says the conversion cannot be undone. Validation fails when the disk breaks a layout rule. Read setupact.log, fix the partitions, suspend BitLocker and leave free space. Use /allowFullOS to convert from Windows and switch the firmware to UEFI afterward.

Frequently asked questions

What does MBR2GPT disk layout validation failed mean?
It means the disk broke one of the layout checks that MBR2GPT makes before it converts. Microsoft lists the checks. The setupact.log file shows which one failed. Fix that rule and validate again.
Will MBR2GPT delete my files?
Microsoft says the tool converts MBR to GPT without modifying or deleting data on the disk. It also says the conversion cannot be undone. Back up your files before you start.
How many partitions can an MBR disk have for MBR2GPT?
Microsoft allows at most three primary partitions in the MBR partition table. The disk also cannot have an extended or logical partition.
What does return code 7 mean in MBR2GPT?
Code 7 means the conversion failed because the geometry and layout of the selected disk do not meet requirements. Check the partition count, the extended partition and the free space at the front and end of the disk.
Is there an /allowOnline option in MBR2GPT?
Microsoft does not list /allowOnline on its MBR2GPT page. The documented option is /allowFullOS, which lets you convert the disk from full Windows.
Does MBR2GPT work with BitLocker turned on?
Only when protection is suspended. Microsoft says you can convert a disk with BitLocker volumes as long as protection is suspended. You must delete and recreate the protectors afterward.
Do I need to change BIOS settings after MBR2GPT?
Yes. The converted disk boots only in UEFI mode. Switch the firmware boot mode to UEFI. Microsoft also says to disable CSM and enable Secure Boot.
Can I use MBR2GPT on Windows 7 or 8.1?
Microsoft says offline conversion of disks with Windows 7, 8 or 8.1 is not officially supported. Upgrade Windows to a supported version first and then convert the disk.

Still not working?

If validation still fails, read Selected Disk Is of the GPT or MBR Partition Style for the clean install route. Gamers who need Secure Boot can follow FACEIT Secure Boot or Valorant Secure Boot Error after the conversion. You can also submit your error to us for a tailored fix.

Was this fix helpful? Thanks for your feedback!