login
Header Space

 
 

Re: What does this scsi error mean ?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Olivier Galibert <galibert@...>
Cc: Hack inc. <linux-kernel@...>
Date: Tuesday, January 16, 2007 - 11:16 am

On Mon, 15 Jan 2007, Olivier Galibert wrote:


Correctable SCSI errors show that the data in a sector was not properly
read, but the device was able to fix the data error because of the
redundancy in the CRC. The error could be permanently fixed is you
rewrote the sector. You probably don't know where the bad sector is
without adding a printk() to driver code. Some BIOS SCSI utilities
(Adaptec) have the capability of reading an entire drive and fixing
bad sectors either by rewrite or relocation. Since drives can be
accessed as files, you could write a utility that opens the RAW
device with in NOT mounted, reads a bunch of sectors, then writes
them back. To do this, you need to verify that lseek() works on
your particular drive because you need to write the data back to
the same offset that you read it from. I mention this because
the raw r/w of an early Adaptec (aha1542) driver, didn't impliment
lseek, just returned 'okay'. You can imagine the mess I made of
a drive with that controller!

Once you verify that lseek works, the rest of the code is trivial.
I suggest reading then writing 64 kilobytes at a time. It will seem
to take 'forever', but the retries on these relatively short groups
of sectors (128 sectors), will be short when errors are encountered.

Make sure the drive is either not mounted or mounted r/o.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.24 on an i686 machine (5592.67 BogoMips).
New book: http://www.AbominableFirebug.com/
_


****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What does this scsi error mean ?, Olivier Galibert, (Mon Jan 15, 1:16 pm)
Re: What does this scsi error mean ?, Stefan Richter, (Mon Jan 15, 7:27 pm)
Re: What does this scsi error mean ?, Alan, (Mon Jan 15, 2:45 pm)
Re: What does this scsi error mean ?, Olivier Galibert, (Mon Jan 15, 5:45 pm)
Re: What does this scsi error mean ?, linux-os (Dick Johnson), (Tue Jan 16, 11:16 am)
Re: What does this scsi error mean ?, Alan, (Mon Jan 15, 7:14 pm)
Re: What does this scsi error mean ?, Olivier Galibert, (Thu Jan 18, 10:08 am)
Re: What does this scsi error mean ?, Olivier Galibert, (Wed Feb 7, 1:43 pm)
Re: What does this scsi error mean ?, Olivier Galibert, (Mon Jan 15, 8:10 pm)
speck-geostationary