Hard drive / mouse serial number retrieval?

dsr at tao.merseine.nu dsr at tao.merseine.nu
Thu Jul 13 15:56:40 EDT 2006


On Thu, Jul 13, 2006 at 03:47:21PM -0400, Scott R Ehrlich wrote:
> Quoting Chris Ball <cjb at mrao.cam.ac.uk>:
> 
> >Scott,
> >
> >  > Is there any program which can retrieve the hardware serial number
> >  > of a hard drive, and possibly of a mouse?  From what I could see,
> >  > dmidecode, lspci, and dmesg all did not provide this info.
> >
> >I'm guessing you mean model number, rather than each device's own serial
> >number; there would be no reason to put the serial number of a mouse in
> >firmware.
> >
> 
> 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.

PATA and SATA drives usually have serial numbers -- try SMART
tools.

dsr at tao:~$ sudo smartctl -a /dev/hda
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     ST3200822A
Serial Number:    5LJ0CQRV
Firmware Version: 3.01
Device is:        In smartctl database [for details use: -P
show]
ATA Version is:   6
ATA Standard is:  ATA/ATAPI-6 T13 1410D revision 2
Local Time is:    Thu Jul 13 15:55:51 2006 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
...

-dsr-


-- 
-. ---   -- --- .-. .   ... . -.-. .-. . - ... 
..-. ..- -.-. -.-   - .... .   -. ... .- 
..-.   ..-   -.-. -.   .-. -..   - .... ...   ..-   -.- -. .--   -.-. -..




More information about the Discuss mailing list