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.
Retrieve SD Card Serial Number and Manufacturer under Linux
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
You can also try
sudo hwinfo --disk
to get information on your disks, including SD Cards.
hdparm -i
may not work through sdcard controllers
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
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)
doesnt either using rts5139 adapter –
Satiety
© 2022 - 2024 — McMap. All rights reserved.