Command Line Split or Combine DMG File

Split DMG File

$ hdiutil segment -o <outputfile> -segmentCount <num> [options] <imagefile>
$ hdiutil segment -o <outputfile> -segmentSize <size> [options] <imagefile>

For example

$ hdiutil segment -o ~/Desktop/New -segmentSize 4000m ~/Desktop/My.dmg

Will be generated 4000 MB limit files, likes this New.dmg, New.002.dmgpart, New.003.dmgpart, ...

Size Parameter

b - Byte
k - KB
m - MB
g - GB

Combine DMG File

$ hdiutil convert ~/Desktop/New.dmg -format UDRO -o My.dmg

If you are a loyal user of the GUI, you can use DMGConverter to complete the work. Of course, this tool has a lot of other functions.


DMGConverter is a Disk Image (.dmg, .cdr, .iso) creation and conversion tool which is simple and easy to use.

It is a very useful tool for the collective processing of more than one file and every folder, and it can deal with all the fundamental processing with the drag & drop of the file/folder.

Download DMGConverter from MacUpdate

Convert cdr to iso Format

$ hdiutil makehybrid -iso -joliet -o My.iso My.cdr
0.00 avg. rating (0% score) - 0 votes