Convert dmg to img / iso on Ubuntu Linux

Ever wondered how to convert a Apple DMG file to ISO? Example for Ubuntu: In a shell type: sudo apt-get install dmg2img Usage after installation: dmg2img /path/to/source/dmg /path/to/target/img Depending on your system, conversion could take quite a while… Mounting the image: modprobe hfsplus mount -t hfsplus -o loop /path/to/source.img /mnt/folder