Converting a disk from MBR (Master Boot Record) to GPT (GUID Partition Table) is a critical operation that should be approached with caution. Before proceeding, ensure you back up all important data on the disk to avoid data loss. Different operating systems have different tools for this conversion process:
Windows
Using MBR2GPT Tool (Windows 10 and later)
Windows 10, version 1703 and later, include the MBR2GPT.EXE tool which can convert an MBR disk to GPT without data loss. This tool is designed to be used from the Windows Preinstallation Environment (Windows PE) but can also be run from the full Windows 10 operating system.
- Open Command Prompt as Administrator by right-clicking the Start button and selecting "Windows PowerShell (Admin)" or "Command Prompt (Admin)."
- Check if your disk meets the requirements by running:
mbr2gpt /validate /disk:<disknumber>
Replace <disknumber> with the actual number of the disk you want to convert (disk numbers can be found using the Disk Management tool).
- If the validation is successful, run the following command to convert the disk:
mbr2gpt /convert /disk:<disknumber>
- After the process completes, you might need to change your firmware from BIOS to UEFI mode. The exact steps vary depending on your motherboard manufacturer, so consult your motherboard's/user manual for instructions.
Using Disk Management or Diskpart
Important Note: These methods will delete all data on the disk, as they require deleting all partitions on the disk.
-
Disk Management:
- Right-click on the Start button and select "Disk Management."
- Right-click each partition on the disk you wish to convert and select "Delete Volume..." Do this for each partition on the disk.
- Once all partitions are deleted, right-click the disk and select "Convert to GPT Disk."
-
Diskpart:
- Open Command Prompt as Administrator.
- Type
diskpart and press Enter.
- List all disks by typing
list disk and then identify the disk you want to convert by its number.
- Select the disk by typing
select disk X, replacing X with the number of your disk.
- Delete all partitions or volumes on the disk by typing
clean.
- Convert the disk to GPT by typing
convert gpt.
Linux
Linux users can use the gdisk tool to convert from MBR to GPT. This tool is usually not installed by default, so you might need to install it using your distribution’s package manager.
- Open a Terminal.
- Install gdisk (if necessary). For example, on Ubuntu or Debian:
sudo apt-get update
sudo apt-get install gdisk
- Start gdisk on your target disk (replace
/dev/sdx with your actual device):
sudo gdisk /dev/sdx
- Press
r to enter the recovery/transformation menu.
- Press
g to convert MBR to GPT.
- Press
w to write changes to the disk.
- Confirm the operation.
macOS
On macOS, you can use the diskutil command to convert an MBR disk to GPT. Like with Windows and Linux, ensure you have a backup of your data.
- Open Terminal.
- Find the disk identifier with:
diskutil list
- Use the following command to convert the disk, replacing
/dev/diskX with your disk identifier:
sudo diskutil eraseDisk JHFS+ NewDiskGPT /dev/diskX
This will erase the disk, reformat it with a JHFS+ (Mac OS Extended) file system, and convert it to GPT.
Precautions
- Backup: Before converting the disk, back up all important data.
- Operating System Support: Make sure your operating system supports booting from a GPT disk. Most modern operating systems including Windows (64-bit versions starting from Windows 7), macOS, and Linux support GPT.
- UEFI Firmware: Ensure your system's firmware is UEFI-based if you intend to boot from the GPT disk. MBR is often used with legacy BIOS, while GPT is required for UEFI.
This conversion process is relatively straightforward but varies depending on your system setup and the tools you're comfortable using. Always double-check you've selected the correct disk to avoid accidental data loss.