Converting a Mac DMG image to ISO in Ubuntu

Mac DMG images are practically unusable in a non-Mac system in that format. They can be converted to ISO images in Ubuntu for easy burning, mounting, or use in a virtual machine.

Once you have the DMG file you want to convert to an ISO file, you need to install dmg2img

sudo apt-get install dmg2img

Now, assuming the DMG file you want to convert is image.dmg, run the following command:

dmg2img image.dmg

After a few minutes or processing, your DMG will be converted to an IMG file in ISO format (image.img). If you need the ISO extension, simply rename the file:

mv image.img image.iso

Note: IMG files created by Nero are NOT in ISO format and cannot simply be renamed. If you want to convert a Nero IMG file to ISO, use the ubuntu utility nrg2iso, but it’s not required above.


  1. #1 by badman on June 24, 2012 - 5:29 pm

    dmg2img is useless to me-I have a good dmg but dmg2img always fails with “Inflation failed”

  2. #2 by Yots1912 on July 29, 2012 - 1:15 am

    i have same problem as badman :(

  3. #3 by on October 21, 2012 - 8:21 am

    It works for me all the time.

  4. #4 by jon on December 15, 2012 - 5:56 am

  5. #5 by Jeremy on June 28, 2013 - 12:38 am

    Doesn’t work. Converts 3.5 GB DMG file into a 30.00 GB IMG file every time no matter what. Piece of junk. Use something else.

    • #6 by Mike on June 28, 2013 - 10:41 am

      Have you tried on a different DMG file?

  6. #7 by Eric on September 12, 2013 - 9:27 pm

    One less step is to use -i for input filename and -o for output filename to go directly from DMG to ISO: “dmg2iso -i iATKOs_L2.dmg -o iATKOS_L2.iso”