Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-24-2009, 04:17 PM   #1
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Splitting ZIP file on the fly

I need to create a ZIP archive that will easily be larger than 10G in size. There is a limit to the size a ZIP file can be (I believe 4G). I don't know if this means per file if the archive is split, or the total archive size.

I will need to split the file into parts of about 4G each, as I will need to burn them to DVD.

What are my options?
Old 02-24-2009, 04:25 PM   #2
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 37
There is no real limit to zip but the file system you wish to put the file on.

You can use tar to split files:

You should specify the volume size (tape length) in kilo-bytes:
tar --tape-length=1390 --multi-volume -create --file=//a/foo.tar <files>

or shorter:
tar -L 1390 -Mcf //a/foo.tar <files>

1390 kbytes is the largest size of a file you can fit on a standard
FAT formatted HD floppy (although the file will appear to be 1420 kb).
Old 02-25-2009, 05:44 AM   #3
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
I say use 7zip/p7zip to make volumes.

7z a -v4g files
This tells it to add files to and generate 4 GB volumes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tips from an RHCE: Splitting tar archives on the fly LXer Syndicated Linux News 0 10-24-2007 10:20 PM
File splitting script stephencassidy Programming 3 03-23-2007 01:09 PM
Splitting a File Slayer097 Linux - Newbie 4 02-22-2005 08:15 PM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 02:50 AM
file splitting???? spideywebsling Linux - General 4 07-19-2004 07:42 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration