Friday, 6 May 2011

Back from Holiday and unzipping zip file bigger than 4 GB on linux

I have neglected my blog a bit since being on holiday.
You don't get good internet speed down on the farm in the TsitsiKama forest so I left the PC alone for a while.
I did fiddle with my HTC Touch Pro a bit I must admit, but that was because I had just updated it with a new ROM and was figuring out what it had and customizing it.
I do love the new ROM!!
The HTC has hogged my attention over my Samsung Omnia i8910 for the past month now.
I haven't flashed the Samsung yet so maybe after doing that I can really compare.
With the default ROM's Samsung wins, but now I'm leaning towards the HTC after some research and tweaking.

Anyway back to work and had to now unzip a 5 GB .zip archive.
Now I knew that there was some king of limit to zipping files bigger that 4 GB (something about 32 bit zip) so thought I might have an issue.
Just so you know this was working on a Linux OS.

Ok so unzipping it with normal unzip file.zip gave hiccups, but eventually completed with an extracted file and errors in the log about extra data somewhere in the file.(weird)

Then a tried 7zip and it did not like the file and said "Unsupported Method"

Once again a had to do some research and found that I should install 64 bit zip and try that. I didn't know off hand how to do that so I hoped another solution was out there or I would have to research installing 64 bit zip.

Woohoo I found another way!!!

So my solution was to use gzip.

The command I used was gzip -dc file.zip > new_file.txt

I don't know if it works on zip files with more than one file in them.

Ok bye.


Edit : New error today while unzipping.

need PK compat. v4.5 (can do v2.1)
This time 7 zip worked.

Installed 7zip (sudo apt-get install p7zip-full for linux)
7za e filename.zip

Note : the gzip method did work but gave an error at the end. The file looked like it extracted correctly.

SUCCESS.