Click here to Skip to main content
15,881,744 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I actually need to find out SD card serial number so that I could distinguish between different SD cards with a unique key. Please suggest...!!!
Posted
Updated 10-Jul-13 20:40pm
v2
Comments
Sergey Alexandrovich Kryukov 10-Jul-13 2:22am    
May I ask you: why?
—SA
Heya from Delhi 11-Jul-13 2:51am    
I've got 5 SD cards (SanDisk, Lexar, Delkin, Transcend, Samsung) and I have to identify them uniquely.
Sergey Alexandrovich Kryukov 11-Jul-13 8:23am    
The can be named by a volume label. Isn't that enough?
—SA

Under Windows you might want to try:

GetVolumeInformation

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364993%28v=vs.85%29.aspx[^]
 
Share this answer
 
Comments
Heya from Delhi 11-Jul-13 2:44am    
GetVolumeInformation gives volume number which is not unique (changes on formatting the hard drive).
You may be interested to know that not all devices report serial numbers. The volume ID is also easily duplicated or changed.
 
Share this answer
 
Comments
Heya from Delhi 11-Jul-13 2:42am    
Volume number gets changed everytime on formatting the disk. I want to know the unique serial number for identifying the SD card, which does not change.
The_Inventor 11-Jul-13 3:55am    
Look on the outside of the card, input into a file, read file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900