DMG is Apple's file format for disk image, similar to ISO for Windows. It offers an easy information sharing and software distribution for Mac users. But it's not an user-friendly format for Windows since .dmg file can not be natively handled, such as burning DMG to USB. For that reason, no matter what platform you're using, you will need to first convert the DMG into ISO so that it can be used on a Windows machine. We've shown you how to do this on three different platforms: Linux, Mac and Windows.
One thing to remember about this process is that DMG files won't always work for software installations after converting them to ISO. The reason is that applications have to be designed differently for Windows and Mac, and they're not interchangeable. However, you can use this method to extract the contents of the file once it has been converted to ISO. For media and other content types, this is an ideal way to do it.
Part 1: How to Convert .dmg to .iso on Linux (Ubuntu)
The best thing about Linux is that you can complete a lot of tasks totally for free. All apps are distributed in open source license, meaning you don't need to pay a single peny to use the app. Actually, there is a package called dmg2img, which is able to convert .dmg file to ISO with a set of text commands. Taking Ubuntu as an example at here.
Right now Ubuntu only comes with dmg2img version 1.6.2 and version 1.6.4 sometimes makes a difference. Also you can extract specific partitions from a dmg and only some of them are hfs+. Download Ubuntu desktop, Ubuntu Server, Ubuntu for Raspberry Pi and IoT devices, Ubuntu Core and all the Ubuntu flavours. Ubuntu is an open-source software platform that runs everywhere from the PC to the server and the cloud.
Step 1 : Lanuch Terminal app and update the system via this command (sudo apt-get update)
Step 2: After the package installed sucessfully, then input this command to install the package (sudo apt-get install dmg2img)
Step 3: Finally input this command to convert DMG to ISO (dmg2img demo.dmg demo.iso)
Replace the example files with the real file names. You must also run Terminal in the same directory location as your DMG file.
Part 2: How to Convert DMG to ISO on Mac
In a Mac computer, you can use a different command line input in Terminal, or you can use the native Disk Utility to convert DMG into ISO. Both methods have been shown below:
Terminal: The command line input is different from what you would use for Windows. It uses the hdutil program to convert the DMG file into its ISO equivalent. Open a Terminal instance by clicking Applications >Utilities >Terminal.
In the Terminal window, execute this command: hdiutil convert /path/to/example.dmg -format UDTO -o /path/to/example.iso
Be sure to put in the right source and destination files with their complete file paths in the above command. Your ISO file will be ready once you hit Enter.
Disk Utility: Open Disk Utility from Applications >Utilities. Mount the DMG file by double-clicking on it. You will now be able to see it within Disk Utility. The DMG mount must be right-clicked, after which you can choose 'Convert' in the context menu.
In the next dialog box, click on 'DVD/CD Master' when asked to specify the image format. Now hit 'Save'. Locate the saved file, which will be a .cdr file. You can now rename the file and change the file extension from .cdr to .iso.
Part 3: How to Convert DMG to ISO on Windows
To convert a DMG file to ISO in Windows, you will need a special utility. The one we've shown here is called dmg2img, and it can be run from the command line to convert one format to the other. IMG is Apple's old disk image format, which transitioned into DMG with Mac OS X. However, we don't need the IMG format, since we're going to convert the DMG directly into ISO with this method. Follow the steps described below:
Step 1: Download the win32 binary for the application from this page.
Step 2: Go to the Downloads folder in File Explorer and right-click on the zipped file. In the context menu, click on 'Extract All…'
Step 3: Extract it to the same folder (Downloads), then right-click the Downloads folder while holding down the Shift key. This will show another context menu, where you can click on 'Open command window here.'
Step 4: At the command prompt, enter the following command and then Enter: dmg2img source.dmg destination.iso
Step 5: The above command should be modified to include the file path with file name for both the source and destination files. You can choose to create the ISO in the same Downloads folder, or another location of your choosing.
These different ways are designed to help you convert DMG into ISO, which can then be used on a Windows machine, including ISO burning, editing, creation, etc. There are several other workarounds for this, but be cautious when using unknown software. If the DMG file is corrupted during the conversion process, the resulting ISO file will be unusable. To make sure there are no problems, only use the command line input or a trusted application for this purpose. If you'd rather not risk using command prompt or free software, there are several premium tools that can help you convert DMG to ISO on Windows, Mac and Linux computers.
This guide covers the verbatim copying of a DMG image to a USB thumb drive using only Linux (no need to find a Mac). If the DMG was intended to be bootable then the resulting USB will be bootable.
Convert to ISO
Linux doesn’t much care for DMG files. Sure, it’ll play nice with them. But we don’t just want to play nice. We want to copy a DMG image to a USB drive and keep it as verbatim as computationally possible. In order to do this, we’re first going to convert the image to a format that’s a little more universal: ISO.
We’re going to use dmg2img to convert the DMG to an ISO image. If you already have dmg2img, great. If not, install it using your distribution’s native package management system.
On Ubuntu, you’d do it like this:
Once you have dmg2img installed, begin converting the DMG file:
After a few minutes, you should have a second file called image.img. This file can be used like an ISO. All we have to do is change the extension. Use mv to do this:
Make sure you specified “image.img” and not “image.dmg”! Working with three different file extensions can get kind of confusing.
Ok, so we should now have a file called “image.iso” which is just “image.img” with a different extension.
Now we want to write “image.iso” to our USB drive. I used “lsblk” to figure out how the system was identifying my drive. The lsblk command lists all disks connected to the system. It’s usually pretty easy to figure out which disk is which based on their size. Just be sure you’re sure. This process is going to overwrite the target disk with the contents of our DMG image file. Any preexisting files on the target disk will be lost. As usual, make sure you have a proper backup.
Make sure the target drive isn’t mounted. Unmount the drive with your distribution’s GUI.
Or you could just unmount it from the terminal:
Ubuntu Dmg Image For Mac
Most systems seem to mount external drives in /media. Sometimes the drive might be mounted in /mnt or elsewhere.
Write the ISO image to the USB drive like this:
Replace “X” with the appropriate letter. For example “/dev/sdb”. Be sure to use the drive directly and not a partition within the drive. For example, don’t use “/dev/sdb1”.
Ubuntu Dmg File
This will probably take a little while to complete. I’m using a Kingston DataTraveler DTSE9 and it took about 24 minutes 30 seconds to write 4.9GB.
Ubuntu Dmg Image
Your new USB stick should now be bootable, assuming that was the intended purpose of the DMG.