I'm trying to completely remove linux from my machine to make way for Windows, but to do that I need to change my disk type to GPT instead of MBR. I have a bootable usb with Ubuntu on it that I can use, but I don't know what steps to take in order to make the changes necessary. Any and all help will be appreciated!
First you need to find out which is your disk of interest.
Boot your Ubuntu USB and run
Look for the line that has SIZE matching what you expect for your disk.
The first column will say something like
sdb (ignore the partitions e.g.
Next use the
gdisk command to create a GPT on the disk you found in the previous step.
Run the following command to create it (where sdb is the identifier you found in the previous step).
sudo gdisk /dev/sdb
In this interpreter press
o to create a new GPT.
y to confirm this.
w to write the changes you just made.
Now the disk will be wiped with a new GPT. You can boot your windows medium and go ahead with your install.
Boot linux and use
dd if=/dev/zero of=/dev/hda bs=512 count=1
That will wipe the MBR, which is all you need. When you install Windows it will see a blank boot sector and create a GPT.