How to convert dmg to iso and iso to dmg

root's picture

How to convert dmg images to iso:

user@osx: ~$ [color=green]hdiutil convert image.dmg -format UDTO -o image.iso[/color]
Reading Driver Descriptor Map (DDM : 0)…
Reading  (Apple_Free : 1)…
Reading Apple (Apple_partition_map : 2)…
Reading Macintosh (Apple_Driver_ATAPI : 3)…
Reading  (Apple_Free : 4)…
Reading disk image (Apple_HFS : 5)…
.............................................................................................................................................................................
Elapsed Time:  5m  1.237s
Speed: 13.4Mbytes/sec
Savings: 0.0%
created: /Users/user/image.iso.cdr
user@osx: ~$ ls -la Image*
-rw-r--r--  1 user  user  3794414600 Dec 21 23:56 image.dmg
-rw-r--r--  1 user  user  4225925120 Jan 12 23:42 image.iso.cdr
user@osx: ~$ mv image.iso.cdr image.iso

How to convert iso images to dmg:

osx:iso root# hdiutil convert image.iso -format UDRW -o image.dmg 
Reading Driver Descriptor Map (DDM : 0)…
Reading  (Apple_Free : 1)…
Reading Apple (Apple_partition_map : 2)…
Reading Macintosh (Apple_Driver_ATAPI : 3)…
Reading  (Apple_Free : 4)…
Reading Mac_OS_X (Apple_HFS : 5)…
.................................................................................................................................................................................................................
Elapsed Time: 21m 49.934s
Speed: 5.2Mbytes/sec
Savings: 0.0%
created: /mnt/iso/image.dmg

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root