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. Back up or move the data on the MBR disk prior to conversion. Open an elevated command prompt: select and hold (or right-click) Command Prompt , and select Run as Administrator . At the prompt, enter diskpart to initiate the disk partition process. 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. At the DISKPART prompt, enter list disk . Make a note of the MBR disk number that you want to convert to GPT format. At the DISKPART prompt, enter select disk <disk-number> , where <disk-number> is the MBR disk number to convert. At the DISKPART prompt, enter clean to delete all partitions and volumes on the disk. At the DISKPART prompt,