11.13.08
How to Mount a Mac OS X dmg file in Linux
Ran into a problem today with mounting a dmg file from mac os on my linux machine. Apparently some dmg files are compressed so you can’t just mount it normally. You need a utilty called dmg2img which will decompress the dmg file and allow you to mount it normally on the loopback.
You’ll have to compile and install it, then you can run it like this:
dmg2img -i filename.dmg -o filename.out.dmg
Then you’ll be able to mount it normally on the loopback like this:
mount -t hfsplus -o loop /path/to/filename.out.dmg /path/to/mountpoint
Hopefully this will help someone who has the same issue I did with mounting a compressed dmg file from Mac OS X