From owner-freebsd-current Tue Mar 21 4: 2:30 2000 Delivered-To: freebsd-current@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 847F537BA51 for ; Tue, 21 Mar 2000 04:02:22 -0800 (PST) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id NAA60968; Tue, 21 Mar 2000 13:02:12 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <200003211202.NAA60968@freebsd.dk> Subject: Re: Reading from bad disk ? In-Reply-To: <200003211051.LAA27866@info.iet.unipi.it> from Luigi Rizzo at "Mar 21, 2000 11:51:08 am" To: luigi@info.iet.unipi.it (Luigi Rizzo) Date: Tue, 21 Mar 2000 13:02:12 +0100 (CET) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Luigi Rizzo wrote: > Hi, > > sometimes i get IDE disks with hard errors on some sectors > > (status 59 error 40) > > 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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message