How To Make An Image File From .dmg

Posted on by
How To Make An Image File From .dmg Average ratng: 9,4/10 4505 votes

Mar 30, 2017  Creating macOS installer disk images for VMware Fusion and ESXi with createmacosvminstalldmg March 30, 2017 rtrouton Leave a comment Go to comments I’ve had a tool available for a while named createvmwareosxinstalldmg, but it looks like it has reached the end of the road with macOS 10.12.3. You can open dmg file, convert it to iso file, or burn it to a CD / DVD disc. To convert it to iso file, please follow the steps, Run PowerISO. Choose 'Tools Convert' Menu. PowerISO shows Image Converter dialog. Choose the source DMG file you want to convert. Set the output file format to iso file. Enter the output file path name. Click 'OK' button to start converting dmg file to iso. PowerISO will show the progress information during conversion. You can now explore its contents. If you want to extract any files from the mounted DMG file, then you can right-click on those files/folders, select “Copy To” and then choose a destination folder. Create new DMG disk images and add new content If you want to create a new disk image, then you can click on the “New Disk Image” icon in the toolbar.

When you download software for your Mac computer, it usually comes in form of DMG files. These DMG files are actually disk image files supported only on Mac operating system. You can mount them in your Mac computer and read the contents easily. But what if you want to access the contents of these DMG disk images from inside your Windows PC? You can use an old version of Aladdin Stuffit Expander (if you can still find it online) to extract the contents of DMG files. But if you want to both read the contents of an existing DMG file and create new disk images then you can try TransMac.

Access contents of DMG disk images
TransMac makes it very easy to access the contents of any DMG disk image. For this, you can launch TransMac and click on the “Open Disk Image” icon in the toolbar. After this you can select the DMG disk image file from your hard drive and it will be shown as mounted in the TransMac interface. You can now explore its contents. If you want to extract any files from the mounted DMG file, then you can right-click on those files/folders, select “Copy To” and then choose a destination folder.

Create new DMG disk images and add new content
If you want to create a new disk image, then you can click on the “New Disk Image” icon in the toolbar. It will show a small window asking you to give the disk name (volume label) and the disk size. Choose a disk size wisely because it cannot be altered later.

After the new disk image has been created, it will ask you if you want to mount the new image. You can choose yes to load it in TransMac. Now you can open the new disk image’s root folder and can create new folders and copy/paste files from your hard drive in Windows. All the changes to the disk contents are saved automatically.

TransMac is a useful software for those who do not always have access to their Mac computers. It can be used to access, modify and create DMG disk images in Windows without any special drivers. It creates the DMG images with Apple HFS+ file system.

You can download TransMac from https://www.acutesystems.com/scrtm.htm.

Related posts:

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.

Dmg benefits and side effects. Or you could just unmount it from the terminal:

Most systems seem to mount external drives in /media. Sometimes the drive might be mounted in /mnt or elsewhere.

How To Create An Image

Write the ISO image to the USB drive like this:

How To Make An Image File From .dmg To Iso

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”.

How To Make An Image 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.

How To Make Files Images

Your new USB stick should now be bootable, assuming that was the intended purpose of the DMG.