I just recently bought a 32GB Micro SD card with USB reader.
I had a strange set of errors where I was trying to move some files on to it from my Ubuntu 16.04 system.
The first error I noticed was "Input/Output Error" then "Read-Only File System" error from mv after it copied about 4 times.
Then in dmesg I found:
Code:
[1381369.672059] FAT-fs (sdd1): error, fat_get_cluster: invalid cluster chain (i_pos 262161)
Then later:
Code:
[1381504.537685] FAT-fs (sdd1): error, fat_free_clusters: deleting FAT entry beyond EOF
Putting a new vfat file system on didn't help.
I then ran badblocks and it after a while spit out a ton of addresses.
But then I decided to simply wipe off the contacts of the Micro SD card with a piece of soft fabric & do the same to the SD Adapter.
Strangely badblocks is claiming the card is good now. Can smudgy or otherwise dirty contacts cause all those problems?