Today I browsed the forum trying to find why a few SD cards give the error mmblk0 unknown error -22
The solution was very simple. The SD cards usually come with small adapters that allow you to insert the SD card in your laptop for writing the new image on the card. The reason for my failures was that many adapters are simply bad. By trying a few adapters I found one that worked perfectly.
So before you throw your bad SD card in the trash try another adapter.