1

I set up a test for a particular type of SD card (Transcend 2GB Standard) where i continually write a single file from the computer to the disk. I set up another test to run simultaneously using a third party device to write to the same type of SD card.

The objective was to determine if the SD Card has write leveling or not. But I found some confusing results.

The Process

In order to write to these SD cards, I wrote a short C# script, which will copy a single 16Kb file which will alternate between containing all 1's and all 0's. For the third party device I used the same file and used its specific copying instructions to copy the file. The writes were synchronised (since the third party device takes longer) and this was handled by the c# script. After the file was copied to the SD card it was copied back to the computer and an MD5 check-sum was performed to ensure they were the same file. The reason that we alternated the 0's and 1's was so that we were sure that the file was being copied and read successfully.

The Results

So in the end we successfully wrote using both devices about 10 Million times over the period of several days. From this we concluded that the SD card indeed has Write leveling, because otherwise this would not succeed (the card would have the same block written repeatedly and would eventually fail [What's the life expectancy of an SD card? ]).

BUT then we put both SD cards into a computer and attempted to read their contents, the one that was written by the PC was fine, but the one written by the 3rd party device could not be read. It would not even appear in disk manager ...

So the question is:

1. Why would the SD card break in this way? Is this the effect we expected to see when we exceed the write limit on solid state devices?

2. Why is this dependant on the device that is writing the SD card, doesnt the internal electrics handle how the data is stored?

2 Answers2

0

Is the third-party device a Windows Phone 7 series?

SD cards have security features that allow them to be locked with a key, and only a device with the right key can read/write to it (similar to the ATA security feature). Windows Phone 7, due to the way the underlying Windows CE operating system handles storage, integrates the SD card with the internal storage as one pool, and locks the SD card as a result. This caused some confusion as some Windows Phone 7's had removeable SD cards which weren't really removeable ...

Other devices might utilize this capability which is part of the SD standard. I think Symbian phones can do this too (and undo it somehow - so I've read somewhere anyway ...)

SD was meant initially to distribute DRM'ed music (that's why the "D" in it looks like a CD.) so this is why that feature exists.

LawrenceC
  • 75,182
0

My guess is your 3rd party device maybe doing something non standard. Maybe it skips updating certain part of the file system. It maybe ignoring errors in the volume table or MBR. Your SD card may have failed before you know it.

some user
  • 2,846