Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit HintSearchThe ForumsLinksStatsPollsFAQHeadlinesRSS 10,000+ hints and counting!
Convert .dmg files to .iso files for burning elsewhere
Apps
I found this out a while ago when looking for info on reading .DMG files on Windows or Linux boxes. I found out it was not possible, and I wasn't too happy. You see, my iMac has no CD-R drive, just a CD-ROM. This tip creates ISO images from DMG images, so they can be burned elsewhere. To convert the file to an ISO image, type the following command at your terminal window:

 hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso
Replace /path/to/filename.dmg with the path and name of the existing .DMG file, and replace /path/to/savefile.iso with the desired path and name for the converted image.

This then creates an ISO image burnable in Nero on Windows, or pretty much anything on Windows that will burn ISOs and same with Linux. I just converted a DMG image as a test, and it took a while -- it only converted at about 1MByte per secoond, but I only have a 333Mhz imac G3, so speed wise, it may be good.
    •     [579,225 views]   
Rate this hint: [ 1  · 2  · 3  · 4  · 5 ] Average rating:

Hint Options

Convert .dmg files to .iso files for burning elsewhere | 33 comments | Create New Account
Click here to return to the 'Convert .dmg files to .iso files for burning elsewhere' hint
The following comments are owned by the person who posted them. This site is not responsible for what they say.
Convert .dmg files to .iso files for buring elsewhere
By: spacehaven on Thu, Jan 29 2004 at 11:26AM PST
Coincidentally, just the other day I found out that the same can be done to Nero .nrg files. (Nero is a CD burning program for windows.) Change the extension to .iso and mount-up!
Convert .dmg files to .iso files for buring elsewhere
By: xcgr on Thu, Jan 29 2004 at 11:27AM PST
For those who prefer a GUI, this is also doable in recent versions of Disk Copy. When creating or converting the disk image, specify "CD/DVD Master" as the output format.
Convert .dmg files to .iso files for buring elsewhere
By: juanfc on Thu, Jan 29 2004 at 11:51AM PST
Thanks a lot for this very useful trick. I have done the next tclscritpt. Don't forget to save it as (for example) dmg2iso with the -x bit activated (chmod +x dmg2iso)

#!/usr/bin/env tclsh

# dmg2iso
# juanfc (2004-01-29)

foreach f $argv {
    if {[file extensio $f] == ".dmg"} {
        eval exec {hdiutil convert "$f" -format UDTO -o [file rootname "$f"].iso}
    } else {
        eval exec {hdiutil convert "$f.dmg" -format UDTO -o "$f.iso"}
    }
} 

---
---
juan

Convert .dmg files to .iso files for buring elsewhere
By: bluehz on Thu, Jan 29 2004 at 12:32PM PST
anyway to do disk image compression in the iso.... this method seems to create huge uncompressed disk images.
Convert .dmg files to .iso files for burning elsewhere
By: sesl on Sun, Jul 4 2004 at 11:32PM PDT
when ever i tried to do that it would say "convert failed - Operation not permitted" what did i do wrong?
Convert .dmg files to .iso
By: co0ol on Sun, Aug 15 2004 at 12:57PM PDT
i have windows xp and i write this in run < this messege appear to me < windows cannot find hdiutil >
so what should i do .
Convert .dmg files to .iso files for burning elsewhere
By: mackenziepiper on Sat, Sep 11 2004 at 9:10AM PDT
hi there.

this also didn't work for me on windows XP. which system is this meant to be used on? any hints to help me here would be appreciated :)

thanks!
Convert .dmg files to .iso files for burning elsewhere
By: commandus on Thu, Aug 11 2005 at 11:27AM PDT
Here's an alternative script using the bash shell:

----------------------------------------------------------------

#!/bin/bash
echo "Converting "$1".dmg to "$1".iso:"

hdiutil convert "$1".dmg -format UDTO -o "$1".iso

mv "$1".iso.cdr "$1".iso

----------------------------------------------------------------

Save as dmg2iso (Or whatever) and run:
chmod +x dmg2iso

To use:
$ dmg2iso image

You don't have to include the ".dmg" bit. It's assumed. The output file will be: image.iso

Enjoy.

Commandus
Convert .dmg files to .iso files for burning elsewhere
By: netdata on Fri, Nov 25 2005 at 1:34AM PST
Alternative method:

