From owner-freebsd-questions@FreeBSD.ORG Wed Feb 16 16:57:07 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECE3B16A4CE for ; Wed, 16 Feb 2005 16:57:07 +0000 (GMT) Received: from prosporo.hedron.org (hedron.org [66.11.182.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DE3943D39 for ; Wed, 16 Feb 2005 16:57:07 +0000 (GMT) (envelope-from ean@hedron.org) Received: from www.hedron.org (localhost.hedron.org [127.0.0.1]) by prosporo.hedron.org (Postfix) with ESMTP id E228FC129; Wed, 16 Feb 2005 11:57:02 -0500 (EST) Received: from 216.220.59.169 (SquirrelMail authenticated user ean); by www.hedron.org with HTTP; Wed, 16 Feb 2005 11:57:02 -0500 (EST) Message-ID: <3993.216.220.59.169.1108573022.squirrel@216.220.59.169> In-Reply-To: <20050216162520.GA8072@asu.edu> References: <20050216162520.GA8072@asu.edu> Date: Wed, 16 Feb 2005 11:57:02 -0500 (EST) From: "Ean Kingston" To: David.Bear@asu.edu User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-questions@freebsd.org Subject: Re: moving files from bad sectors X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 16:57:08 -0000 > I have a hard disk that looks like its going out. > > So far, there are 6 reported crc errors. However, I have a file that > I would like to read as much as possible of using tar, but the whole > job stops like this: > > > # tar cvf /dev/nrsa0 /home > /root/tarhome.cat > tar: Removing leading `/' from member names > tar: /home/smbshare1/BUDGETS/RXS0008 fy04 kellogg report and > summary.xls: Read error at byte 14848, reading 10240 bytes: > Input/output error > tar: Error exit delayed from previous errors > > When attempting to cp that same file I get another error and the cp > stops. > > Are there any tools that will permit me to cp as much of this file as > possible, ie all sectors up to, and then past, the bad spot? dd will let you specify parts of files to skip over. You will probably have to do some fiddling with the arguements to get it just right for your file. > as another possibility, are there any tools that I can use with fsck > that would mark the sector as bad so its not reused? -- Ean Kingston E-Mail: ean_AT_hedron_DOT_org URL: http://www.hedron.org/