Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2005 11:57:02 -0500 (EST)
From:      "Ean Kingston" <ean@hedron.org>
To:        David.Bear@asu.edu
Cc:        freebsd-questions@freebsd.org
Subject:   Re: moving files from bad sectors
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>

next in thread | previous in thread | raw e-mail | index | archive | help

> 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3993.216.220.59.169.1108573022.squirrel>