Ubuntu – How to remove GPT from HDD


I have a Asus K55VM-Sx027V laptop and I formated it with Ubuntu because whenever I tried to install Windows 7 64bit, it wouldn't let me because my HDD had GPT protection.

Now that I have Ubuntu 12.10, how do I remove GPT protection from my laptop?

Best Answer

Use gdisk instead of fdisk. It isn't installed by default, so get it with:

sudo apt-get install gdisk

Then umount the drive and call gdisk for the device:

sudo gdisk /dev/sdX

It will prompt you to select the partition:

Found valid MBR and GPT. Which do you want to use?
 1 - MBR
 2 - GPT
 3 - Create blank GPT

Select the GPT one. In my case, 2. Use the ? command to print the command list. Enter x for expert options, then z to zap the GPT table and all the data on the disc:

Command (? for help): x 

Expert command (? for help): z
About to wipe out GPT on /dev/sdx. Proceed? (Y/N): y
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Blank out MBR? (Y/N): y