David R. Heffelfinger

  Ensode Technology, LLC

 
Bookmark and Share

tar failing with error message "file changed as we read it"


Today I'm upgrading my laptop to the recently released Ubuntu 12.04 Precise Pangolin.

Even though I have my /home directory in it's own partition and the installer shouldn't wipe it out, I'm erring on the side of caution and backing up my home directory before beginning the installation.

I'm using the Linux tar command to compress and back up my home directory, but for some reason after waiting for several minutes the command kept failing with the following error message:

"file changed as we read it"

After googling for a bit I found the solution to the problem, using the --ignore-failed-read flag for tar took care of the issue.

tar --ignore-failed-read -ztvf backup.tar.gz /home/myhomedir

did the trick. 

 
 
 
 
Comments:

This has to be one of my favorite posts! And on top of thats its also very helpful topic for newbies. Thanks a lot for informative information! http://celabright.org/&quot;>http://celabright.org/</a>

Posted by Mike Perham on May 20, 2012 at 11:03 PM EDT #

Post a Comment:
Comments are closed for this entry.
 

« November 2018
SunMonTueWedThuFriSat
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
       
Today

 
© David R. Heffelfinger