LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   rdiff-backup [Errno 5] Input/output error (http://www.linuxquestions.org/questions/linux-software-2/rdiff-backup-%5Berrno-5%5D-input-output-error-887133/)

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
Quote:

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.
Code:

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.
Code:

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 05:10 PM.