Chosen Solution
I tried performing internet recovery but the disk is not showing when it asked where to install Mac OS X. Tried restoring from Time Machine but same thing, Unable to search for disks. Help please.
Your best hope to isolate the problem is to remove the HD. If you remove it and have some method, like a USB to SATA cable laying around and you connect it to another machine and it runs perfectly, like able to boot from it and everything, then you know you’ve got a faulty SATA cable. If not, then you know your drive is the issue and that’s what you’ll need to start salvaging information from. Here’s the guide on how to remove the drive - it’s fairly complicated, and you don’t want to damage that display. Depending upon your repair skills, you may want to contact a professional. iMac Intel 24" EMC 2267 Hard Drive Replacement