LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2006, 06:22 AM   #1
wghay
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
tar won't extract a big archive & won't explain...


It's big file (10GB) and was created by tar in RH8, on an NFS-mounted file server.

Tried to extract or list it with the same RH8 tar, and with several much more recent versions, via NFS and SAMBA on the original server. Also on a directly-mounted ext3 partition, all with the same result.

My command is: tar -tvvf foobar.tar

And the result is... nothing at all. tar returns immediately, but apparently does nothing and issues no error messages. Nothing in /var/log/messages either. If this is tar being doubly verbose, I have to wonder what terse looks like...

Presumably this must be a simple one, but I can't see it.

Can more experienced eyes help? Or point me to another place to ask the question?

We really need to extract this archive to rebuild a broken website, so many thanks in advance for any help...
 
Old 03-05-2006, 06:51 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I know almost nothing about NFS, but google seems to say there is a 2Gb limit for NFSv2. Could that be part of the problem?

I would also want to have a look at the contents to make sure it is not just all zeros. A null (all zero) file gives the response you observe

Something like 'od -x bigtarfile | less' maybe. I don't remember what the layout of a tar is supposed to be but it should not be hard to find out.
 
Old 03-05-2006, 07:05 AM   #3
wghay
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
tar & NFS

NFS: The 2GB file limit is in NFS v2, but not v3, and the 10GB file WAS created via NFS after all.

tarfile content: no idea whether it's right, but it's not null - just issuing "tail foobar.tar" shows that.

But anyway, why wouldn't tar report that it's an invalid archive file?
 
Old 03-05-2006, 07:38 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Tar interprets a big enough block of zeros as the end-of-file marker, so if the file is all zero (or begins with enough zeros) it just assumes an empty archive. I checked.

There is a -i switch to tell tar to ignore zero blocks. Might be worth a try.

Otherwise the tar file format is described in wikipedia:

http://en.wikipedia.org/wiki/Tar_(file_format)

Try a hex dump as suggested and check you have a valid header.
 
Old 03-05-2006, 11:23 AM   #5
wghay
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Excellent!
Using -i gets me some sensible output.
Many thanks.
 
  


Reply


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
old tar? archive maenho Linux - Software 4 12-14-2006 07:05 PM
How can I extract a file from iso archive kmichal2 Linux - Software 8 12-14-2004 05:48 AM
Making C extract an archive MylesCLin Programming 2 12-13-2004 05:48 AM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
this doesn't look like a tar archive .phister Slackware 5 02-01-2004 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

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
Open Source Consulting | Domain Registration