There is a manufacturer's serial number on SD cards, and there are a number of pages on the 'net that describe how to retrieve it on various mobile devices (including this one). But I need to retrieve it under desktop versions of Windows, and the code that works for mobile versions of Windows doesn't seem to translate.
If you only need to change the card serial number (part of the CID) you can supply the old CID and the new serial number and the new CID will be calculated for you. I suggest you make a note of the old CID first, in case you want to set it back later. Change Sd Card Serial Number Windows 8. SD/SDHC Card Interfacing with ATmega. 2 implementation). Here is my project on interfacing of SD Card (micro. It is compatible with SPI bus, so the interfacing is easy. Following figures show the SD card pin- out & the bread- board adapter design by soldering 7- pins of a breakout header on the micro.