XCalibur – the microSD in the stone
devpost.com
devpost.com
The behavior described here can be explained by block device cache: You write a file to a device and the device doesn't report an error, but doesn't actually write the data due to some hardware error. When you read the file back, the content will come from cache in your RAM, not the device itself. Unmounting and mounting the device flushes the cache. When you then read the file again, it will come from the device and have the original content again.
EDIT: technically this is kosher as SD spec mandates FAT32 (just like SDXC spec mandates exFAT)
Jordan messes up and rm -rf / instead of rm -rf /dev/sdb
slapstick classicBetter to overwrite it completely with dd.
So getting it to format was like trying to pull Excalibur out of the stone!
Typically, if you can't use dd(1) to write to it, and the error dd(1) gives is not 'write protected media', then your card is essentially dead.
I think we ended up pointing to issues with the SD card's bus as the most likely cause for the behavior we saw, but we weren't even certain about this.
SD card was broken, and it placed itself into read-only state for data recovery. I could delete files, but those would reappear. Formating would work until restart etc. Write cache was responsible for this weird magic.
I got card replaced as part of warranty.