From owner-freebsd-questions@FreeBSD.ORG Mon Jul 7 20:20:39 2008 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 DEB43106568B for ; Mon, 7 Jul 2008 20:20:39 +0000 (UTC) (envelope-from jwm-freebsd-questions@sentinelchicken.net) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 8CBA28FC16 for ; Mon, 7 Jul 2008 20:20:39 +0000 (UTC) (envelope-from jwm-freebsd-questions@sentinelchicken.net) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 07 Jul 2008 16:20:38 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.8.6-GA) with ESMTP id KBY29086; Mon, 7 Jul 2008 16:20:38 -0400 (EDT) Received: from 207-172-209-180.c3-0.bkl-ubr2.sbo-bkl.ma.static.cable.rcn.com (HELO sentinelchicken.net) ([207.172.209.180]) by smtp01.lnh.mail.rcn.net with ESMTP; 07 Jul 2008 16:20:34 -0400 Received: (qmail 98025 invoked from network); 7 Jul 2008 20:19:47 -0000 Received: from aeryn.skepsi.net (HELO crichton.skepsi.net) (10.0.0.101) by aeryn.skepsi.net with SMTP; 7 Jul 2008 20:19:47 -0000 Received: (nullmailer pid 98022 invoked by uid 1000); Mon, 07 Jul 2008 20:19:47 -0000 Date: Mon, 7 Jul 2008 16:19:47 -0400 From: Jason Morgan To: FreeBSD Questions Message-ID: <20080707201947.GA97973@sentinelchicken.net> References: <006401c8e06b$369de8a0$3ef8a580@lanl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006401c8e06b$369de8a0$3ef8a580@lanl.gov> User-Agent: Mutt/1.5.18 (2008-05-17) X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A010208.48727A96.0152,ss=1,fgs=0, ip=207.172.4.11, so=2007-10-30 19:00:17, dmn=5.4.3/2008-02-01 X-Junkmail-IWF: false Subject: Re: Capturing ATA devices serial numbers 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: Mon, 07 Jul 2008 20:20:40 -0000 On 2008.07.07 13:54:06, Vaughn Clinton wrote: > All, > > I'm looking for a FreeBSD utility that will allow me to query a disk for its > serial number. Can you point me to such a tool that'll allow me to do so? Assuming you mean a hard disk, if you can run smartmontools, this is from smartctl(8): -i, --info Prints the device model number, serial number, firmware version, and ATA Standard version/revision information. Says if the device supports SMART, and if so, whether SMART support is cur- rently enabled or disabled. If the device supports Logical Block Address mode (LBA mode) print current user drive capacity in bytes. (If drive is has a user protected area reserved, or is "clipped", this may be smaller than the potential maximum drive capacity.) Indicates if the drive is in the smartmontools data- base (see '-v' options below). If so, the drive model family may also be printed. If '-n' (see below) is specified, the power mode of the drive is printed. Full man page is here: http://smartmontools.sourceforge.net/man/smartctl.8.html Port is here: /usr/ports/sysutils/smartmontools HTH, ~Jason Morgan