For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Hard Drive Serial Numbers

Hard Drive Serial Numbers

Created by dave. Last edited by dave, 8 years and 105 days ago. Viewed 2,383 times. #1
[edit] [rdf]

Reading Hard Drive Serial Numbers From The Command Line

# for i in /dev/sd? ; do echo $i ; hdparm -I $i | grep 'Serial Number' ; done
        Serial Number:      S1D52---
        Serial Number:      S1D5E---
 HDIO_DRIVE_CMD(identify) failed: Input/output error
        Serial Number:      S1D57---
        Serial Number:      S1D5E---

...assuming that they are not hidden behind a RAID controller, in which case you'll have to do something else.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt