Mark
Mark

Reputation: 71

Retrieve SD Card Serial Number and Manufacturer under Linux

I want to be able to retrieve an SD Card's Serial Number, Manufacturer, and any other information it may provide. Java or just a command to run would be great. Compact Framework does it, but that doesn't help me.

Upvotes: 7

Views: 12306

Answers (2)

ngm
ngm

Reputation: 7457

You can also try

sudo hwinfo --disk

to get information on your disks, including SD Cards.

hdparm -i may not work through sdcard controllers

Upvotes: 5

MarkR
MarkR

Reputation: 63538

You may be able to get some info out of "hdparm"

hdparm -i /dev/sda

Gives a bunch of info about /dev/sda which includes its serial number. In my test case, this was a hard drive, but presumably the same may work for a SD card (which looks a lot like a disk to the OS)

Upvotes: -1

Related Questions