LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   zipsplit size question (https://www.linuxquestions.org/questions/linux-newbie-8/zipsplit-size-question-765371/)

shogun1234 10-29-2009 12:32 PM

zipsplit size question
 
I searched the forum but seemingly the question previously posted is not related what I want to ask. So post my question here.

I list the zipsplit help and check on the internet (http://wiki.linuxquestions.org/wiki/Zipsplit)

It says that I can use
Code:

zipsplit -tn 100000 blah.zip
to split zip file with size specified. -t reports but doesn't create files.

However, when I try
Code:

zipsplit -n 100000 blah.zip
it always says
Code:

zipsplit warning: Entry is larger than max split size of: 99978
zipsplit warning: use -n to set split size
zipsplit error: Entry too big to split, read, or write (file.mp4)

What goes wrong here?

Or what should I do so that I can split zip file into several pieces?

Thanks.

shogun1234 10-29-2009 12:39 PM

I think I know the reason why now after reading this thread - https://lists.ubuntu.com/archives/ub...ly/152989.html

It looks like the file element can't be larger than the one specified by -n. There is only one file in my zip archive and it is larger than file size specified defenitively because it is video file.

Is there any chance to split zip archive regardless to the element inside it?

Thanks.

kavius 01-02-2021 05:10 PM

Only because it came up in my search for the same problem...

Thank-you for sharing the problem with zipsplit (I'm annoyed), here's what I was trying to replace

Code:

zip -s 64k -O split.zip pkg.zip
Will generate a number of files that are no larger than 64kb.

Reconstructing the data is apparently a little problematic since it's not really supported. The trick is to use the zip utility to merge all teh parts together, and then unzip the result.

Code:

zip -s- split.zip -O unpkg.zip
unzip unpkg.zip



All times are GMT -5. The time now is 08:03 PM.