Friday, January 09, 2009

Converting a .dmg to a .iso

I have an operating system install image that I need to install in VMware Fusion. The problem is the install image is a MacOS disk image file, or .dmg. I need a DVD image, or a .iso, in order to boot the VM and do the install.

It turns out that the Mac OS X command hdiutil to convert the .dmg to a .iso:

hdiutil convert .dmg -format UDTO -o .iso

See the hdiutil(1) manpage for more info.