Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hard drive / mouse serial number retrieval?



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-


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





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org