Search in uioop.blogspot.com

Blog Archive

Tuesday, August 17, 2010

DAY 1 in MacOS - How To Convert DMG To ISO On A Mac


Code:
hdiutil convert ~/Desktop/'filename.dmg' -format UDTO -o ~/Desktop/'filename.iso'
(Where filename is replace with the actual name)




Have you ever needed to convert a DMG file to ISO, or an ISO file to DMG on your Mac? Converting image files on your Mac is easy thanks to a command line utility included in Mac OS X called hdiutil. Simply launch the Terminal and use the commands below, replacing the path and image file with your own.

Convert a DMG file to ISO

hdiutil convert /path/imagefile.dmg -format UDTO -o /path/convertedimage.iso

Convert an ISO file to DMG format

hdiutil convert /path/imagefile.iso -format UDRW -o /path/convertedimage.dmg

This tip is particularly useful if you have a CD/DVD burner on a Mac (or PC) and not a PC (or Mac) and you need to burn a disk image using the other machine.

This will actually create a file called imagefile.iso.cdr in the current directory, but you’ll want to change that to just .iso, so type:
mv convertedimage.iso.cdr convertedimage.iso

No comments:

AVG Internet Security 2013

Total Pageviews

Contributors