LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 11:21 AM   #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, 11:50 AM   #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, 12:04 PM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
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 12:06 PM.
 
Old 12-07-2009, 02: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, 01: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, 04:28 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
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 02:48 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:03 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