Deleted Macintosh HD. Need to create a new partition/ partition table I was trying to install El Capitan. I went to erase Macintosh HD in recovery> disk utility as I wanted to do a clean install. It then deleted the Macintosh partition then gave me an error code saying it couldn't delete the disk image or something like that. 

After that I go to partion my fusion drive and the partition button does nothing. I am now left with just the 'Fusion Drive', nothing else in terms of partitions. I tried to check the disk but that button didn't work either. After some research I think disk utility must have deleted the partition table? 

Basically I need to create a new partition in my Fusion Drive hard drive. However disk utility is not letting me. I have gone into the properties of the fusion drive and it says 'Writeable: No'.

I think my only option is to create a partition using the terminal in recovery but I don't know how to do that. 

Any help would be greatly appreciated.
Boot to Recovery HD (or Internet Recovery) and then use Disk Utility to format the drive(s) as part of this documented process to erase and install the OS.


https://support.apple.com/kb/PH21973


Booting from recovery is what makes the partition map writeable. You were very close to the solution. If erasing doesn't work, you may have to repartition the volume per https://support.apple.com/kb/PH22240

As a last resort, boot to single user mode and/or Recovery and start terminal and get a screen capture/picture/verbatim listing of the output of:

diskutil list