LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-30-2009, 12:44 PM   #1
abhipro
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
extracting tgz.tar


Hi all,

I have a file named miracl.tgz.tar.. and i m trying to decompress it..

I tried the following command:

tar -xvf miracl.tgz.tar

But only the following message comes up..
tar: blocksize = 2

nothing else happen....
Am I doing it the wrong way?

Many thanks,

Regards,
Abhi

Last edited by abhipro; 10-30-2009 at 12:50 PM.
 
Old 10-30-2009, 01:05 PM   #2
SethsdadtheLinuxer
Member
 
Registered: Jun 2007
Posts: 152

Rep: Reputation: 37
it should be tar.gz or miracl.tgz. The tar extension indicates an uncompressed tar. tgz indicates a gzipped tar. so can you have an uncompressed-compressed file. yeah, but that's not the idea.
 
Old 10-30-2009, 01:25 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Quote:
Originally Posted by abhipro View Post
I have a file named miracl.tgz.tar.. and i m trying to decompress it..

I tried the following command:

tar -xvf miracl.tgz.tar

But only the following message comes up..
tar: blocksize = 2

nothing else happen....
Am I doing it the wrong way?
Assuming this is indeed a non-compressed tarball, try this:
Code:
tar xbf 2 miracl.tgz.tar
 
Old 10-30-2009, 01:31 PM   #4
themanwhowas
Member
 
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 216

Rep: Reputation: 29
or if we can assume that it's been renamed somewhere along the line, try changing the name to miracl.tgz and run "tar -zxvf ./miracle.tgz"
 
Old 10-30-2009, 01:39 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Or try to see what exactly you're dealing with by doing a:
Code:
file miracl.tgz.tar
 
Old 10-30-2009, 02:11 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
As implied, it does not matter what kind of strange extensions someone added. What matters is what is inside the file.

Another option: try gunzip. If that works, then try un-tarring it.

I just tried a file that is--in fact--a *.tar.gz. "file" reports that it is simply "gzip compressed data". If I unzip it with gunzip, then "file" says it's a tar archive.

All is well.......
 
Old 10-30-2009, 03:33 PM   #7
abhipro
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hi

I tried all the above... when it still didin't work.. then i re-downloaded tht file..I dont know what hapenned last time.. but now.. the extension is just tar..
so it's miracl.tar..

now, when i tried
tar xf miracl.tar

the following error is shown:

tar: directory checksum error
[ does this mean that the file is corrupt..]

I am on solaris.. but i dont think there would be much change in commands..

Regards,

Abhi

Last edited by abhipro; 10-30-2009 at 03:37 PM.
 
Old 10-30-2009, 04:09 PM   #8
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by abhipro View Post
I tried all the above... when it still didin't work.. then i re-downloaded tht file..I dont know what hapenned last time.. but now.. the extension is just tar..
so it's miracl.tar..

now, when i tried
tar xf miracl.tar

the following error is shown:

tar: directory checksum error
[ does this mean that the file is corrupt..]

I am on solaris.. but i dont think there would be much change in commands..

Regards,

Abhi
where did you download from?
 
Old 10-30-2009, 04:29 PM   #9
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Sounds to me like it might be a blocking issue.
 
  


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
tar.gz to .tgz ?? slackass Slackware 10 09-03-2007 11:22 PM
Help with tar of *.tgz humayun Linux - General 3 08-12-2006 09:06 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 01:54 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
.tgz or .tar.gz c0c0deuz Linux - General 9 12-14-2001 10:37 AM

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

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