I recently had an SD card come up with I/O errors when I try to read and write to it. So, I did what I usually do and wiped it with random data, and then created a partition on it. However, unlike other SD cards that I have recently wiped, after wiping and partitioning I mount it only to find 62 GB of randomly titled files. I try to format it again, but it doesn't help. I keep trying a few times, but it just doesn't work.
Instead of throwing it away, I remember an article
where it said that they came up with new SSDs that last longer because they internally refresh the cells by heating them up.
DISCLAIMER: DO NOT TRY THIS AT HOME, BECAUSE IT MAY NOT BE SAFE.
So, I decided to remove the plastic casing carefully with a screwdriver, take the circuit board out and hold it over a fire (gas stove) using some pliers. I tried it first with low heat (a foot above the fire), that didn't work. I kept trying closer to the fire, and that didn't work either. So, I finally tried putting it right above the fire until it smelled like melting solder and the board was close to melting. Well, it may have actually worked. After putting the board back in the plastic casing, wiping it and partitioning it, I can read and write to the card fully and without error.
I'm pretty sure I tried everything to fix it before heating it up, so it may be that the heat fixed it ? I'll have to try it on one of the old USB sticks I have at my other place.