MacOS – How to i recreate the Partition Table

bootdisk-utilityhard drivemacospartition

What happened:

While i was tinkering around with my bootcamp partition something went terribly wrong. end of story is, i have no partitions left in my partition table

The current situation:
i can boot my mac into internet recovery but diskutil shows only one partition on my 500gb harddrive.

the previous partitions were:

1: mac partition – filevault (SHOULD BE RECOVERED):

was ~320 GB in size and the standard mac partition at the beginning, which got shrinked at the end to fit the bootcamp win partition (2). the mac partition uses filevault and runs as mentioned the yosemite public beta.

2: windows 8.1 bootcamp partition (CAN BE DELETED)

the question:

can i somehow recreate my partition table and make my mac partition bootable again?
if the windows partition is lost, so be it, as long the mac one is saved.

TestDisk looks promising as i assume i have to somehow scan my harddrive for partitions and recreate the partition table manually.

How should i continue? if you need any additional information just ask!
thanks in advance for any help!

UPDATE:

this is what test disk says, which is exactly my partition scheme from before the mess-up. How should i proceed? rewrite the table to contain only EFI and the unknown "macintosh HD" which is the one to be saved?
TestDisk output

Best Answer

Ok i managed to boot my osx partition again.

To find the hidden partition i created a bootable OSX Mavericks installation on an external harddrive on which i installed TestDisk.

TestDisk scanned my builtin HDD for partitions and created the output seen in the question.

To restore the table gdisk with the given sectors gdisk was used.