Operating System - HP-UX
1830138 Members
14183 Online
109999 Solutions
New Discussion

cannot decompress gz file after extracting from tape

 
eduardo bolo
Occasional Advisor

cannot decompress gz file after extracting from tape

i can't decompress my gz file after restoring from tape.
# gzip -d filename (works fine..if not been tar yet)

tar -cvf /dev/rmt/1mnb filename (no error)
tar -xvf /dev/rmt/1mnb filename (no error)

i got this error when trying to gzip the restored file from tape.


pls help!
4 REPLIES 4
Grayh
Trusted Contributor

Re: cannot decompress gz file after extracting from tape

The following doc might be of help:

http://www.mkssoftware.com/docs/man1/gzip.1.asp

Also Compress file to save space, but file cannot be used until uncompressed again. This command is often used with tar. Example:-

gzip myfile.dat
Compress the file ``myfile.dat'' and replace it with the compressed file called ``myfile.dat.gz''.


gunzip myfile.dat.gz
Uncompress the file ``myfile.dat.gz'' and replace it with the uncompressed file called ``myfile.dat''.

Steven Schweda
Honored Contributor

Re: cannot decompress gz file after extracting from tape

> pls help!

You first.

> i got this error [...]

You got _what_ error?

Please supply a transcript showing the actual
commands used, with the actual file names,
and the actual error messages.
Kapil Jha
Honored Contributor

Re: cannot decompress gz file after extracting from tape

do you mean to say that...
u r compressing a file lets say
abc.gz
putting it on tape
restoring it on disk
now it is not decompressing.

M i right.
Is it for everyfiles or a particlular file in tape.
If particular i believe file is currupted in tape,
BR,
Kapil+
I am in this small bowl, I wane see the real world......
eduardo bolo
Occasional Advisor

Re: cannot decompress gz file after extracting from tape

do you mean to say that...
u r compressing a file lets say
abc.gz
putting it on tape
restoring it on disk
now it is not decompressing

yes...this is right