LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   extracting tgz.tar (https://www.linuxquestions.org/questions/linux-newbie-8/extracting-tgz-tar-765614/)

abhipro 10-30-2009 12:44 PM

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

SethsdadtheLinuxer 10-30-2009 01:05 PM

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.

win32sux 10-30-2009 01:25 PM

Quote:

Originally Posted by abhipro (Post 3738193)
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

themanwhowas 10-30-2009 01:31 PM

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"

win32sux 10-30-2009 01:39 PM

Or try to see what exactly you're dealing with by doing a:
Code:

file miracl.tgz.tar

pixellany 10-30-2009 02:11 PM

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.......;)

abhipro 10-30-2009 03:33 PM

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

smeezekitty 10-30-2009 04:09 PM

Quote:

Originally Posted by abhipro (Post 3738387)
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?

win32sux 10-30-2009 04:29 PM

Sounds to me like it might be a blocking issue.


All times are GMT -5. The time now is 06:15 PM.