Home > Bash, Linux, Mac, Ubuntu > Convert a DMG image to IMG

Convert a DMG image to IMG

First, install “dmg2img” through the Ubuntu programs. Next run the util:

user@computer$ dmg2img mac-image.dmg new-image.img

dmg2img v1.6.2 is derived from dmg2iso by vu1tur (to@vu1tur.eu.org)

mac-image.dmg --> new-image.img

reading property list, 1632063 bytes from address 6107371782 ...

opening partition 0 ...             100.00%  ok

Archive successfully decompressed as new-image.img

You should be able to mount the image [as root] by:

modprobe hfsplus
mount -t hfsplus -o loop new-image.img /mnt
Categories: Bash, Linux, Mac, Ubuntu Tags:
  1. No comments yet.
  1. No trackbacks yet.