Open Disk Utility, convert the DMG file to a CD/DVD Master (it'll have the extention .cdr), change the extention to .iso, transfer it over to your PC and burn it with whatever software you have.

Originally posted on macrumors by: vniow
Convert .dmg files to .iso files for burning elsewhere
By: friends.prince on Wed, Sep 6 2006 at 7:30PM PDT
Hi
Buddy i am using "Mandriva 2006" linux on my PC. My PC configuration is Pentium D with 512 RAM and SATA 80 GB HDD. Can u plz guide me which other linux will fit with my PC.
As i am using Mandriva for the first time and the command "hdiutil" is not a valid command on my linux.

Plz guide me as i am in great mess.

Thnx
Convert .dmg files to .iso files for burning elsewhere
By: Terabap on Sat, Oct 14 2006 at 1:57PM PDT
I am confused what to write in the comand. I am confused what to write for first Path and then another Path in the end.
I have file name: iLife , on C Drive (its directly on C, not in any folder). and I want to save that file on Desktop.

Can anyone help me... Please...

You can contact me on: jaypatel06@yahoo.com

Thanks
Convert .dmg files to .iso files for burning elsewhere
By: creativetags on Fri, Nov 3 2006 at 8:26AM PST
i tried converting a dmg to iso using this method to get parallels desktop to read it as a cd but parallels refuses to connect (through windows xp).

Any ideas why this might be?

iso's made with parallels image tool work fine but that doesn't allow you to convert an existing image.
Convert .dmg files to .iso files for burning elsewhere
By: Foibles on Thu, Mar 1 2007 at 6:45PM PST
Elapsed Time: 32.480s
Speed: 17.1Mbytes/sec
Savings: 0.0%


500+ MB Image. 2.0 Ghz Intel Core 2 Duo
Convert .dmg files to .iso files for burning elsewhere
By: beos_appliance on Thu, May 24 2007 at 8:54AM PDT
Rip a CD-ROM to a .iso file:

In disk utility, get info on your mounted CD to see what device name it is. On mine it's /dev/disk1s0.

hdiutil create -srcdevice /dev/disk1s0 -format UDTO filename.iso

mv filename.iso.cdr filename.iso
REALLY convert .dmg files to .iso images
By: crypto7 on Fri, Aug 24 2007 at 8:57PM PDT
I think there is some confusion between naming something ".iso" (which, if a .cdr image, is then burnable in Windows) and the actual ISO-9660 *filesystem*, with or without the Joliet extensions, which is an actual burnable, mountable and useable VOLUME in Windows. If you do this:

hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso

or more properly this:

hdiutil convert -format UDTO -o /path/to/outfile /path/to/source.dmg

You end up with the same thing: A .cdr disc image. Leave the ".iso" off to see. So why not just make a .cdr ("CD/DVD Master") from Disk Utility in the first place (or select a .dmg and pick Convert in Disk Utility) and rename the .cdr to .iso? It's the exact same thing. But the resulting burned CD has only 1 filesystem - HFS+ (Mac OS Extended) that is not very useful in other OSes.

But for Windows compatibility (a CD or volume you can actually mount) you want the ISO-9660 *filesystem*, with or without the "Joliet extensions" to the ISO specification. Or maybe you want UDF for DVDs. But what if you could have HFS+, ISO-9660, Joliet, *and* UDF all on the same image - and have it be smaller than the file created by the above Terminal commands? Well, you easily can - here's the quick and dirty how-to:

1. Drag the .dmg file (the CD, DVD or volume of which you want to use in Windows or Linux) to your Desktop.

2. Then go to the Terminal and type:

hdiutil makehybrid -o ~/Desktop/ ~/Desktop/

3) Press Enter.

That's it! The "example.dmg" which you dragged to your Desktop is , and is just any name for the resulting image file. You can rename later, so don't dork it up - leave out spaces, symbols, etc. DO NOT add .iso, .dmg, .cdr, etc. to the end of . The correct filename extension will be added only if it isn't part of the provided name. Also, the path is case-sensitive. The currently logged-in user likely does NOT have a ~/desktop, but DOES have a ~/Desktop directory.

But wait - it gets better! can be the name of a FOLDER! It does not have to be a .dmg image file. Just get the path correct (does not have to be ~/Desktop if you want to make an image from a folder elsewhere, or a disc image elsewhere) and "viola" - you get a perfect hybrid disc image file useable in virtually *every* modern OS. And can even be a hard-drive! Heck, for all I know can be a very large database file by itself... try it. I'd be interested to know.

To see the 411 on this, type "man hdiutil" in the Terminal. Hit Space or Return until you get down to the VERBS section. Look at "convert", then look at "makehybrid". The "convert" verb is basically all the Disk Utility functionality, but in the Terminal. Boo. But look at the "makehybrid" verb; after the 4 filesystems (-hfs, -iso, -joliet, -udf) under "makehybrid" is this:

"By default, if no filesystem is specified, the image will be created with all four filesystems as a hybrid image. The data area of the image is shared between all filesystems, and only directory information and volume meta-data are unique to each filesystem. This means that creating a cross-platform ISO9660/HFS+ hybrid has a minimal overhead when compared to a single filesystem image." Hizzaa!

DMG Converter (http://sunsky3s.s41.xrea.com/dmgconverter/index.html) can create ISO filesystems, but it cannot CONVERT images to ISO filesystems, only make new images using it. So if you mount the image first and then use DMG Converter on the mounted volume, "converting" the disc image is the same as "making" a new image from the mounted volume. But God help me I'm not that bright, so the menu options are sort of confusing to me... This is 1 instance where using the Terminal is actually easier!

I tried this "hdiutil makehybrid" command on a 458 MB .dmg file and got a hybrid .iso that was 530 MB in size. Using "hdiutil convert" gave me a 592 MB ".iso" file that was actually a .cdr - and only had the single HFS+ filesystem - so it did not work in Windows. I'm much happier w/ the true ISO that is 60 MB smaller and has 4 filesystems! There is no compressed image format for Windows, so if you want a smaller file just zip or stuff your final hybrid image.
Problems with large images (>4GB)
By: sr105 on Sun, Oct 28 2007 at 9:54AM PDT
I thought the tools were failing on me since they would always fail to convert images larger than 4GB until I finally realized that the external drive that I was using was formated using Windows FAT32 format (one of them, at least) which had a 32-bit file size limit. I switched to a HFS+ file system on the same drive and all was well.
Convert .dmg files to .iso files for burning elsewhere
By: eovnu87435ds on Sat, Dec 22 2007 at 8:45AM PST
This worked great! Fast too! I converted a 2.6 GB unconpressed dmg to iso on my 1.83GHz intel core duo w/ 1GB RAM in 2minutes, 54 seconds. The avg convert speed was 16.5MB/sec
Copyright © 2008 Mac Publishing LLC (Privacy PolicyContact Us
All trademarks and copyrights on this page are owned by their respective owners.

Visit other IDG sites:


Powered By Geeklog Created this page in 0.16 seconds