Retrieve SD Card Serial Number and Manufacturer under Linux
Asked Answered
C

2

7

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.

Circumflex answered 3/12, 2009 at 3:43 Comment(3)
This is with a native mmc driver, right? (i.e. Not a USB-SD adapter).Hammonds
Sorry for the delayed response, but I believe in my case, yes it is mmc (Android phone). There is no USB in this case, but I recall some instance where there wasn't a USB port, but the way the reader was connected to the device actually used USB. I can't remember exactly what that was though. I haven't gotten a chance to test the answers below (too many projects), but they both look promising.Circumflex
cameramemoryspeed.com/sd-memory-card-faq/…Lachance
S
5

You can also try

sudo hwinfo --disk

to get information on your disks, including SD Cards.

hdparm -i may not work through sdcard controllers

Seyler answered 3/12, 2009 at 16:48 Comment(2)
I didn't know about hwinfo, so that's interesting. However, the output (for a USB-SD adapter) doesn't show anything specific about the SD card. Probably it's not possible without native mmc, so maybe this is a good answer.Hammonds
Is "Unique ID:" reliable ?Satiety
P
-1

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)

Pella answered 3/12, 2009 at 11:36 Comment(1)
doesnt either using rts5139 adapterSatiety

© 2022 - 2024 — McMap. All rights reserved.