Get the hard disk hardware serial number

Paul Boddie paul at
Thu Jun 4 14:24:02 EDT 2009

On 4 Jun, 11:29, Nick Craig-Wood <n... at> wrote:
> For linux I'd run this and parse the results.
> # smartctl -i /dev/sda

Also useful is hdparm, particularly with the drive identification and
detailed information options shown respectively below:

# hdparm -i /dev/sda
# hdparm -I /dev/sda


More information about the Python-list mailing list