Remove GPT

I just started a new job working in a department as their head “Linux” guy and I’ve been setting up my work machine to connect to all their different protocols, programs, etc. After I got my main linux partition up and running on the fancy SSD drive they provided me, I installed Windows 7 onto a portion of the second, slower, drive in the case. I’m planning on setting up an ESXi host on one of the unused Rack servers here and that makes it a necessity. It’s also nice to have a Windows machine available if needed.

Anyways, to make a long story short, when I went back into my Linux partition and opened up gParted, to fill the leftover space with an empty partition to use between my Windows and Linux OS, I ran into an error I’ve never seen before.

gParted prompted me with:

contains GPT signatures, indicating that it has a GPT table.  However, it does not have a valid fake msdos partition table, as it should.  perhaps it was corrupted — possibly by a program that doesn’t understand gpt partition tables.  or perhaps you deleted the gpt table, and are now using an msdos partition table.  is this a gpt partition table?

When I looked at /dev/sdb with gparted it showed the entire drive with unrecognized space. Now I don’t know why it was showing the drive using a GPT table as it was formatted to be a Windows 7 drive, but I figured I’d remove that. After some digging and help from a post over at ubuntuforums.org I found a super simple way to remove the old GPT table that was saved on the drive.

sudo sgdisk –zap /dev/sdb

That’s all it took to fix the error and after resetting gParted I was able to successfully partition the rest of my drive out. Awesome.