Hi,

sometimes i get IDE disks with hard errors on some sectors

        (status 59<rdy,seekdone,drq,err> error 40<uncorr>)

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

Reply via email to