serial-number

How to get hard disk serial number using Python

How to get hard disk serial number using Python Question: How can I get the serial number of a hard disk drive using Python on Linux? I would like to use a Python module to do that instead of running an external program such as hdparm. Perhaps using the fcntl module? Asked By: Forge || …

Total answers: 5