On Raspberry pi, I can read the serial number of SD card mounted on the built-in SD card drive from cid file under /sys/block/mmcblk0/device folder.
pi@raspberrypi:~ $ ls /sys/block/mmcblk0/device
block driver hwrev oemid scr type
cid dsr manfid power serial uevent
csd erase_size name preferred_erase_size ssr
date fwrev ocr rca subsystem
But, about the SD card connected with USB SD card reader/writer mounted on the device of sda, I can't see the cid file.
pi@raspberrypi:~ $ ls /sys/block/sda/device
blacklist evt_soft_threshold_reached rescan
block generic rev
bsg inquiry scsi_device
delete iocounterbits scsi_disk
device_blocked iodone_cnt scsi_generic
device_busy ioerr_cnt scsi_level
driver iorequest_cnt state
eh_timeout max_sectors subsystem
evt_capacity_change_reported modalias timeout
evt_inquiry_change_reported model type
evt_lun_change_reported power uevent
evt_media_change queue_depth vendor
evt_mode_parameter_change_reported queue_type wwid
Is there any way to read SD card serial number mounted as sda? Any suggestions are welcome!