LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-07-2017, 12:06 PM   #1
hifi100
Member
 
Registered: Sep 2016
Distribution: OpenBSD 6.3
Posts: 159

Rep: Reputation: Disabled
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 ?
 
Old 07-07-2017, 12:18 PM   #2
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 142Reputation: 142
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?
 
Old 07-07-2017, 06:11 PM   #3
hifi100
Member
 
Registered: Sep 2016
Distribution: OpenBSD 6.3
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Laserbeak View Post
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.
 
Old 07-07-2017, 06:29 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 14,837
Blog Entries: 25

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
I think that would fit on a Double Layer DVD disk. They hold about 8GB.
 
Old 07-07-2017, 07:21 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,464

Rep: Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654
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
 
Old 07-07-2017, 10:47 PM   #6
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 142Reputation: 142
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
 
Old 07-07-2017, 11:13 PM   #7
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 142Reputation: 142
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.
 
Old 07-08-2017, 03:42 AM   #8
hifi100
Member
 
Registered: Sep 2016
Distribution: OpenBSD 6.3
Posts: 159

Original Poster
Rep: Reputation: Disabled
I just burned the files to a dual layer dvd.

Thanks to all for replying.
 
Old 07-08-2017, 09:12 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,427

Rep: Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590
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

Last edited by John VV; 07-08-2017 at 09:14 PM.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to split large mpeg file (9 gb) in just two parts by ffmpeg hscfhasc Linux - Newbie 1 08-06-2016 01:25 PM
Split large file into smaller files mikes88 Programming 29 03-22-2012 10:14 AM
Can tar split archives into parts? Rotwang Linux - General 1 12-21-2007 03:14 PM
splitting large files to smaller parts ZaphyR Linux - Software 2 01-28-2005 12:15 PM
splitting one big file to smaller parts? minm Linux - Newbie 4 12-26-2004 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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