Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2000 11:51:08 +0100 (CET)
From:      Luigi Rizzo <luigi@info.iet.unipi.it>
To:        current@freebsd.org
Subject:   Reading from bad disk ?
Message-ID:  <200003211051.LAA27866@info.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
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, luigi@iet.unipi.it  . 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 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?200003211051.LAA27866>