[Cialug] Tar file corruption

Dave Weis djweis at internetsolver.com
Tue Apr 30 13:54:50 CDT 2013


Have you tried opening it with winzip or 7zip? Perhaps they deal better with junk in the file.


-----Original Message-----
From: cialug-bounces at cialug.org [mailto:cialug-bounces at cialug.org] On Behalf Of David Bierce
Sent: Tuesday, April 30, 2013 1:52 PM
To: Central Iowa Linux Users Group
Subject: Re: [Cialug] Tar file corruption

I tried extracting using --ignore-failed-read and --ignore-zero (as tar reads zeros as an EOF) but after it extracts the first part of the file and gets to the empty sections (where the bad blocks were zeroed out) and it t starts to throw errors and uncompress lots of garbage when it finally gets back to data.

I do get some files like this.

Like this 

mnt/wine/drive_c/windows/system32/d3d9.dll
mnt/wine/drive_c/windows/mono/mono-2.0/lib/mono/2.0/culevel.exe
mnt/wine/drive_c/windows/mono/mono-2.0/lib/mono/2.0/gacutil.exe
tar: Skipping to next header
tar: Archive base-256 value is out of off_t range
tar: Archive value -1099511627776 is out of mode_t range 0..18446744073709551615
\031 at A\377\377\377\377
tar: \031 at A\377\377\377\377: Unknown file type `z', extracted as normal file
tar: @A????: implausibly old time stamp 1969-12-31 18:00:00
tar: Skipping to next header


Which then fills the rest of the drive with invalid hardlinks with fun and exciting names like ?@A???? and B???C????y??0??) with a time stamp of 6 hours before epoch.


On Apr 30, 2013, at 1:11 PM, Tom Pohl wrote:

> Have you tried the tar option --ignore-failed-read? I think that is the option that will try to skip past corruption and carry on.
> 
> Thanks!
> -Tom
> 
> On Apr 30, 2013, at 10:58 AM, David Bierce wrote:
> 
>> I have a tar file that was bzip2 compressed and had a few blocks to bad in media transfer, After pulling out the bad blocks, the reconstituted tar file appears to only function until the place in the file where the first block was corrupted.  After the first block it just doesn't read the rest of the data.  I've tried to read the file ignoring zero data, which just pulls a bunch of junk metadata and file names after the empty block.  I've tried to extract it using CPIO, which has the same problem after the empty block.
>> 
>> Does anyone know of a tool that can repair tar files, or at least, 
>> try.  Or it is time time to go digging deep into the file or give up 
>> :) _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug

_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug


More information about the Cialug mailing list