Macbook Pro Hard drive missing?
So it's a long story. I messed with a bootcamp plist file and my Macbook Pro wouldn't boot. I tried restoring the plist file in single user mode but couldn't so I made a backup using Target disk mode, erase my drived and clean installed Yosemite again. Everything was working fine, until one day I did a Software Update to Yosemite 10.10.3 And after the update my Macbook was really slow and freezed while opening Chrome. I tried to send an importan e-mail and the computer froze and the screen turned grey and then black. I forced shut down and reboot and I was able to send my e-mail but few moments after that, the screen turned grey again and the dreaded folder with a question mark appeared. I rebooted from Yosemite Installer in a bootable USB I previously made and ran Disk Utility to repair permissions. Everything worked fine, there were some printer library issues that were fixed. Then I did a disk repair and after a few moments a green line came saying the disk was OK, but then a few lines appear again followed by a red one that said something like "The disk cannot be repaird, backup as much as you can, erase your disk and install OS X". I booted again from the installer and there was no hard drive on Disk Utility. I opened my mac, removed the disk and put it back in to make sure there was no problem with the connection. I did a SMC reset and booted again, this time it worked but again after a few moments of working around the folder with the question mark appeared again. I booted in single mode and ran fsck -fy command getting tons of errors. Now everytime I trie to boot it goes halfway through login into my account, and in the login screen some lines (single user mode-like) appear and then it reboots without any luck with the folder question mark appearing again. I sometimes can look at my files for example the Desktop from single user mode, but other times I can't. Everytime I boot into the startup manager I actually see my hard drive, but it won't boot. I always see it in Disk Utility, but cannot be repaired, it just takes a long time before it freezes. When I choose my hard drive as a startup disk the computer freezes. I tried target disk mode and I can actually see the drive on another mac, but when I open it, it freezes or sometimes no folders are seen. I've tried everything. I'm not sure if it is a software issue or my hard drive is failing or the flex cable is failing. Is the only solution to buy another hard drive or another cable? How can I save my files?
It's a late 2011 Unibody Macbook Pro 15"
2Ghz
intel core i7
4GB RAM
MacBookPro8,2
Boot Rom Version MBP81.0047.B27
the Macintosh HD was 500 GB
Yosemite 10.10.3
MacBook Pro, OS X Yosemite (10.10.3)