LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to split a folder into smaller parts (https://www.linuxquestions.org/questions/debian-26/how-to-split-a-folder-into-smaller-parts-4175609393/)

hifi100 07-07-2017 12:06 PM

How to split a folder into smaller parts
 
Hi,

I have a folder totaling 5.6 GB. Its a Windows game. I want to split it into two parts so

that I can burn them on 2 DVDs.

I already tried file roller and 7zip but the compression process is taking forever.

Is there a easy way out ?

Laserbeak 07-07-2017 12:18 PM

I'm not a Windows person, but can't you do it manually?

I mean select files that will fit on one disc and burn them, them burn the rest on a second disc?

hifi100 07-07-2017 06:11 PM

Quote:

Originally Posted by Laserbeak (Post 5732023)
I'm not a Windows person, but can't you do it manually?

I mean select files that will fit on one disc and burn them, them burn the rest on a second disc?

One file is slightly more than 5GB and the rest is about 40MB.

frankbell 07-07-2017 06:29 PM

I think that would fit on a Double Layer DVD disk. They hold about 8GB.

michaelk 07-07-2017 07:21 PM

The single 5GB file is assumed to be binary so compressing may not gain much. Lacking a double layer DVD you can use the split command to split the file into two parts, burn the dvds, copy to the destination and then use cat to put them back together.

split -b 3G myfile

cat x* > myfile

Laserbeak 07-07-2017 10:47 PM

Zip can make multiple parts too. I've decompressed them but never made a multifile zip file.

Let me look...

OK, it looks like you should zip the entire thing into one zip file then run zipsplit to break it up into multiple parts.

You can use the -n option with the maximum number of bytes per zip file.

One warning, my man page (dated 2008) says it can't handle files over 2 GB. Hopefully by now that has been changed, so get the latest version of the zip tools.

HTH

Laserbeak 07-07-2017 11:13 PM

If that doesn't work, try bzip2....It might make it small enough for one disc, otherwise (like michaelK said) you can just split them manually and cat them back together on the target machine then unzip them.

hifi100 07-08-2017 03:42 AM

I just burned the files to a dual layer dvd.

Thanks to all for replying.

John VV 07-08-2017 09:12 PM

there is Lxsplit
Code:

lxsplit -h
LXSplit v0.2.4 by Richard Stellingwerff, O. Sezer.
Home page: http://lxsplit.sourceforge.net/

Usage: lxsplit [OPTION] [FILE] [SPLITSIZE]

Available options:
 -j : join the files beginning with the given name
 -s : split the given file.  requires a valid size
Splitsize examples: 15M, 100m, 5000k, 30000000b

Examples:
        lxsplit -s hugefile.bin 15M
        lxsplit -j hugefile.bin.001

it is old but builds and works , also i come across a lot of 'file.001' , 'file.002', -to -- 'file.100' part files


All times are GMT -5. The time now is 07:13 PM.