From owner-freebsd-current@FreeBSD.ORG Wed Oct 21 14:50:52 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF3101065692; Wed, 21 Oct 2009 14:50:52 +0000 (UTC) (envelope-from serenity@exscape.org) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 43EA98FC2B; Wed, 21 Oct 2009 14:50:52 +0000 (UTC) Received: from c83-253-248-99.bredband.comhem.se ([83.253.248.99]:42057 helo=mx.exscape.org) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1N0cVn-00083P-3y; Wed, 21 Oct 2009 16:50:05 +0200 Received: from [192.168.1.5] (macbookpro [192.168.1.5]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx.exscape.org (Postfix) with ESMTPSA id 504161F85CD; Wed, 21 Oct 2009 16:49:58 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Thomas Backman In-Reply-To: <11167f520910210747g563514a4p82962669efd3af13@mail.gmail.com> Date: Wed, 21 Oct 2009 16:49:55 +0200 Content-Transfer-Encoding: 7bit Message-Id: <4ACB2697-0C2B-4A88-884C-CD7A4ADA653F@exscape.org> References: <4A97D0E1.6050001@icyb.net.ua> <4A97D32F.6070707@FreeBSD.org> <4A97D563.7010803@icyb.net.ua> <11167f520910210737u75602499w62ae6cd1db6ad37@mail.gmail.com> <4ADF1E4E.1010901@FreeBSD.org> <11167f520910210747g563514a4p82962669efd3af13@mail.gmail.com> To: "Sam Fourman Jr." X-Mailer: Apple Mail (2.1076) X-Originating-IP: 83.253.248.99 X-Scan-Result: No virus found in message 1N0cVn-00083P-3y. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1N0cVn-00083P-3y e3caf3a1f24df5ad41742a723f028786 Cc: Alexander Motin , freebsd-current@freebsd.org, Andriy Gapon Subject: Re: ada/ahci and smartmontools X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 14:50:52 -0000 On Oct 21, 2009, at 4:47 PM, Sam Fourman Jr. wrote: > On Wed, Oct 21, 2009 at 9:44 AM, Alexander Motin > wrote: >> Sam Fourman Jr. wrote: >>> On Fri, Aug 28, 2009 at 8:02 AM, Andriy Gapon >>> wrote: >>>> on 28/08/2009 15:53 Alexander Motin said the following: >>>>> Andriy Gapon wrote: >>>>>> Do smartmontools work with ada/ahci disks? >>>>>> Any tweaks/hacks to make it possible? >>>>> It needs new interface module. Somebody have to combine CAM API >>>>> smartmontools interface module used for SCSI devices and ATA >>>>> SMART commands. >>>>> >>>> So you mean it should practically be the same as existing ATA >>>> module, but instead >>>> of ATA ioctl it should use cam(3)? >>> >>> This is a little OT, but can someone confirm if smartmontools works >>> with SATA2 Drives? >> >> SATA2 is just another physical transport for ATA commands. SATA1/2 >> completely compatible to PATA on command level. >> >> -- >> Alexander Motin > > > > sorry then I will try again, I just installed the port and tried a > simple command > > Ziggy# smartctl -i /dev/ad4s1 > smartctl version 5.38 [i386-portbld-freebsd9.0] Copyright (C) 2002-8 > Bruce Allen > Home page is http://smartmontools.sourceforge.net/ > > Smartctl: Device Read Identity Failed (not an ATA/ATAPI device) > > A mandatory SMART command failed: exiting. To continue, add one or > more '-T permissive' options. > > Ziggy# dmesg | grep ad4 > ad4: 238475MB at ata2-master SATA300 > GEOM: ad4s1: geometry does not match label (255h,63s != 16h,63s). > Trying to mount root from ufs:/dev/ad4s1a > > > Sam You're using it on a partition (well, slice in BSD terms), not the disk device itself. Try smartctl -i /dev/ad4 Regards, Thomas