Get the hard disk hardware serial number

Paul Boddie paul at boddie.org.uk
Thu Jun 4 14:24:02 EDT 2009


On 4 Jun, 11:29, Nick Craig-Wood <n... at craig-wood.com> 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

Paul



More information about the Python-list mailing list