Date: Wed, 29 Mar 2000 09:03:48 +0200 (CEST) From: Leif Neland <leifn@neland.dk> Cc: Warner Losh <imp@village.org>, current@FreeBSD.ORG Subject: Re: Reading from bad disk ? Message-ID: <Pine.BSF.4.05.10003290856560.31161-100000@arnold.neland.dk> In-Reply-To: <200003220726.IAA44014@freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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: <ncr 53c810 fast10 scsi> 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: <IBM DCAS-34330 S65A> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10003290856560.31161-100000>