C++ : Reading BIOS serial number under Linux

EyeMWing

Banned
Jun 13, 2003
15,670
1
0
I'd like to read the system manufacturer and serial number, if available, from a Linux system. Any thoughts on how to do this?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I don't think this is going to be trivial. There doesn't seem to be a documented BIOS interrupt that reads this information. You can get it from the WMI running under Windows XP, but with Linux running you'll either have to access a similar facility for that OS (I'm not a Linux guy), or go to memory and get the data yourself.

Here is an article that discusses where the string is:

http://www.zealsoft.com/blog/index.php?entry=entry050904-032915

Here is an article that discusses the format of the serial number:

http://www.hardwaresecrets.com/article/34