From owner-freebsd-questions@FreeBSD.ORG Wed Feb 16 17:29:56 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 0DE7C16A4CE for ; Wed, 16 Feb 2005 17:29:56 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D25A43D1D for ; Wed, 16 Feb 2005 17:29:54 +0000 (GMT) (envelope-from nkinkade@fastmail.fm) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id EDE6DC58516 for ; Wed, 16 Feb 2005 12:29:52 -0500 (EST) X-Sasl-enc: YmL/JJ6vK6mJF76h8skRHQ 1108574992 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id E0CEB247F3 for ; Wed, 16 Feb 2005 12:29:52 -0500 (EST) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1D1Szm-000084-GC for freebsd-questions@freebsd.org; Wed, 16 Feb 2005 11:29:50 -0600 Date: Wed, 16 Feb 2005 11:29:50 -0600 From: Nathan Kinkade To: freebsd-questions@freebsd.org Message-ID: <20050216172950.GB8365@gentoo-npk.bmp.ub> Mail-Followup-To: freebsd-questions@freebsd.org References: <20050216162520.GA8072@asu.edu> <3993.216.220.59.169.1108573022.squirrel@216.220.59.169> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aPIqI//Qhze8VsLV" Content-Disposition: inline In-Reply-To: <3993.216.220.59.169.1108573022.squirrel@216.220.59.169> X-PGP-Fingerprint: 3FDF A406 B149 3959 A8CB C5A9 3B46 4812 D852 7E49 User-Agent: Mutt/1.5.6i Sender: Subject: Re: moving files from bad sectors X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 17:29:56 -0000 --aPIqI//Qhze8VsLV Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 16, 2005 at 11:57:02AM -0500, Ean Kingston wrote: >=20 > > 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? >=20 > 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. Specifically, try using the "conv=3Dnoerror" option with dd. Nathan --aPIqI//Qhze8VsLV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCE4MOO0ZIEthSfkkRAir/AJ46oE+LQTdIWHOWB6tBKLVTuMT4CACfZUVr +/sK+17S++TB7T454xJpI/w= =jyx3 -----END PGP SIGNATURE----- --aPIqI//Qhze8VsLV--