Identifying files corrupted by bad sectors?

M

Mike Tomlinson

I recently moved my OS installation from a Seagate Barracuda IV 80GB
drive to a 120Gb Barracuda 7200.7 drive. This was because the old drive
had developed bad sectors and had been in constant use for three years.

Neither Ghost v5.1d nor Drive Image 2002 would image the old disk, both
aborting when encountering bad sectors. Ghost aborted with an "internal
consistency error" even though the "ignore bad sector" option was turned
on.

In the end, I used dd_rescue on a Knoppix box to image the drive and am
now using the cloned drive (typing this using it.)

It would be very useful, however, to know which files have been damaged
by the bad sectors on the original drive. Is there anything that will
analyse the drive and tell me this, so I can restore them from tape?

Thanks.
 
R

Rod Speed

Mike Tomlinson said:
I recently moved my OS installation from a Seagate Barracuda IV 80GB
drive to a 120Gb Barracuda 7200.7 drive. This was because the old drive
had developed bad sectors and had been in constant use for three years.
Neither Ghost v5.1d nor Drive Image 2002 would image the old disk,
both aborting when encountering bad sectors. Ghost aborted with an
"internal consistency error" even though the "ignore bad sector"
option was turned on.
In the end, I used dd_rescue on a Knoppix box to image the
drive and am now using the cloned drive (typing this using it.)
It would be very useful, however, to know which files have been
damaged by the bad sectors on the original drive. Is there anything
that will analyse the drive and tell me this, so I can restore them from tape?

There are a few utes around that will report bad
sectors by both the block number and the file.

Unfortunately I cant remember which ones do that.

You should be able to do a binary compare using a knoppix CD
and the ones affected by the bads should show up that way.
 
R

Rod Speed

Rod Speed said:
There are a few utes around that will report bad
sectors by both the block number and the file.
Unfortunately I cant remember which ones do that.

Doesnt the Seagate diagnostic report the file affected ?

Unfortunately I cant try that because I dont have a hard drive with bads.

One approach would be to try the bad scanners on the Ultimate Boot CD.
 
M

Mike Tomlinson

Rod Speed said:
Doesnt the dd_rescue log file list the ones its had a problem with ?

Only by sector number, not by filename, but thanks for the thought.
I'll have a go with your other suggestions. I took two copies of the
original disk, so can have a play with the second copy.
 
A

Arno Wagner

Previously Mike Tomlinson said:
I recently moved my OS installation from a Seagate Barracuda IV 80GB
drive to a 120Gb Barracuda 7200.7 drive. This was because the old drive
had developed bad sectors and had been in constant use for three years.
Neither Ghost v5.1d nor Drive Image 2002 would image the old disk, both
aborting when encountering bad sectors. Ghost aborted with an "internal
consistency error" even though the "ignore bad sector" option was turned
on.
In the end, I used dd_rescue on a Knoppix box to image the drive and am
now using the cloned drive (typing this using it.)
It would be very useful, however, to know which files have been damaged
by the bad sectors on the original drive. Is there anything that will
analyse the drive and tell me this, so I can restore them from tape?

Since you are already using Linux (I assume), this is simple:

Do a backup with tar to nowhere:

tar cf - /dev/null <whatever is to backup>

It will run into a read error on each file with a defect
and report that. I am not sure whether you need to fix
each hit and then re-run or whether tar will continue
and report all errors that way.

Another option should be a recursive wc or md5sum:

find /cdrom -type f -exec md5sum \{\} \; > /dev/null

Arno
 
A

Arno Wagner

Previously Mike Tomlinson said:
Only by sector number, not by filename, but thanks for the thought.
I'll have a go with your other suggestions. I took two copies of the
original disk, so can have a play with the second copy.

You cannoty find the defects on the copy, only on the original...

Arno
 
F

Folkert Rienstra

Mike Tomlinson said:
I recently moved my OS installation from a Seagate Barracuda IV 80GB
drive to a 120Gb Barracuda 7200.7 drive. This was because the old drive
had developed bad sectors and had been in constant use for three years.

Neither Ghost v5.1d nor Drive Image 2002 would image the old disk, both
aborting when encountering bad sectors. Ghost aborted with an "internal
consistency error" even though the "ignore bad sector" option was turned
on.

In the end, I used dd_rescue on a Knoppix box to image the drive and am
now using the cloned drive (typing this using it.)

It would be very useful, however, to know which files have been damaged
by the bad sectors on the original drive.
Is there anything that will analyse the drive and tell me this, so I can
restore them from tape?

So, what's wrong with using the OS native utilities specifically for that purpose?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top