moving files from bad sectors

Nathan Kinkade nkinkade at ub.edu.bz
Wed Feb 16 17:29:56 GMT 2005


On Wed, Feb 16, 2005 at 11:57:02AM -0500, Ean Kingston wrote:
> 
> > 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.

Specifically, try using the "conv=noerror" option with dd.

Nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050216/63f9e717/attachment.bin


More information about the freebsd-questions mailing list