34

I have medical records within Windows software within a DMG disk image. How can I convert the DMG to an ISO format on Mac OS X? Is it possible to do it within Disk Utility or CLI easily, or do I need an external utility?

34

You can use hdiutil to convert from .dmg to .iso directly:

$ hdiutil makehybrid -iso -joliet -o [filename].iso [filename].dmg

Renaming .cdr to .iso is bad advice! An .iso has a slightly different format that allows PC users to play the DVD as well. A renamed file will work on macOS, but NOT on a PC.

If you have a .cdr and want to convert it to an .iso, execute:

$ hdiutil makehybrid -iso -joliet -o [filename].iso [filename].cdr
  • 3
    Or you can just use the .dmg directly as input instead of going through .cdr. – dualed Feb 12 '15 at 17:37
  • yes, sure ;-) But please no renaming... – Christian Tismer Feb 13 '15 at 0:40
  • 1
    What would be the command to convert a dmg directly to iso just for completion sake of the question? – William Mar 20 '17 at 16:27
  • Does it work for creating a bootable Mac OS installtion iso image for VMWare? – Shayan Sep 28 at 17:11
14

Yes, Disk Utility can do this. Use Convert then select your dmg file. In the Save As dialog that follows, select DVD/CD master. Disk Utility will insist on saving the new ISO as a .cdr file, but it is really an ISO. You can rename it to .iso in the Finder, if you like.

At http://osxdaily.com/2012/07/18/convert-dmg-to-cdr-or-iso-with-disk-utility/ there are screen shots that walk through this process.

  • 3
    "it is really an ISO" is plain wrong. Seeing a .cdr from OSX, there appears to be no difference to a .iso . But you feel it after your DVD does not work on Windows. – Christian Tismer Dec 8 '14 at 13:57
  • 4
    I am still unhappy with the accepted answer. Both Sean and mblakele failed here, because an answer was accepted, that was only right for OSX users. But this will strike back, as soon as you try to use a renamed .iso in Windows. I think correctness is important, because wrong information should not be kept in the public, even if it's "just windows" ;-) – Christian Tismer Aug 5 '15 at 16:33
  • 3
    This is still wrong, today. What a shame! – Christian Tismer Dec 2 '16 at 18:41
  • @mblakele What convert button? Not seeing that on Disk Utility (version 16.0) . Am I doing this wrong, or is this answer just obsolete because of other software changes? – zipzit Jan 29 '17 at 17:19
  • @zipzit Apple likes to move things around from time to time. Try the Images menu, then Convert... – mblakele Jan 31 '17 at 4:58
1

Would be the same:

hdiutil makehybrid -iso -joliet -o [filename].iso [filename].dmg

For example:

hdiutil makehybrid -iso -joliet -o output_file.iso file_to_convert.dmg
  • Does it work for creating a bootable Mac OS installtion iso image for VMWare? – Shayan Oct 1 at 20:22
-3

You must mount the cdr people.

  • Welcome to Ask Different! Unfortunately, this doesn't look like an attempt to answer the question. – Glorfindel Apr 12 '17 at 16:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .