Today I wanted to burn a .dmg file, but I didn’t have an Apple computer available. So, running Linux I started to google for a solution, and found one.
You need to download the dmg2img tool from http://vu1tur.eu.org/tools/, and then compile it. I had to install libbz2-dev and libssl-dev packages and of course the compiler suite (I installed the build-essential package). On Ubuntu you can easily install the dmg2img package from repository with sudo apt-get install dmg2img.
Run the dmg2img tool to convert the .dmg file:
dmg2img -i file.dmg -o file.img
Next we want to mount the .img file, but make sure you’ve got hfsplus tools installed.
Let’s mount the .img file on a loopback device: sudo mount -o loop file.img /mnt
The content of the image file is now available, so we can copy/use the files or burn an ISO image. Something like ‘cd /mnt && genisofs -o $HOME/file.iso .‘ should do the trick.
Pingback: Aktueller DSL Anbieter Preisvergleich Rechner Online | Aktuelle DSL Anbieter Preisvergleiche