gelegentlich kommt man in die verlegenheit, ein cd/dvd image im .dmg format brennen zu müssen, hat jedoch keinen mac dafür zur hand. unter windows soll das programm “transmac” gute dienste leisten, das jedoch mit einem preis von 48 us-dollar zu buche schlägt. der linuxer bekommt das ganze -wie so oft- kostenlos…
zunächst muss das tool “dmg2img” installiert werden:
# apt-get install dmg2img
die konvertierung ins img-format ist simpel:
# dmg2img image.dmg dmg2img v1.6.2 is derived from dmg2iso by vu1tur (to@vu1tur.eu.org) image.dmg --> image.img reading property list, 5887 bytes from address 4686709248 ... decompressing: opening partition 0 ... 100.00% ok opening partition 1 ... 100.00% ok opening partition 2 ... 100.00% ok opening partition 3 ... 100.00% ok Archive successfully decompressed as image.img You should be able to mount the image [as root] by: modprobe hfsplus mount -t hfsplus -o loop image.img /mnt # mount -t hfsplus -o loop image.img /mnt # ls -1 /mnt/ Applications Background.jpg bin dev etc Extra Install Mac OS X Lion.app Library mach_atom mach_kernel private sbin System tmp usr var Volumes # umount /mnt
nun kann der .img-pendant entweder mit einem grafischen brenntool wie “k3b” oder auf der kommandozeile auf den rohling gebrannt werden:
growisofs -dvd-compat -Z /dev/dvd image.img