From owner-freebsd-questions@FreeBSD.ORG Wed Feb 16 16:27:39 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 5519B16A4CE for ; Wed, 16 Feb 2005 16:27:39 +0000 (GMT) Received: from post5.inre.asu.edu (post5.inre.asu.edu [129.219.110.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F37C43D41 for ; Wed, 16 Feb 2005 16:27:39 +0000 (GMT) (envelope-from David.Bear@asu.edu) Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0IC000E01IY71A@asu.edu> for freebsd-questions@freebsd.org; Wed, 16 Feb 2005 09:25:19 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) by asu.edu (PMDF V6.1-1X6 #30769) with ESMTP id <0IC0009GKIY7RN@asu.edu> for freebsd-questions@freebsd.org; Wed, 16 Feb 2005 09:25:19 -0700 (MST) Received: from moroni.pp.asu.edu (moroni.pp.asu.edu [129.219.69.200]) (8.12.10/8.12.10/asu_smtp_relay,nullclient,tcp_wrapped) with ESMTP id j1GGPKMC007675 for ; Wed, 16 Feb 2005 09:25:20 -0700 (MST) Received: by moroni.pp.asu.edu (Postfix, from userid 500) id CC4B71043; Wed, 16 Feb 2005 09:25:20 -0700 (MST) Date: Wed, 16 Feb 2005 09:25:20 -0700 From: David Bear To: freebsd-questions@freebsd.org Message-id: <20050216162520.GA8072@asu.edu> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.4.1i Subject: moving files from bad sectors X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David.Bear@asu.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 16:27:39 -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? as another possibility, are there any tools that I can use with fsck that would mark the sector as bad so its not reused? David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"