-   Linux - Software (
-   -   rdiff-backup [Errno 5] Input/output error (

mumblemike 06-19-2011 12:03 AM

rdiff-backup [Errno 5] Input/output error
While running a simple backup using a basic rdiff-backup command such as:
# rdiff-backup /DataDrive /BackupDrive
Got a pair of message lines in the error log for a few "problem" files. Each problem file had two lines similar to the following:

ListError Directory/file01.jpg [Errno 5] Input/output error
UpdateError Directory/file01.jpg rdiff-backup.tmp.1234 [Errno 5] Input/output error

mumblemike 06-19-2011 12:19 AM

badblocks caused rdiff-backup error
I was able to solve the problem as follows:
Ran fsck (e2fsck) on the Backup Drive and it showed nothing, but using Disk Utility, SMART Data revealed errors with the Sector Count.
Then ran e2fsck with the -c switch to check and map badblocks

e2fsck -c device
e2fsk said there were inodes with multiply-claimed blocks
for each file with a bad blocks inode, it paused and asked the following two questions which I answered no and then yes, to allow it to delete the "problem" files on the backup drive.

Clone multiply-claimed blocks<y>? no
Delete file<y>? yes

Finally, reran rdiff-backup, but added the --force switch, which caused it to replace the deleted backup files with copies from the original Data Drive.

rdiff-backup --force //DataDrive/Path /BackupDrive/Path
Next step will be to get a new backup drive.

All times are GMT -5. The time now is 01:03 PM.