guide · static export
PC · disk

Convert an MBR Disk to GPT Without Losing Windows

mbr2gpt rewrites the partition table in place, keeps the installed Windows and its license, and switches the machine to a UEFI boot. It validates before it touches anything.

by@guidox updated:10/31/26 time:40 min level:Advanced tested on:Windows 11 24H2 works on:Windows 10 1703+, Windows 11 tools:Command Prompt as administrator, A system image, UEFI firmware setup
TL;DR

Confirm the disk is MBR and the firmware supports UEFI, run **mbr2gpt /validate /allowFullOS**, then **/convert**. Disable CSM afterwards or the machine will not boot in UEFI mode.

Before you start

Requirements

  • Admin rights
  • A full backup or image
  • Firmware with UEFI and CSM switch
  • 40 minutes
Step by step

Instructions

01

Read the partition style and the boot loader

The conversion only makes sense for an **MBR system disk** with a legacy loader. Both facts come from one command each, before anything is changed.

Get-Disk | Select-Object Number,FriendlyName,PartitionStyle,IsBoot,IsSystem
bcdedit /enum {current} | Select-String -Pattern 'path|device'
02

Check the preconditions mbr2gpt enforces

**validate** is read-only and lists every reason the conversion would fail: extended or logical partitions, more than three primary partitions, not enough free space at the end of the disk.

mbr2gpt /validate /disk:0 /allowFullOS
Get-Partition -DiskNumber 0 | Select-Object PartitionNumber,Type,Size,Offset
⚠ warningSuspend or remove any full-disk encryption before this step. A converted table under an encrypted volume is a restore job, not a repair.
03

Free the space the conversion needs

The GPT header needs room at both ends of the disk. A partition that reaches the last sector blocks the conversion until you shrink it.

Get-Partition -DiskNumber 0 | Sort-Object Offset -Descending | Select-Object -First 1 PartitionNumber,Size,Offset
Get-Disk 0 | Select-Object Number,Size,LargestFreeExtent
04

Take the backup, then convert

The conversion rewrites the partition table; a power loss in that second is not recoverable by software. With the image in hand, run the convert command from a full Windows session.

wbadmin start backup -backupTarget:E: -include:C: -allCritical -quiet
mbr2gpt /convert /disk:0 /allowFullOS
⚠ warningIf **/allowFullOS** fails, reboot into the recovery environment and run the same command without that switch. Running it live is the convenience, not the requirement.
05

Switch the firmware and boot

The disk is GPT now, but the machine still starts in legacy mode until you turn off CSM. That single step is what turns the conversion into a UEFI boot.

:: firmware setup > Boot > CSM/Legacy > Disabled > save and exit
Get-Disk | Select-Object Number,PartitionStyle
bcdedit /enum {current} | Select-String -Pattern 'path'
06

Verify and enable Secure Boot

A UEFI boot with a signed loader is the configuration that can use Secure Boot. Confirm both, then turn the firmware feature on.

Confirm-SecureBootUEFI
Get-Partition -DiskNumber 0 | Select-Object PartitionNumber,Type,Size
msinfo32
Troubleshooting

Common issues

validate fails with 'cannot find OS partition'

The command is looking at another disk or the recovery partition layout confuses it. Confirm the disk number with Get-Disk and pass it explicitly.

The machine does not boot after the conversion

CSM is still enabled or the boot order points at the old entry. Disable legacy support, then select the Windows Boot Manager entry by name.

/convert reports that the layout is not supported

Extended or logical partitions are present. Back up, delete the extended container, create primary partitions again, and retry the conversion.

Windows starts but activation complains

The digital license is bound to the hardware, not the partition table. Re-run activation troubleshooting after the first successful UEFI boot.

FAQ

Frequently asked

Is the conversion reversible?

Not with the same tool. Going back to MBR means a reinstall or a restore of the image you took before step 4, which is why that step is not optional.

Do I need to reinstall Windows 11?

No. That is the point of the tool, and it keeps installed programs, settings and the licence.

How to undo this

Restore the system image taken in step 4 and re-enable CSM in the firmware. There is no supported in-place path back to MBR.

Changelog · 1 entry
  1. 2026-10-31
    First version
Interactive version: checklist, feedback, related guides →

Free · no account needed · tracks your progress