From: Vitaly Fertman Subject: Re: Hard errors, trying to recover Date: Wed, 30 Jun 2004 19:59:32 +0400 Message-ID: <200406301959.32605.vitaly@namesys.com> References: <20040629193943.GA15481@p15104972.pureserver.info> <200406301802.05840.vitaly@namesys.com> <200406301645.13096.kris@xn--khntopp-90a.de> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <200406301645.13096.kris@xn--khntopp-90a.de> Content-Disposition: inline List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Kristian =?utf-8?q?K=C3=B6hntopp?= Cc: reiserfs-list@namesys.com On Wednesday 30 June 2004 18:45, Kristian K=C3=B6hntopp wrote: > On Wednesday 30 June 2004 16:02, Vitaly Fertman wrote: > > we deal with hardware problems only under > > www.namesys.com/support.html terms. > > I have the hardware problem well under control now, thank you. > > My mail referred more to two observations I made in that process: > > 1. Unless reiserfsck --rebuild-tree succeeds and finishes, it > does more harm than good, because the disk is unmountable if > reiserfsck --rebuild-tree stops halfway. no, this is protection exactly from mounting not repaired filesystems as this may lead to futher severe fs corruptions. > reiserfsck --rebuild-tree seems to stop when it has discovered > something it believes to be a hard read error. > > That combination of behaviours is somewhat suboptimal and could > be improved, I believe. I'd rather have reiserfsck to present me > with a choice to assume the defect block as all zero and > continue or stop here and try other things. there could be different hardware problems and sometimes you should=20 fix them before proceeding. bad blocks is one of these problems that reiserfsck is able to deal with (www.namesys.com/bad-block-handling.html). > 2. When I make an image of a disk, and that image is incomplete > for whatever reason, I cannot reiserfsck that image because of > seeks beyond the end of the medium. Again, I'd rather have the > choice of reiserfsck trying to salvage the incomplete medium > (assuming all zero data for all missing blocks) or stop with an > error. you probably used some old reiserfsprogs. > The combination of 1 and 2 has bitten me badly in trying to > salvage a failing 160GB disk, because I tried reiserfsck > --rebuild-tree before making an image. > > It may also be a good idea in some cases to have a version of > reiserfsck that fsck's the disk to a new medium, that is, > reiserfsck reads as much as it can from the defect disk or a > possibly incomplete image of such a disk, and tries to construct > a useable image on a new replacement partition. > > > I was able to force a reiserfsck to finish using a combination of > writes to the defect blocks in order to force reallocation and > thermal stimulation of the dying disk (don't ask, you do not > want to know :). The filesystem was mountable r/o after that. > The final copy is still in progress, but 132 of 135 GB have > already been saved. > > Kristian --=20 Thanks, Vitaly Fertman