I was able to extract my data from the split.zip files (created with Zip 3.0 on the Mac OS X 10.11 command line) using 7-Zip running on Windows in a virtual machine. I just pointed 7-Zip at the new.zip file in a shared folder and it worked like a charm. Split the compressed file into multiple archives, each is less than 1024MB zip -s 1024m -r target.zip target/ get the files: target.z01, target.z02., target.zip. Before unzip them, combine them into one whole zip file. Zip -FF target.zip -out target-full.zip unzip target-full.zip remove all the.z. file.
Click here to return to the 'Create split zip files from the command line' hint |
The -s parameter splits the archive into multiple zipped files fine, but how do I unzip them? Using unzip from the command only looks at the very last file in the archive, and when you specify the first file (.z01), it errors out with:
$ unzip bws.z01
Archive: bws.z01
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of bws.z01 or
bws.z01.zip, and cannot find bws.z01.ZIP, period.
The Unarchiver (free in MAS), unzips the split zip just fine, but hell if I can't find a way to get unzip at the command line to do the same thing.
Why not create the zip file and then use the split command to make your chunks? Those files can simply be concatenated and unzipped.
You and I could definitely do that, and that is certainly the way I would've gone if I wanted to split up a tgz file. My mom… not so much, especially not on Windows. If she were using a Mac I probably would've gone with a sparse bundle DMG file.
As I mentioned in the OP, the man page for zip explains the difference between that approach and using the split zip method.
Split zip is just one alternative to this problem, and it happens to have built in support on both Windows and OS X. M tron pro vst torrent.
There are many other ways to run Windows program on a Mac. Here is a comparative table to understand the advantages of our solution. Virtual machines. (Parallels, VMWare Fusion) Price.
The rar command line tool can be downloaded as (never ending) trialware at rarlab.com. Unrar is free on all platforms. Usage: 'rar a -m0 -v4700000 archivename filename(s)' where a = add (create archive), -m0 = no compression (-m5 = max compression, not useful for video plus it takes much longer), -v with max size in KB (1000 bytes, append 'k' for size in 1024 bytes: -v4589843k).
Uh, what?
'It appears that OSX 10.8 removed the tar --tape-length flag'
Not really. Our fine friends at Apple have chosen to remind us there are other versions of software beside that provided by GNU. Mac OS X appears to have moved 'tar' to be 'bsdtar' and gnu tar is now 'gnutar'. Actually, it's a symlink. Do 'ls -l /usr/bin/tar' to see.
Try this:
gnutar --tape-length=102400 -cMv --file=tar_archive.{tar,tar-{2.100}} [files to tar]
Note, I would *NOT* change the link to gnutar. There be dragons.
That is very helpful! I was a little taken aback when I found that normal 'tar' didn't have the --tape-length flag, even for historical purposes. Knowing about gnutar is very helpful, thanks for pointing it out!
WinZip® makes it easy to create Zip files (.zip or .zipx) that are split into smaller pieces of a size that you specify. There are several reasons why you might want to do this, such as:
- To assist with large downloads. Some users may have difficulty downloading very large Zip files from web sites, FTP sites, etc. You can use the split Zip feature to break large files into smaller pieces that can be downloaded separately.
- To overcome email size limits, as an alternative to sharing the Zip file to the cloud. Some email systems limit the size of attachments. If you want to email a large Zip file that exceeds your limit, sharing is usually the easiest solution, but, if that is not an option, you can also split the Zip file into smaller parts and email them separately.
To split an existing Zip file into smaller pieces
If you have an existing Zip file that you want to split into multiple pieces, WinZip gives you the ability to do that.
Mac Split Zip Into Multiple Files Into Two
Using the WinZip Ribbon interface
- Open the Zip file.
- Open the Settings tab.
- Click the Split dropdown box and select the appropriate size for each of the parts of the split Zip file. If you choose Custom Size in the Split dropdown list, the Custom Size (MB) field will become active and allow you to enter in a custom size specified in megabytes.
- Open the Tools tab and click Multi-Part Zip File.
- In the Split window, browse to the location where you want to create the new split Zip file.
- Type in the file name for the new split Zip file in the File name box.
- Click OK.
- WinZip will create your split Zip file using the size you specified in step 3 as the maximum size for each part. The result will be one file with a .zip or .zipx extension, and additional files with numeric extensions: .z01 or .zx01, .z02 or .zx02, etc.
To create a new split Zip file
You can create a new split Zip file with the WinZip submenu of the context menu.
- Open WinZip and follow steps 2 and 3 above (unless you know the size is set as you want it already).
- Highlight the file(s) and/or folder(s) you want to use to create a split Zip file in Windows Explorer or on the Desktop.
- Right click in the highlighted area and choose Create a Split Zip File from the WinZip submenu of the context menu.
- In the window that opens, change the file name and the destination if you wish, and choose other options, then click Create.
Mac Split Zip Into Multiple Files Without
Notes
Mac Split Zip Into Multiple Files Online
- Each of the segments of the split Zip file will have a different extension. WinZip creates files with names like Data.z01 or Data.zx01, Data.z02 or Data.zx02, and so on, except for the very last segment of the new Zip file. The last segment will always have either the .zip or .zipx extension, respectively, based on the compression method used when creating the Zip file (e.g., Data.zip, Documents.zipx).
- To open the split Zip file, open the file with the .zip or .zipx extension. Don't try to open any of the files with the numbered extensions; WinZip won't recognize them as Zip files.
- Once the split Zip file has been opened, you can work with it much as you would work with a regular Zip file, except you can't add any new files or remove existing files. Some operations such as creating self-extracting Zip files and editing comments are also disabled for split Zip files.
- The sizes listed as 1.2MB, 1.44MB, and 2.88MB are approximate. The segments of the split Zip file are sized appropriately to fit on media of the specified size. You cannot, however, use decimal points when specifying sizes in the Other size field.
- The split Zip file format is an extension of the Zip 2.0 specification. Therefore, some Zip utility programs may not be able to open split Zip files. Please see Split Zip file compatibility information for more details.