I had my Samsung PM830 (MZMPC256HBGJ-000L1) cleaned because I tried to get rid of S.M.A.R.T. Errors (uncorrectable error count / ecc error rate -> which caused windows update errors like 800f0922 -> it was just a guess that something like internal wiping could help to recover my SSD)
Read here what caused "SECURITY_SET_PASS: Input/output error" on my system:
Well I ended up using parted magic and used "Erase" -> Internal Secure Erase
I had to unlock the drive using a short standbytime.
I used enhanced secure erase.
I did not read https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase before ;)
I waited until the program told me the Harddisk internally finished.
The Notebook was a Lenovo Yoga 13. When I restarted my system I was prompted a password. But I never set it and according to some Sources it had been set to an empty value with security enabled.
How I got rid of my error
I started another laptop (asus eee 1000h) without the harddisk, waited for parted magic to boot. Then hotpluged the harddisc in. Opened the Console.
When I executed "hdparm -I /dev/sda" the Program saw the harddisk and told me that "Security" was enabled and locked.
I followed https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase and only got outputs alike
Issuing SECURITY_SET_Pass command, password="xxxx", user=master, mode=high
SECURITY_SET_PASS: Input/output error
Finally, after some angermanagement, I went to re-erase it a second time and afterwards I recognised that the "enabled" and "locked" had been gone.
I suppose
hdparm --user-master u --security-erase NULL /dev/X
did the job, but I cannot confirm it! According to the Input/Output Errors all my other tries failed, only this worked.
WARNING: Please read other sources and the warnings about setting the password to NULL, especially on Lenovo-Laptops!!
But may this help someone who thinks that the harddrive already has been bricked.
sudo hdparm --user-master m --security-set-pass "$( printf 'testmasterpassword' | tr '1234567890qwertzuiopasdfghjklyxcvbnm' '\2-\11\20\21\26\27\30\31\40-\45\60-\70\104-\107\110\111\120')" /dev/sda security_password=" 1 P01 %011$2" /dev/sda: Issuing SECURITY_SET_PASS command, password=" 1 P01 %011$2", user=master, mode=high SECURITY_SET_PASS: Input/output error