Convert Windows MBR partition to GPT using command line

 

Convert an MBR disk from the command line deleting all data

To complete the disk conversion from the command line with the diskpart disk partition process, follow these steps.

  1. Back up or move the data on the MBR disk prior to conversion.

  2. Open an elevated command prompt: select and hold (or right-click) Command Prompt, and select Run as Administrator.

  3. At the prompt, enter diskpart to initiate the disk partition process.

  4. Prepare the MBR disk for conversion by cleaning (deleting) any partitions or volumes.

    Note

    If the MBR disk doesn't have any partitions or volumes, skip to the last step to apply the conversion.

    1. At the DISKPART prompt, enter list disk. Make a note of the MBR disk number that you want to convert to GPT format.

    2. At the DISKPART prompt, enter select disk <disk-number>, where <disk-number> is the MBR disk number to convert.

    3. At the DISKPART prompt, enter clean to delete all partitions and volumes on the disk.

  5. At the DISKPART prompt, enter convert gpt to convert the MBR disk to the GPT partition format.

The diskpart process notifies you when the conversion completes.

Comments

Popular posts from this blog

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Reduce (shrink) and resize raw disk at Proxmox

How to clone CentOS server to another one