[Python] How to get hard disk serial number using Python

Discussão em 'Python' iniciado por Stack, Fevereiro 23, 2025.

  1. Stack

    Stack Membro Participativo

    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?

    Continue reading...

Compartilhe esta Página