From owner-freebsd-current Fri Mar 31 3:40:34 2000 Delivered-To: freebsd-current@freebsd.org Received: from gwdu42.gwdg.de (gwdu42.gwdg.de [134.76.10.26]) by hub.freebsd.org (Postfix) with ESMTP id 9E78437B8C3 for ; Fri, 31 Mar 2000 03:40:20 -0800 (PST) (envelope-from rhurlin@gwdg.de) Received: from uffz02.uni-forst.gwdg.de ([134.76.195.161] helo=gwdg.de) by gwdu42.gwdg.de with esmtp (Exim 3.12 #1) id 12azml-0002rh-00; Fri, 31 Mar 2000 13:40:19 +0200 Message-ID: <38E48E8F.791B93CB@gwdg.de> Date: Fri, 31 Mar 2000 13:39:59 +0200 From: Rainer Hurling Organization: Institut fuer Forstzoologie und Waldschutz X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.3-RELEASE i386) X-Accept-Language: en, de MIME-Version: 1.0 To: Leif Neland Cc: current@FreeBSD.ORG Subject: Re: Reading from bad disk ? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Leif Neland wrote: > > > It seems Warner Losh wrote: > ... > > > mount it in front of the drive to get it to run at a reasonable > > > temperature. W/o the fan, it was running at 58C or so. With the fan > > > it runs at 39C or so. I've included the script that I use to find > > > this information out. Ken Merry sent it to me. It works on some IBM > > > drives. > > > > > > Warner > > > > > > #!/bin/sh > > > > > > TEMPC=`camcontrol cmd -v -n da -u 0 -c "4D 0 76 0 0 0 0 0 20 0" -i 32 "s9 i1"` > > > > > > TEMPF=`echo " 2 k $TEMPC 9 * 5 / 32 + p" | dc` > > > > > > echo "The temperature is: $TEMPF F $TEMPC C" > > > Tried this: > #!/bin/sh > > TEMPC=`camcontrol cmd -v -n da -u 2 -c "4D 0 76 0 0 0 0 0 20 0" -i 32 "s9 i1"` > TEMPF=`echo " 2 k $TEMPC 9 * 5 / 32 + p" | dc` > echo "The temperature is: $TEMPF F $TEMPC C" > > I.e. replaced -u 0 with -u 2, because unit 2 is an IBM: > > ncr0: port 0xd100-0xd1ff mem 0x20000000-0x200000ff irq 11 at device 1.0 on pci0 > ncr0: driver is using old-style compatability shims > da1 at ncr0 bus 0 target 1 lun 0 > da0 at ncr0 bus 0 target 0 lun 0 > da2 at ncr0 bus 0 target 2 lun 0 > da2: Fixed Direct Access SCSI-2 device > da2: 10.000MB/s transfers (10.000MHz, offset 8) > da2: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C) > > But I get this: > > camcontrol: error sending command > (pass2:ncr0:0:2:0): LOG SENSE. CDB: 4d 0 76 0 0 0 0 0 20 0 > (pass2:ncr0:0:2:0): ILLEGAL REQUEST asc:24,0 > (pass2:ncr0:0:2:0): Invalid field in CDB > dc: stack empty > The temperature is: 33.80 F C > > Does this simply mean this drive does not support temperature measurement, > or should something more be changed to use dev da2 instead of da0? > > I'm running a week or so old current. > > Leif > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message Have had same Problem with my DCAS-34330's. Having a look in IBM's product specification at http://www.storage.ibm.com/techsup/hddtech/prodspec/dcas_spw.pdf, chapter 7.8 and others. It seems there is no information logging in this type of harddisk drive?! Rainer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message