Hard Drive Not Restorable.
My recently purchased 27in iMac came with Yosemite and everything was fine until I did the El Capitan upgrade last weekend. I then started having problems shutting the computer down sometimes and a few of my apps no longer worked. Last night I became tired of it and booted up into the recovery partition and tried to restore everything back from my time machine backup drive the day before I did the El Capitan upgrade. It started then came up with the error “cannot erase drive” and then everything froze. I had to hold the power button in to force a shutdown then restarted. Now it only comes up to the recovery partition and the hard drive does not appear in the startup disc window and it will not let me do anything to the hard drive at all to restore it. The disc utility’s erase and other buttons are greyed out except for the first aid and info buttons.
First aid will not fix it and the Info says the drive is not writable and that System Integrity Protection is off. There must be a problem when trying to restore machines from El Capitan back to Yosemite via Time Machine backups and it locks up the drive when trying to undo the new System Integrity Protection or something. Either that or my hard drive just went bad.
If the drive is not bad is there any way to unlock it and make the drive writable again? Any special command via the Terminal window or any special trick or workaround so I don’t have to take it in to the Apple store for repair? I don't have any other boot-up drive to try.
Thanks
iMac (Retina 5K, 27-inch, Late 2014), OS X El Capitan (10.11)