Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2007 00:52:54 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Josh Carroll <josh.carroll@gmail.com>
Cc:        Jonathan Horne <freebsd@dfwlp.com>, freebsd-questions@freebsd.org
Subject:   Re: disk drive serial number
Message-ID:  <20071111235254.GA9679@owl.midgard.homeip.net>
In-Reply-To: <8cb6106e0711111538x7864254fibbb7d96ae055a890@mail.gmail.com>
References:  <200711111727.55766.freebsd@dfwlp.com> <8cb6106e0711111538x7864254fibbb7d96ae055a890@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 11, 2007 at 06:38:08PM -0500, Josh Carroll wrote:
> > is there a way to get the serial number from a drive from within the OS?  im
> > trying to audit the drives in my file server, but without pulling the thing
> > from the rack and cracking it open.  they are just standard sata drives, not
> > on any sort of raid controller (ie, i know 3ware cards are capable of pulling
> > the drive info).
> 
> Check dmesg (or /var/run/dmesg.boot). The serial number should show, e.g.:
> 
> ad8: 381553MB <Seagate ST3400633AS 3.AAH> at ata4-master SATA150

That is not the serial number, that is just the disk model and the firmware
revision.


The serial number can (for ATA/SATA) disks be shown with atacontrol(8)
(e.g. "atacontrol cap ad4") or with smartctl(8) from the
sysutils/smartmontools port (supports both ATA/SATA and SCSI disks)
(e.g. smartctl -a /dev/ad4)





-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071111235254.GA9679>