Get SD Card CID on Raspberry Pi

Get SD Card CID on Raspberry Pi

The Card Identification (CID) register is a unique identifier embedded in SD cards by the manufacturer. This identifier contains information such as manufacturer ID (MID), OEM/application ID (OID), product name (PNM), and other. CID can be useful for various purposes, such as licensing, authentication, or verifying the authenticity of a card.

This tutorial explains how to get SD card CID on Raspberry Pi.

Make sure microSD card is connected to the built-in card slot, and not through an external USB card reader. USB card reader treat SD card as generic USB storage device and do not allow retrieving CID of SD card.

To retrieve CID, run the following command:

cat /sys/block/mmcblk0/device/cid

The output will be a hexadecimal string and look something like this:

1b534d454331533530123456abcdef00

Leave a Comment

Cancel reply

Your email address will not be published.