Page 1 of 1

Convert DMG to ISO (MacOS X, Windows or Linux)

Convert DMG to ISO (MacOS X, Windows or Linux)
   3

DMG files are very common on the MacOS X platform, used for Disk Images. With Disk Images we mean a full “copy” image of for example a CD, DVD or Harddisk. DMG‘s are typically used to distribute applications.

Some times however you’d prefer a ISO or a CDR image instead, for example for users on different platforms, or for offering other ways to burn an image to CD or DVD (if applicable).

In this article I’ll show you how you can convert a DMG file to either CDR or ISO under MacOS X, Windows or Linux.




Convert DMG to ISO options

When trying to convert a DMG to a ISO or CDR file for MacOS X, we have two options available.
The first one is by using just Disk Utility, a preferred method if you don’t like working with Terminal.
The second method is by using the command line by using Terminal.

To keep the article complete, I’ve added a method for Windows and Linux as well.

After converting a DMG to ISO, the ISO file can be burned on different platforms using popular burning applications like for example Nero under Windows.

Note : ISO images, just like DMG images, can be mounted as a drive as well under MacOS X – no special software needed, just double click the ISO file.

MacOS X – Convert DMG to ISO using Disk Utility

When using Disk Utility you will have to keep in mind that Apple uses the extension CDR for ISO images. In the end CDR and ISO files are the same, they just have a different extension. Renaming a CDR file to ISO afterwards will fix that.

The steps are straight forward:

  1. Double click the DMG so it mounts.
  2. Open Disk Utility (Utilities  Disk Utility).
  3. Right click the DMG Mount and select the “Convert” option.

    Disk Utility - Right click mounted GMD image and choose Convert

    Disk Utility – Right click mounted GMD image and choose Convert

  4. In the dialog that now opens, set the “Image Format” to “DVD/CD master” and click “Save“.

    Disk Utility - Select format and click Save

    Disk Utility – Select format and click Save

  5. After the converted file has been saved, locate it and rename it to .ISO. For example if you saved it as “example.cdr” then now rename it to “example.iso”.

MacOS X – Convert DMG to ISO from the command line

Some of us prefer the command line, I for one often forget the details of the particular thing I’d like to do so I find myself using the first option more often.

  1. Start Terminal (Utilities  Terminal).
  2. Type:
    
    
    hdiutil convert /path/to/example.dmg -format UDTO -o /path/to/example.iso

    Here /path/to/example.dmg  and /path/to/example.iso  are the paths to the files obviously.

  3. After pressing ENTER, it will take a few seconds and after completion you will find your iso file with an additional .CDR extension. Simply rename it to .ISO.
    
    
    mv example.iso.cdr example.iso

Windows – Convert DMG to ISO or IMG

For Windows we need a little free tool called DMG2IMG, a successor of DMG2ISO.

As usual the file can be downloaded from Tweaking4All, but I strongly recommend going to the developers website to grab the latest version.

DOWNLOAD - Dmg2img 

Platform: Windows
Filename: dmg2img.zip
Version: 1.6.7
Size: 63.0 KiB
Date: February 9, 2017
 Download Now 

After downloading and unzipping the file, the usage in a DOS box is simple.

For DMG to ISO:


dmg2img example.dmg example.iso

For DMG to IMG:


dmg2img example.dmg example.img

Linux – Convert DMG to ISO or IMG

A tool like DMG2IMG is also available under Linux, in Ubuntu for example, the easiest way to get it is:


1
2
sudo apt-get update
sudo apt-get install dmg2img

The command line use again is simple:

For DMG to ISO:


dmg2img example.dmg example.iso

For DMG to IMG:


dmg2img example.dmg example.img

Donation options


Donations are very much appreciated, but not required. Donations will be used for web-hosting expenses, project hardware or a motivational boost (a drink or snack). Thank you very much for those have donated already! It's truly AwEsOmE to see that folks like our articles and small applications.

Comments


There are 3 comments. You can read them below.
You can post your own comments by using the form below, or reply to existing comments by using the "Reply" button.

  • Jul 18, 2017 - 4:38 AM - NoName Comment Link

    Hello 

    Thank you for your tutorial and it’s  that the user can use with many OS’s 

    A new version from Dmg2img (dmg2img-1.6.7 – 09 February 2017 Peter Wu) is available, please check the website 

    Reply

    NoName



Your Comment …

Friendly request to not post large files here (like source codes, log files or config files). Please use the Forum for that purpose.

Please share:
*
*
Notify me about new comments (email).
       You can also use your RSS reader to track comments.


Tweaking4All uses the free Gravatar service for Avatar display.
Tweaking4All will never share your email address with others.