How do I figure out the brand and type of an SD-card remotely on the commandline via SSH? I so far tried:
fdisk -l /dev/mmcblk0
gdisk -l /dev/mmcblk0
dmesg | fgrep -i mmc
(the boot entries were already rotated out of the ring buffer)zfgrep -i mmc /var/log/syslog* /var/log/kern.log*
smartctl --info /dev/mmcblk0
(resulted in/dev/mmcblk0: Unable to detect device type
)lshw -C storage
file -s /dev/mmcblk0
cfdisk /dev/mmcblk0
cgdisk /dev/mmcblk0
Context: After having had to replace SD-cards in two of a bunch of remotely deployed Raspberry Pis (LoRaWAN gateways) which were not initially installed by myself, I want to figure out if the remaining, still running Pis have the same type of SD-card or by chance a different brand and/or type.
A bit of information I figured out, but I didn't find a mapping to brand or type, i.e. something that I can correlate with what I can see from the outside of the two broken SD-cards:
# cat /sys/block/mmcblk0/device/name
SU04G
# cat /sys/block/mmcblk0/device/name
SS08G
# cat /sys/block/mmcblk0/device/name
ACLCE
# cat /sys/block/mmcblk0/device/name
SL16G
So they seem to be different (the numbers before G
—where present—correlate with the size), but are they also different manufacturers/series?
At least this always looks the same on all of the four Raspberry Pis from which the four different name
contents above were taken:
# cat /sys/block/mmcblk0/device/oemid
0x5344