LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2009, 12:21 PM   #1
dody1313
Member
 
Registered: May 2007
Posts: 179

Rep: Reputation: 30
tar problem


hi guys
i am having problem decompressing a folder using tar. (tar -xvf *.tar)
i get this error:
tar: Skipping to next header
tar: Error exit delayed from previous errors

at first i tought the folder was corrupted but it's not when i run the same command on another linux comp.
any help will be appreciated.

thnx in advance
 
Old 12-07-2009, 12:50 PM   #2
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 130

Rep: Reputation: 23
Quote:
...decompressing a folder using tar. (tar -xvf *.tar)
It's not clear from your quote that the tar archive is compressed. If it is then you need
Code:
tar -xzvf
or
Code:
tar -xjvf
 
Old 12-07-2009, 01:04 PM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
dody1313,

Quote:
i am having problem decompressing a folder using tar. (tar -xvf *.tar)
First, your syntax: 'tar -xvf *.tar' your switch 'f' obliges tar to seek a file with an extension 'file.tar'. Check, is it file.tar or a file.tar.gz ?

Second, the archive: See to it that the archive is in good order (healthy) for tar to decompress or extract it. If the archive is bad, tar will refuse.

Third, see to it that in issuing 'tar' there is an archive in that folder/location for tar to extract.

Hope this helps.

Good luck.

Last edited by malekmustaq; 12-07-2009 at 01:06 PM.
 
Old 12-07-2009, 03:50 PM   #4
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
hi guys,
thnx a lot for your replies.
sorry for not giving more info on my command
i have a file named "file.tar"
each time i run the command:
#tar -xvf file.tar
or
#tar -xzvf file.tar
or
#tar -xjvf file.tar

i get these errors:
tar: Child returned status 1 (or status 2)
tar: Error exit delayed from previous errors

what does that mean?

thnx again for helping
 
Old 12-08-2009, 02:44 PM   #5
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 130

Rep: Reputation: 23
Quote:
tar: Child returned status 1 (or status 2)
Status 1 usually means that some files were changed while being archived and so the resulting archive does not contain the exact copy of the file set.

Status 2 refers to a fatal, unrecoverable error.

As a matter of interest, can you extract a filelist with
Code:
tar -tf file.tar
or, if the archive is truly compressed
Code:
tar -tzf file.tar
Also,what does
Code:
file file.tar
say about the file?
 
Old 12-08-2009, 05:28 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,822

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
if gnome is installed what error dose "file-roller" give ?
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM


All times are GMT -5. The time now is 09:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration