New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.5 - splitting dmg files

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jan 20, 2009
Posts: 36
albmrbo is on a distinguished road

albmrbo is offline
can someone slowly and carefully explain to me how to split a dmg file on terminal or a program to do it automatically please?
QUOTE Thanks

Sur3Mac's Avatar
Member Since: Aug 03, 2009
Location: The Netherlands
Posts: 1,563
Sur3Mac is a jewel in the roughSur3Mac is a jewel in the roughSur3Mac is a jewel in the rough
Mac Specs: Late 2011 MBP 13" i5/16GB RAM,Early 2007 MB white 13", 2x TV 3rd Gen, ᣦ

Sur3Mac is offline
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

QUOTE Thanks

Post Reply New Thread Subscribe

« Connecting to HD TV via HDMI | Problem deleting photos/movies to free up space »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
NEF files not transfering from one ext HD to another ext HD Doug b Images, Graphic Design, and Digital Photography 2 03-04-2009 09:10 AM
Files renamed to Unix how to fix this hollinger Other Hardware and Peripherals 0 03-02-2009 05:21 AM
DMG files bduenskie Switcher Hangout 5 10-10-2006 05:28 AM
downloading dmg files tiger2 OS X - Apps and Games 5 09-30-2006 07:39 AM
Cannot mount some DMG files bifter OS X - Operating System 1 08-25-2006 04:18 PM

All times are GMT -4. The time now is 07:28 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?