Thread: splitting dmg files
09-22-2009, 04:27 PM #1
splitting dmg files
- Member Since
- Jan 20, 2009
can someone slowly and carefully explain to me how to split a dmg file on terminal or a program to do it automatically please?
09-23-2009, 06:03 AM #2
- Member Since
- Aug 03, 2009
- The Netherlands
- Late 2011 MBP 13" i5/16GB RAM,Early 2007 MB white 13", 2x TV 3rd Gen, ᣦ
There is a very easy way using the terminal.
The command that splits up a file is called "split".
It works for ANY big file, not just DMG files.
It has been around in the unix world for a long time.
Here is how it works.
You have a big file that you want to cut into smaller pieces.
Suppose its name BIG_STUFF".
Suppose its size is 126 MegaBytes
Suppose you want the size of each piece to be at most 45 Megabytes
You type enter the terminal and change directory so that you
are in the directory where "mystuff.dmg" is.  You type his command
split -b 45m BIG_STUFF
These files are created:
The sizes of these files will be 45, 45, and 36 MegaBytes, respectively.
There is a limit to the number of output files obtained this way, because
the naming convention goes from xaa to zzz and that gives you
26 times 26 times 3 different file names, and that is the best
you can do with "split".
To put the pieces back together, you could type
cat xaa xab xac > NEW_BIG_STUFF
The new two version files  BIG_STUFF and NEW_BIG_STUFF will be identical.
Going beyond the above example, if you have more than
three pieces to glue together, the cat command can do
that this way:
If you have fewer than 26 pieces:
cat xa? > NEW_BIG_STUFF
If you have fewer than 676 pieces:
cat x?? > NEW_BIG_STUFF
If you have more:
cat x?? y?? z?? > NEW_BIG_STUFF
There is more to know about the cat command.
You can see it by typing "cat man" on the terminal.
Hope this helps
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By DigitalWasp in forum Movies and VideoReplies: 4Last Post: 10-02-2009, 01:07 AM
By cvva03 in forum Movies and VideoReplies: 1Last Post: 10-13-2008, 01:05 PM
By the8thark in forum Running Windows (or anything else) on your MacReplies: 3Last Post: 08-28-2008, 02:25 PM
By calvin1663 in forum Music, Audio, and PodcastingReplies: 3Last Post: 05-25-2007, 01:52 AM
By Desolate One in forum Movies and VideoReplies: 1Last Post: 03-05-2005, 11:55 AM