Script for testing all files on a drive ?

JB jb.1234abcd at
Fri Dec 23 09:44:31 UTC 2011

linux guy <linuxguy123 <at>> writes:

> ...
> I found the corrupt files when I was attempting to back up every file
> on the drive with a simple cp command.
> I would now like to run a script that checks every file on the drive
> and puts the name and path of every corrupt file into a text file for
> further processing.
> What is the easiest way to do this ?
> Thanks

What exactly is the output of 'stat' on a corrupted file (do not edit it) ?
$ stat <corrupted_file>


More information about the users mailing list