Macworld Forums: Expanding .gz files - Macworld Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Expanding .gz files

#1 User is offline   hooverm Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 26-August 08

Posted 26 August 2008 - 02:36 PM

I have some .gz files that I am trying to expand but I am unable to. Whenever I double click on the files I get an error message reading: Unable to unarchive "filename" into "foldername".
I tried using terminal with the command gunzip and then the file name. All I get is a line reading: No such file or directory.
How can I expand these files?
0

#2 User is offline   albloom Icon

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 2,251
  • Joined: 21-April 04

Posted 27 August 2008 - 05:36 AM

Drop it on Stuffit Expander.
0

#3 User is online   bastion Icon

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 1,839
  • Joined: 14-October 04

Posted 27 August 2008 - 08:16 AM

How confident are you that they're really gzip files?

It might be worthwhile to open a terminal, type 'file ' (with a trailing space, but no quotes), drag one of those files you can't expand to the terminal window and hit return.

Also, is there more to the error? I just tried to force an error here and I got the same message you did but also got a second line offering a specific error code.
0

#4 User is offline   hooverm Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 26-August 08

Posted 27 August 2008 - 06:49 PM

Yes, I did get another specific error line: "Error 1 - Operation not permitted."

I have tried Stuffit, it returns, "Unable to determine file format." and then says the file does not appear to be compressed or encoded.

I tried terminal with the command "file", after I hit return it says "packed data"
I tried "gunzip" again in terminal and now depending on which file I use it either reads, "invalid compressed data -- Huffman code > 32 bits" or "Bad table"
0

#5 User is online   bastion Icon

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 1,839
  • Joined: 14-October 04

Posted 28 August 2008 - 09:36 AM

hooverm said:

Yes, I did get another specific error line: "Error 1 - Operation not permitted."

I have tried Stuffit, it returns, "Unable to determine file format." and then says the file does not appear to be compressed or encoded.

I tried terminal with the command "file", after I hit return it says "packed data"
I tried "gunzip" again in terminal and now depending on which file I use it either reads, "invalid compressed data -- Huffman code > 32 bits" or "Bad table"


Those responses pretty much scream that your .gz files aren't really .gz files. Even the response from file - "packed data" - isn't really consistent with a gzip archive from any version of the file command I have here.

New terminal command:

hexdump -C | head

This should give you the first 128 or so bytes of the file, in a format that we can examine to see what kind of data it really is. I have a hunch the 1st two bytes are going to be 1F and 1E.
0

#6 User is offline   hooverm Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 26-August 08

Posted 28 August 2008 - 03:09 PM

I ran hexdump, here are the first few lines:

00000000 1f 9d e3 45 8b cb 91 8e 25 56 25 48 fe 3f ff 00 |...E....%V%H.?..|
00000010 6d bf 16 dd f8 d7 4b fe c7 d7 bc 33 36 93 e0 cf |m.....K....36...|
00000020 1b 5b 5a c9 e1 6b 6d 52 5b ed 1e d7 4e b4 49 e4 |.[Z..kmR[...N.I.|
0

#7 User is online   bastion Icon

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 1,839
  • Joined: 14-October 04

Posted 28 August 2008 - 04:46 PM

hooverm said:

I ran hexdump, here are the first few lines:

00000000 1f 9d e3 45 8b cb 91 8e 25 56 25 48 fe 3f ff 00 |...E....%V%H.?..|
00000010 6d bf 16 dd f8 d7 4b fe c7 d7 bc 33 36 93 e0 cf |m.....K....36...|
00000020 1b 5b 5a c9 e1 6b 6d 52 5b ed 1e d7 4e b4 49 e4 |.[Z..kmR[...N.I.|


That's not gzip. That's compress. The extension should be a capital Z. Brain-dead programs that don't know how to read signature bytes should like it better if you change that.

Out of curiosity, what OS version are you using? The guess I made about what the first two bytes would be was based on the fact that that was the only one in file's database that had the description "packed data." For me, the above is listed as "compress'd data."
0

#8 User is offline   hooverm Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 26-August 08

Posted 28 August 2008 - 06:27 PM

ok, did that, but still get "Error 1 - Operation not permitted." when I try to open it.

I also tried uncompress in terminal, which responds:
Inappropriate file type or format

I'm using OS X 10.4

and I tried Stuffit again, but it still doesn't work.
0

#9 User is online   bastion Icon

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 1,839
  • Joined: 14-October 04

Posted 29 August 2008 - 09:56 AM

Then they're corrupted, and your only real option is to try to get a new copy of the archives or their contained data from another source.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users