Just had the same problem replacing the Hitachi HDD with a Samsung 850 EVO 250 GB SSD in a mid 2010 13" MacBook Pro. Tried everything to initialise/format the SSD (spent hours researching solutions and creating bootable USB drives etc.) but the Partition option was greyed out on Disk Utility and the Erase option kept failing with the message 'partition failed wiping volume data to prevent future accidental probing'. Was just about to order a USB-SATA adapter to try the SDD externally before ordering a new SATA cable but decided to try something I'd read for another problem 'unable to unmount volume for repair' (see below). I simply taped 2 metal edged areas and it worked like a dream - didn't need to use the alcohol wipe (many thanks to Tech Harmony for this).....
"Basically the hard drive cable rubs against the edge of the optical drive's metal tape and probably gets shorted in some way. The solution is to put a little piece of electrical tape between the SATA cable and the optical drive. When I tried this with a Samsung SSD the first time it didn't work. So I used some rubbing alcohol (99% in this case) and swabbed the back of the SATA cable where it rubs the optical drive.
Then I put the electrical tape on the optical drive edge instead of the cable (since it was easier this way anyway) and voila, drive works now with no problem."
Hope this helps someone else.