From owner-freebsd-current Tue Mar 28 23: 4:34 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.internet.dk (ns.internet.dk [194.19.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 3F1C637BCBB for ; Tue, 28 Mar 2000 23:04:28 -0800 (PST) (envelope-from leifn@neland.dk) Received: (from uucp@localhost) by ns.internet.dk (8.9.2/8.9.3) with UUCP id JAA75195; Wed, 29 Mar 2000 09:04:16 +0200 (CEST) (envelope-from leifn@neland.dk) Received: from localhost (localhost [127.0.0.1]) by arnold.neland.dk (8.9.3/8.9.3) with ESMTP id JAA40176; Wed, 29 Mar 2000 09:03:49 +0200 (CEST) (envelope-from leifn@neland.dk) Date: Wed, 29 Mar 2000 09:03:48 +0200 (CEST) From: Leif Neland Cc: Warner Losh , current@FreeBSD.ORG Subject: Re: Reading from bad disk ? In-Reply-To: <200003220726.IAA44014@freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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