Partition table issue

So I’ve been trying to install Winows10 while having Ubuntu 16.04 on dual boot. I was messing around the gparted to allocate 150gb out of the 500gb for Windows10. After formatting the partition to fat32, I plugged in my bootable usb for windows and later on it gave me an error for having an MBR Partition and convert it to GPT. I tried doing that but gparted gave me an error saying that I already had 2 partition table created so I went into the “disk” section of ubuntu where I unmounted my 150gb partition and did a few more stuff to find out later on that gparted shows my entire 500gb as unallocated.

How do I fix this?

So this site is for the co-ordination of the Ubuntu project(s), and not support.

For Ubuntu Support options, including partitioning and install support, please have a look at