I want to convert an .iso
to .dmg
, how can I do this from Terminal?
-
Possible duplicate of Creating A Bootable USB Of Windows 8.1 On OS X?– AllanFeb 5, 2017 at 12:31
-
It's the same question and same answer just yours is more general in scope. There is also this question: apple.stackexchange.com/questions/73183/…– AllanFeb 5, 2017 at 12:50
-
1Related: apple.stackexchange.com/questions/94330/…– nohillside ♦Feb 5, 2017 at 15:20
1 Answer
OS X has hdiutil
, a command line tool for making, manipulating and using disk images with an option to convert between different types of images.1
To do this use the command with verb convert
and option -format
.
Option -o
is used to specify the path and name of the output file.
There are several formats available from which I post two for .DMG and one for .ISO:
UDRW - UDIF read/write image
UDRO - UDIF read-only image
UDTO - DVD/CD-R master for export
Use the first one for a read/write-able .DMG. The resulting command is:
hdiutil convert /path/file.iso -format UDRW -o /path/file.dmg
The backward conversion would be done by
hdiutil convert /path/file.dmg -format UDTO -o /path/file.iso
-
Here's a nice use case for the opposite direction - Mac installers are DMG and some software wants an ISO (VMware / Parallels / etc...) - apple.stackexchange.com/questions/278336/…– bmike ♦Apr 1, 2017 at 17:43