LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (http://www.linuxquestions.org/questions/aix-43/)
-   -   0511-169 extracting tar file: A directory checksum error on media (http://www.linuxquestions.org/questions/aix-43/0511-169-extracting-tar-file-a-directory-checksum-error-on-media-787196/)

GoBieN 02-05-2010 04:34 AM

0511-169 extracting tar file: A directory checksum error on media
 
Hello Everyone,

I'm trying to extract a tar file that was made on a redhat linux and then transferred trough FTP to the AIX 5.2 server.

Everytime i extract the TAR file it stops with an error on the exact same line:
Quote:

...
x munin-1.4.3/master/DejaVuSansMono.ttf, 320812 bytes, 627 media blocks.
tar: 0511-169 A directory checksum error on media; 1 not equal to 6443.
I get the file trough FTP in bainary mode. First time i just did the ftp transfer again, because i though it got corrupt. But i tried several times and always the exact same error when extracting with tar -xvf filename.tar

I then tried recreating the tar on the redhat box using different tar format. I tried them all: ustar, posix, v7, oldgnu. I then transferred them all, and every time exactly the same error as above.

I'm really lost as why this is, and how to fix this ?

crabboy 02-05-2010 11:59 AM

Have you tried extracting the tar file on the Redhat machine in a temporary directory? Also what is the size of the tar file? You can also try to gzip the file during the transport. if you are able to ungip the file then you are guaranteed that it transfered successfully. A checksum on both sides would also do the same. What is the filesystem type on the AIX machine?

crabboy 02-05-2010 12:00 PM

You can always try Java's jar.

GoBieN 02-06-2010 11:49 AM

The file was a tar.gz originally, but that failed to extract with some compressed headers error. After that i unzipped it on the redhat box (went fine btw) and then tried transferring the tar file.

The tar.gz was downloaded from internet and works fine on a redhat with ext3. After 3 failed atttempts with ftp & tar, I then tried tarrin it myself with different formats as said in my 1st post.

The AIX 5.2 server uses ZFS filesystem.

AlucardZero 02-09-2010 01:04 PM

disk is full?

GoBieN 02-10-2010 01:56 PM

No disk is not full. Even tried a different partition (/usr instead of /home).

I finally got it fixed by making a cpio archive of the directory with some special header option on the linux side and then extracting the CPIO on AIX with no problem at all.

GeoDosch 05-30-2012 04:44 PM

I realize that this is an ancient thread, but I'm having the identical issue. I confirmed that the cause was not due to file corruption by running an MD5 checksum on the files on each server.

I'm hoping that there's a way to extract the existing tar files on the AIX box, since it's 3 files that total nearly 2GB, and since the AIX system is a remote server the transfers are painfully slow.

Quote:

Originally Posted by GoBieN (Post 3859424)
I finally got it fixed by making a cpio archive of the directory with some special header option on the linux side and then extracting the CPIO on AIX with no problem at all.

If it's not possible to make use of the existing files, I could try creating the archives with cpio. However, I'm concerned by the OP's comment that it required 'special' header options to make it work. As I don't want to do this through trial-and-error, does someone know what options are necessary to make cpio compatible between Linux and AIX?

TIA.

-George

GeoDosch 05-31-2012 10:15 AM

I was able to extract the Linux tar files by using the tar utility I got at:
http://www-03.ibm.com/systems/power/...ezinstall.html

Once it was installed, I used the 'gtar' command (tar just runs the native version) and was able to extract the files from the Linux-created archive.

Hope this helps someone else!

TopGear 07-11-2012 04:29 PM

I had the same problem opening a tar created on Novell SuSE SLES 11 untar'ing on an AIX 7.1 system. I downloaded the GNU tar rpm from the AIX Linux Toolbox site:
http://www-03.ibm.com/systems/power/...box/alpha.html

It installed as /opt/freeware/bin/tar
It worked great. Thanks GeoDosch.

NevemTeve 07-14-2012 01:58 AM

Why don't try to unpack it with GNU-tar? (install it into /usr/local/bin not to overwrite the default program)


All times are GMT -5. The time now is 05:12 PM.