Re: Reading from bad disk ?
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: ncr 53c810 fast10 scsi port 0xd100-0xd1ff mem 0x2000-0x20ff 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
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 0x2000-0x20ff 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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
It seems Warner Losh wrote: In message [EMAIL PROTECTED] Soren Schmidt writes: : TEMPC=`camcontrol cmd -v -n da -u 0 -c "4D 0 76 0 0 0 0 0 20 0" -i 32 "s9 i1"` : Hmm, wonder if one can get that info from their ATA disks as well... Don't know. You'd have to ask IBM. All the above camcontrol is doing is reading a special mode page (I'm sure ken will correct me if I'm wrong)... Do ata drives have this concept? Yup, they have "SMART" for this, just brovsed my docs and found that the newer DPTA series has temperature as one of the things in there, it doesn't seem that the older ones has it though... Guess I have to finish that SMART handeling code I have lying here, now that I got some motivation for it :) -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
On Wed, Mar 22, 2000 at 00:35:19 -0700, Warner Losh wrote: In message [EMAIL PROTECTED] Soren Schmidt writes: : TEMPC=`camcontrol cmd -v -n da -u 0 -c "4D 0 76 0 0 0 0 0 20 0" -i 32 "s9 i1"` : Hmm, wonder if one can get that info from their ATA disks as well... Don't know. You'd have to ask IBM. All the above camcontrol is doing is reading a special mode page (I'm sure ken will correct me if I'm wrong)... Do ata drives have this concept? It's actually a log page, which is very similar to a mode page. Ken -- Kenneth Merry [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Reading from bad disk ?
Hi, sometimes i get IDE disks with hard errors on some sectors (status 59rdy,seekdone,drq,err error 40uncorr) and of course this makes it problematic to use a filesystem on it. I wonder, is there a way to fetch the data from these sectors (even if partly erroneous) ? I am asking because a strategy which often 'fixes' the problem for me is to overwrite the erroneous sector with some data. Of course i can use a zero-filled block but this is kind of risky, and maybe it is preferable to use a portion of the original data and hope that fsck is able to fix this. And related: is there a way to tell fsck that in such cases it should try and adopt the same method ? Otherwise it is really boring to run my locally modified version of dd (which is able to use 'skip' over character devices) to try read the bad sector and write it back. cheers luigi ---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 ---+- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
It seems Luigi Rizzo wrote: Hi, sometimes i get IDE disks with hard errors on some sectors (status 59rdy,seekdone,drq,err error 40uncorr) and of course this makes it problematic to use a filesystem on it. I wonder, is there a way to fetch the data from these sectors (even if partly erroneous) ? I am asking because a strategy which often 'fixes' the problem for me is to overwrite the erroneous sector with some data. Of course i can use a zero-filled block but this is kind of risky, and maybe it is preferable to use a portion of the original data and hope that fsck is able to fix this. Erhm, I would get a new disk :), you dont intend to trust any data to this setup do you ?? Anyhow, I dont remember if it is possible to actually get at the data on a transfer that the drive marked bad, but I can check up when I get to my doc shelf. But I wouldn't trust that data for _anything_ it is likely to be totally corrupted due to the drive trying to ECC correct it and what not... -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
I am asking because a strategy which often 'fixes' the ... Erhm, I would get a new disk :), you dont intend to trust any data to this setup do you ?? of course, but i need to recover the old stuff first! A comment: this is a 18GB IBM 7200 RPM disk and i noticed it tends to become very hot compared to other disks when mounted in the same machine (on a removable frame). Do others have the same experience ? Anyhow, I dont remember if it is possible to actually get at the data on a transfer that the drive marked bad, but I can check up when I get to my doc shelf. But I wouldn't trust that data for _anything_ it is likely to be totally corrupted due to the drive trying to ECC correct it and what not... still might be useful for visual inspection. cheers luigi ---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 ---+- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
In message [EMAIL PROTECTED], Luigi Rizzo writes: I am asking because a strategy which often 'fixes' the ... Erhm, I would get a new disk :), you dont intend to trust any data to this setup do you ?? of course, but i need to recover the old stuff first! A comment: this is a 18GB IBM 7200 RPM disk and i noticed it tends to become very hot compared to other disks when mounted in the same machine (on a removable frame). Do others have the same experience ? You need a fan in the removable frame for those, they do run very hot. -- Poul-Henning Kamp FreeBSD coreteam member [EMAIL PROTECTED] "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
It seems Luigi Rizzo wrote: I am asking because a strategy which often 'fixes' the ... Erhm, I would get a new disk :), you dont intend to trust any data to this setup do you ?? of course, but i need to recover the old stuff first! Hmm, right... A comment: this is a 18GB IBM 7200 RPM disk and i noticed it tends to become very hot compared to other disks when mounted in the same machine (on a removable frame). Do others have the same experience ? If that is a plastic frame and there is no fan in the drawer it will get hot, in my boxes its enough to take of top and bottom covers on the drawers, that allows enough airflow to keep the disks at an accceptable temp... -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
: A comment: this is a 18GB IBM 7200 RPM disk and i noticed it tends : to become very hot compared to other disks when mounted in the : same machine (on a removable frame). Do others have the same : experience ? Yes. They run very hot. I had to steal an old powersupply fan and 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" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
It seems Warner Losh wrote: : A comment: this is a 18GB IBM 7200 RPM disk and i noticed it tends : to become very hot compared to other disks when mounted in the : same machine (on a removable frame). Do others have the same : experience ? Yes. They run very hot. I had to steal an old powersupply fan and 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" Hmm, wonder if one can get that info from their ATA disks as well... -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
In message [EMAIL PROTECTED] Soren Schmidt writes: : TEMPC=`camcontrol cmd -v -n da -u 0 -c "4D 0 76 0 0 0 0 0 20 0" -i 32 "s9 i1"` : Hmm, wonder if one can get that info from their ATA disks as well... Don't know. You'd have to ask IBM. All the above camcontrol is doing is reading a special mode page (I'm sure ken will correct me if I'm wrong)... Do ata drives have this concept? Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Reading from bad disk ?
Don't know. You'd have to ask IBM. All the above camcontrol is doing is reading a special mode page (I'm sure ken will correct me if I'm wrong)... Do ata drives have this concept? i think they do. cheers luigi To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message