Results 1 to 2 of 2

Thread: splitting dmg files

  1. #1

    Member Since
    Jan 20, 2009
    splitting dmg files
    can someone slowly and carefully explain to me how to split a dmg file on terminal or a program to do it automatically please?

  2. #2

    Sur3Mac's Avatar
    Member Since
    Aug 03, 2009
    The Netherlands
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Splitting VOB files across 2 DVDS
    By DigitalWasp in forum Movies and Video
    Replies: 4
    Last Post: 10-02-2009, 01:07 AM
  2. Replies: 1
    Last Post: 10-13-2008, 01:05 PM
  3. Splitting up files on XP
    By the8thark in forum Running Windows (or anything else) on your Mac
    Replies: 3
    Last Post: 08-28-2008, 02:25 PM
  4. Splitting Audio Files?
    By calvin1663 in forum Music, Audio, and Podcasting
    Replies: 3
    Last Post: 05-25-2007, 01:52 AM
  5. Splitting up .avi files
    By Desolate One in forum Movies and Video
    Replies: 1
    Last Post: 03-05-2005, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts