Windows DiskPart / How to Clear a Data Disk and Convert It to GPT or MBR

To convert a Windows data disk to GPT or MBR, open DiskPart as administrator, verify the target disk, then run convert gpt or convert mbr. If it has partitions, back up the data and remove them with clean first. Use this procedure only on a data disk you can erase.

Should you choose GPT or MBR?

GPT (GUID Partition Table) is the usual choice for Windows 10 and 11. Use MBR (Master Boot Record) when a legacy device requires it. On disks with 512-byte logical sectors, MBR can address about 2 TiB (roughly 2.2 TB). Choose GPT to use the full capacity of a larger drive.

To keep data while converting a Windows boot disk from MBR to GPT, first read the validation requirements in Microsoft’s MBR2GPT documentation. That tool is for eligible system disks, and the firmware must boot in Unified Extensible Firmware Interface (UEFI) mode after conversion.

Open DiskPart as administrator and identify the disk

Back up the target to a different physical disk or storage location and open files from the backup to verify it. Close programs using the disk. Find Command Prompt or Terminal in Start and select Run as administrator. Run this command to get the DISKPART> prompt.

diskpart

List the disks. Compare capacity and model when identifying the target. Two disks can have the same capacity, and your disk numbers may differ from an example. If the disk already uses the desired style, skip the conversion. This procedure is for basic disks. A star in the Dyn column identifies a dynamic disk.

list disk

Replace <N> with the disk number you verified on your computer. Compare the model, volumes, and drive letters from detail disk with Disk Management. Stop if the disk identity is uncertain or if you selected a system or boot disk.

select disk <N>
detail disk

Run clean only if partitions exist

This command removes all partition and volume information from the selected disk. Run it only after verifying the backup and confirming that the data disk can be erased. Skip this step if the disk has no partitions or volumes.

clean

Wait for the success message before proceeding. If you ran it on the wrong disk, stop and avoid creating or formatting any volumes on that disk. See Microsoft’s DiskPart partition conversion guide for the conversion procedure.

Convert to GPT or MBR

With the target disk selected and no partitions on it, run this command to use GPT.

convert gpt

If a legacy device requires MBR, run the following command instead. Run only the command for the style you need.

convert mbr

The success message confirms that the partition style has been created. If the command fails, run detail disk again and check the selection and remaining volumes. Investigate why the disk is offline or read-only if either status appears.

Verify the result and create a volume

Run list disk again and check the target row’s Gpt column. GPT disks show * there. For MBR, verify the partition style under Disk Management → disk Properties → Volumes → Partition style. A star at the left of the row marks the selected disk.

list disk
exit

In Disk Management, right-click the target’s Unallocated space and create a New Simple Volume. Choose a size, assign a drive letter, and format for your use. NTFS is common for a data volume used only in Windows. See Microsoft’s disk initialization and volume creation guide.

If you removed the partitions in DiskPart and want to initialize in the graphical interface, right-click the disk label on the left in Disk Management and select Initialize Disk. Reconfirm the disk number, select GPT or MBR, and create the volume the same way.