Terminal in macOSTerminal in macOS

Have you ever needed to convert a DMG file to ISO in Mac OS, or wanted to convert 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.

How to Convert a DMG file to ISO

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

Remember to replace /path/ with the path to the specific files and output ISO file as desired.

How to Convert an ISO file to DMG format

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

This is obviously for DMG and ISO, but other disk image file formats are supported too.

Interestingly, a CDR file is basically an ISO file that can simply have it’s file extension changed to .iso and it will work the same.

mac terminal iconmac terminal icon

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

If you have any other tips or suggestions about converting disk image files, share in the comments!

Source

Follow Me:
Top Best Sellers!!