XCalibur – the microSD in the stone
devpost.com
XCalibur – the microSD in the stone
1–10 of 31 posts
Re: XCalibur – the microSD in the stone
#2Re: XCalibur – the microSD in the stone
#3The 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.
Re: XCalibur – the microSD in the stone
#4EDIT: technically this is kosher as SD spec mandates FAT32 (just like SDXC spec mandates exFAT)
Re: XCalibur – the microSD in the stone
#5Re: XCalibur – the microSD in the stone
#6Some of the cheaper cards (and USB keys back in the day) sort of assume you'll use a single FAT[/32] partition and they understand the FAT and use it as poor man's TRIM information. They get super upset if you attempt anything that is not a single FAT[/32] partition. Some will actively forbid it by ignoring writes to the first sector of the disk and of the partition. Perhaps this is one of those cases? EDIT: technica…
Re: XCalibur – the microSD in the stone
#7SD cards' firmware can be hacked, see http://www.bunniestudios.com/blog/?p=3554
Re: XCalibur – the microSD in the stone
#8I have seen similarly weird results with flaky USB flash keys. A lot of those don't do any kind of hardware error detection. 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 itse…
Re: XCalibur – the microSD in the stone
#9I have seen similarly weird results with flaky USB flash keys. A lot of those don't do any kind of hardware error detection. 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 itse…
what about using sync to flush changes to disk? does it flush the block device cache as well?
Re: XCalibur – the microSD in the stone
#10Typically, 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.