From owner-freebsd-fs@FreeBSD.ORG Sat May 19 04:55:43 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7222E16A400 for ; Sat, 19 May 2007 04:55:43 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh2.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4722113C4C9 for ; Sat, 19 May 2007 04:55:43 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.centtech.com (andersonbox1.centtech.com [192.168.42.21]) by mh2.centtech.com (8.13.8/8.13.8) with ESMTP id l4J4teNI079243; Fri, 18 May 2007 23:55:41 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <464E834C.7060407@freebsd.org> Date: Fri, 18 May 2007 23:55:40 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Fernando Schapachnik References: <20070519003910.GA3254@funes.schapachnik.com.ar> In-Reply-To: <20070519003910.GA3254@funes.schapachnik.com.ar> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3269/Fri May 18 21:36:41 2007 on mh2.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh2.centtech.com Cc: freebsd-fs@freebsd.org Subject: Re: Recovering a badly broken disk X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 04:55:43 -0000 On 05/18/07 19:39, Fernando Schapachnik wrote: > Hi, > Please excuse if this is out of topic, but I guess is too > specific for -questions. > > A disk with valuable data broke. The system used to perform > backups in a BSD partition on the same disk. Among other things, the > first sectors were damaged and a professional data recovery shop was > able to recover an image of the remaining disk. > > I fdisk'ed as it was originally, then ran scan_ffs, which > was able to found my backup partition, in mountable state. > > I tried to copy the ~170 MB backup tbz files to another > place, but after ~70MB the kernel gives ICRC errors and the copying > stops. The data recovery shop is not able to extract a better image, > so my last chance is to skip the sectors with bad CRC and try > bzip2recover. Unluckily, both cp and bzip2 abort on reading the > faulty part. > > Any ideas on how to skip the faulty part and copy as much as > possible? The partition in question is plain UFS1 on an ATA 80 GB > disk. You might be able to use dd's noerror option to conv to have it skip over any errors. Eric