USB Drive Serial Number??

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
zeeshaan

USB Drive Serial Number??

Post by zeeshaan »

hi,
i need to get the serial number of the usb drive? any interrupt or what to do to get the serial number of the usb????


Thanks in advance.
Zeeshaan.
AR

Re:USB Drive Serial Number??

Post by AR »

I don't think the BIOS has any interrupts for dealing with USB specifically, you will most likely need to access the USB Hubs and the device manually and ask it for the serial manually.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:USB Drive Serial Number??

Post by Pype.Clicker »

what you're looking for lays in USB device descriptors (see clicker code), and should hopefully be the "serial" field.

See http://www.osdev.org/osfaq2/index.php/USB%20Tutorial for a clue on how those descriptors can be retrieved ... but we still have plenty of work to do about this ...
Post Reply