Get the hard disk hardware serial number

Terry Reedy tjreedy at udel.edu
Wed Jun 3 17:13:51 EDT 2009


Jorge wrote:
> Hi there,
> 
> I need to know how to get the hardware serial number of a hard disk in 
> python.

That will be system specific.  One semi-general approacy using CPython 
would be to ask "How would I do this with C on this specific system" and 
then use ctypes.




More information about the Python-list mailing list