Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-25-2012, 01:38 PM   #1
LQ Newbie
Registered: May 2008
Posts: 15

Rep: Reputation: 0
gzip: stdin: invalid compressed data--format violated; tar: Unexpected EOF in archive

I am having a big headache. I archived one big directory using "tar -czvf" command last year, and then removed that directory to save disk space. Now I copied that xx.tgz file to other cluster using "scp". When I tried to restore the directory using "tar zxvf" command, however, I am getting the following error message in the early of decompression:

gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Does anyone have similar experience before and is there a way to recover all the data?

Thank you.

Old 05-25-2012, 01:44 PM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,445

Rep: Reputation: Disabled
Are you sure the file is actually compressed with gzip? What does file xx.tgz report?


gzip, 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
gzip: stdin: invalid compressed data--format violated ftp ascii transfer sridhar_dct3 Linux - Software 10 07-28-2012 02:25 PM
[SOLVED] tar: Unexpected EOF in archive TheIndependentAquarius Linux - General 3 02-16-2010 03:45 AM
invalid compressed data--format violated holland.d Member Success Stories 6 01-26-2010 05:31 PM
gzlib: stdin: invalid compressed data -crc error pashford Linux - General 4 04-29-2008 07:21 AM
FC 6: gunzip: stdin: invalid compressed data--format violated jnonaka Linux - Newbie 14 03-23-2007 02:24 PM

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

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