[HOWTO] Convert Macintosh dmg files to iso in Linux

Switch to root
su -
Password: xxxxx

Download and install dependencies required by dmg2img

yum -y install zlib-devel* bzip2* openssl-devel*

Download, unzip, and untar the dmg2img package:

wget http://vu1tur.eu.org/tools/dmg2img-1.6.5.tar.gz
gunzip dmg2img-1.6.5.tar.gz
tar -xvf dmg2img-1.6.5.tar.gz
cd dmg2img*

Build the package and install it in the appropriate directory. Expect and ignore compiler warnings.

make install

Simple usage:

dmg2img input.dmg

Other options:
-o (specify output img name)
-s (silent)
-v (verbose)
-V (extremely verbose)
-d (debug)
-l (list partitions)
-p N (extract only partition N)

 dmg2img -V input.dmg -o output.img

David Gregory Medina

Post created by: David Gregory Medina

Leave a Reply