From owner-freebsd-questions@FreeBSD.ORG Sun Nov 11 23:53:30 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DD5716A417 for ; Sun, 11 Nov 2007 23:53:30 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 408AF13C48A for ; Sun, 11 Nov 2007 23:53:28 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:56276 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1IrMby-0003dm-6S for freebsd-questions@freebsd.org; Mon, 12 Nov 2007 00:53:06 +0100 Received: (qmail 16470 invoked from network); 12 Nov 2007 00:52:54 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 12 Nov 2007 00:52:54 +0100 Received: (qmail 9750 invoked by uid 1001); 12 Nov 2007 00:52:54 +0100 Date: Mon, 12 Nov 2007 00:52:54 +0100 From: Erik Trulsson To: Josh Carroll Message-ID: <20071111235254.GA9679@owl.midgard.homeip.net> Mail-Followup-To: Josh Carroll , Jonathan Horne , freebsd-questions@freebsd.org References: <200711111727.55766.freebsd@dfwlp.com> <8cb6106e0711111538x7864254fibbb7d96ae055a890@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cb6106e0711111538x7864254fibbb7d96ae055a890@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1IrMby-0003dm-6S. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1IrMby-0003dm-6S a39b3c9f196c85db889602dd9d45ed83 Cc: Jonathan Horne , freebsd-questions@freebsd.org Subject: Re: disk drive serial number X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2007 23:53:30 -0000 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 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) -- Erik Trulsson ertr1013@student.uu.se