1

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!

2

First you need to find out which is your disk of interest. Boot your Ubuntu USB and run lsblk. 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. sdb2).

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. then press y to confirm this. Finally press 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.

0

Boot linux and use dd.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.