How to fix non-bootable OS X, after Boot Camp problems? I accidentally removed the "Recovery HD" partition, when I was installing Windows, and now my OS X system is not booting anymore.



How do I fix this, without wiping the entire disk, and starting from scratch?

I started out with Boot Camp, and when I was partitioning the disk during the installation of Windows, I didn't knew which partition I needed to choose, so I booted back into OS X. When I got back in the installer of Windows (with a different resolution), I wasn't able to reformat the partitions, as was instructed in the Boot Camp manual, so removed the last two partitions (I though Boot Camp created two partitions for Windows; one for booting, one for the OS). But still, I was unable to install Windows. When I rebooted the system, OSX was not booting anymore. Trying to get into the OS X recovery mode, it revealed that the recovery partition was gone, because it started Internet Recovery.

It seems that the recovery partition is required for OS X to boot. Is that the case? And if so, how can I get it back, without doing a reinstall (or something like Missing Yosemite Recovery Partition). If not, how can I get the system booting again?

Specs (maybe useful)


MacBook Pro 15" (late 2013)
FileVault enabled
Eventually, I fixed it by following a guide I found online (cannot find it anymore). I took a live cd with [TestDisk](http://www.cgsecurity.org/wiki/TestDisk), and ran that. It found the deleted partition, and I recreated it withgdisk`. That worked like a charm ;)