« Growl 1.1 is out | Main | Growl Global Positioning System »
September 09, 2007
Turning a dmg into an iso
I'm getting tired of repeating this on irc, and of people finding bad info on the web. Here is how you turn a dmg into an iso on OS X:
1) Open a terminal.
2) cd into the directory where the dmg is located
3) Type this in (where newfile is the name of the iso you want, and yourfilename.dmg is the dmg)
hdiutil makehybrid -iso -o newfile.iso yourfilename.dmg
(This was found by cbro and erasei on #macosx on efnet a long time ago).
If you are in #macosx on efnet and need this, type this command:
?? dmg2iso
Comments
Apparently this is the ONLY WAY that actually creates an ISO9660 image on MacOS X (unless you want to pay for commercial products like Toast).
Many people seem to follow recipes found on the web which suggest to use the hdiutil option "convert" which does convert a DMG image to a CDR image, but its not an ISO9660 filesystem which means it can still only be mounted and read under MacOS X, not on Windows, not on Linux, not on BSD.
If Disk Utility does not show "ISO 9660" as format of the CD you burnt, then you did not actually create an ISO CD.
Also, note that the utility called dmg2iso (aka sourceforge.net/projects/dmg2iso) DOES NOT produce images with an ISO9660 filesystem.
Posted by: benjk at September 9, 2007 02:02 AM
Thanks for the tip. Does it matter if the following message appears during the execution of the command?
'load_hdi: IOHDIXControllerArrivalCallback: timed out waiting for IOKit to finish matching.'
Everything else went OK.
Posted by: Takashi Yoshida at September 12, 2007 12:13 PM