I have these three files: 1.zip
, 1.z01
and 1.z02
. I would like to extract and join them into a single file, by right clicking 1.zip
and selecting Extract Here. But then there comes an error:
7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30
p7zip Version 9.04 (locale=en_US.utf8,Utf16=on,HugeFiles=on,2 CPUs)
Error: /home/tim/Desktop/1.zip:
Can not open file as archive
Errors: 1
I was wondering what the problem is and how I can solve it?
ADDED:
Is my usage of unzip -FF
wrong? It seems not working:
$ unzip -FF 1.zip
Archive: 1.zip
warning [1.zip]: zipfile claims to be last disk of a multi-part archive;
attempting to process anyway, assuming all parts have been concatenated
together in order. Expect "errors" and warnings...true multi-part support
doesn't exist yet (coming soon).
file #1: bad zipfile offset (local header sig): 0
2nd ADDED:
Still ain't right:
$ cat 1.z01 1.z02 1.zip > combined.zip && unzip -FF combined.zip
Archive: combined.zip
warning [combined.zip]: zipfile claims to be last disk of a multi-part archive;
attempting to process anyway, assuming all parts have been concatenated
together in order. Expect "errors" and warnings...true multi-part support
doesn't exist yet (coming soon).
warning [combined.zip]: 209829313 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 209829313
(attempting to re-compensate)
extracting: 1.wmv bad CRC ee181eef (should be f3c61875)
It generated 1.wmv
, which can play well only until midway in GNOME MPlayer.
3rd ADDED:
Am I using 7z
wrongly?
$ 7z e 1.z01
7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30
p7zip Version 9.04 (locale=en_US.utf8,Utf16=on,HugeFiles=on,2 CPUs)
Processing archive: 1.z01
Error: Can not open file as archive
$ 7z e 1.zip
7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30
p7zip Version 9.04 (locale=en_US.utf8,Utf16=on,HugeFiles=on,2 CPUs)
Processing archive: 1.zip
Error: Can not open file as archive
Try:
I think most likely some data is broken many times so you need the
-FF
still inunzip
. A single-F
may work also though.I have the same issue today with Mass Effect 3. Someone broke the installation of Mass Effect 3 in new version of origin on windows and my wine of course too (installation hangs on 99%). I have to make manually installation:
zip -FF
should be applied to last part of archive, it will automatically check for all partsPut all your zip files in the same directory: zip_file.z01, zip_file.z02, zip_file.z03, ..., zip_file.zip
In Zip 3.0 version the following commands worked for me:
As noted in the comments, using a
-
sign after the command line option-s
joins all the zip files together and writes it as a single zip file which you can then extract using theunzip
command.I also had some issues. man unzip said the following:
This (zip -s- vmdkdisk -O combined) seems to work for me... (combine vmdkdisk.z01 and vmdkdisk.zip into one file combined.zip)
According to reading
man zip
, "Split .zip" archives can be recombined and unpacked usingunzip -FF
.Above solution by kmario23 is correct I see some typo errors. Here is another example.
Go to the directory where the archives are, through terminal.
If they are on desktop, command is:
~
is your home folder name. Create full archive, by using this command:Full archive is now created.
Unpack the full archive, by using this command:
It appears 7zip doesn't support
multi-volume ZIP
archives.Igor Pavlov states it in this forum thread
Keep in mind that if your follow up files (01, 02 etc.. ) are created by Windows (Z01, Z02 etc..) your linux will not find them. You need to rename the files to z01, z02 ..