Hard drive / mouse serial number retrieval?

Scott R Ehrlich scott at MIT.EDU
Thu Jul 13 16:22:59 EDT 2006


Quoting Chris Ball <cjb at mrao.cam.ac.uk>:

> Scott,
>
>   > I actually do mean serial number.  I figured a mouse probably
>   > wouldn't have one programmed in (though I figured I'd ask anyway),
>   > but a hard drive might.
>
> Ah, right.  I've just found a few ways:
>
> havoc:cjb~ % sudo smartctl -d ata --all /dev/sda
> === START OF INFORMATION SECTION ===
> Device Model:     HDT722525DLA380
> Serial Number:    ...
>
> havoc:cjb~ % sudo hdparm -iI /dev/sda
> ATA device, with non-removable media
>        Model Number:       HDT722525DLA380
>        Serial Number:      ...
>

Thanks for the hdparm.   It does give the hardware s/n, and it is part of the
Fedora Core 5 bootable DVD.

Just want I wanted!

Scott

> I also found http://linuxbasics.org/tutorials/using/using_udev , which
> mentions using the serial number of USB disks to let your machine's udev
> know where they should be mounted each time.  Neat!
>
> - Chris.
> --
> Chris Ball   <cjb at mrao.cam.ac.uk>    <http://blog.printf.net/>
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://olduvai.blu.org/mailman/listinfo/discuss
>





More information about the Discuss mailing list