LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices



Reply
 
Search this Thread
Old 02-05-2010, 05:34 AM   #1
GoBieN
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Rep: Reputation: 0
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 ?

Last edited by GoBieN; 02-05-2010 at 05:35 AM.
 
Old 02-05-2010, 12:59 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
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?
 
Old 02-05-2010, 01:00 PM   #3
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
You can always try Java's jar.
 
Old 02-06-2010, 12:49 PM   #4
GoBieN
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 02-09-2010, 02:04 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
disk is full?
 
Old 02-10-2010, 02:56 PM   #6
GoBieN
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 05-30-2012, 05:44 PM   #7
GeoDosch
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
Question

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 View Post
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
 
Old 05-31-2012, 11:15 AM   #8
GeoDosch
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
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!
 
Old 07-11-2012, 05:29 PM   #9
TopGear
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Thumbs up

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.

Last edited by TopGear; 07-11-2012 at 07:54 PM.
 
Old 07-14-2012, 02:58 AM   #10
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,935

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


Reply

Tags
aix, error, extract, ibm, tar


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting .tar.gz files in current directory... mitesh.ever Linux - Newbie 4 12-09-2008 07:03 AM
Extracting a tar ball directly into a directory kushalkoolwal Debian 2 09-28-2005 02:47 PM
tar - extracting a single directory from a large archive? lowpro2k3 Linux - General 1 07-24-2005 03:44 AM
tar: directory checksum error desbyleo Solaris / OpenSolaris 1 12-18-2004 06:23 AM
tar : directory checksum error in solaris2.6 while untaring tamcat ambuj Solaris / OpenSolaris 5 12-07-2003 11:41 AM


All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration