Convert OSX dmg file to img file. IN Linux
download this file on linux:
extract, enter the dir and type:
make
sudo make install
sudo make install
Usage:
dmg2img -i image.img -o newimage.img
now you can mount it from root:
modprobe hfsplus
mount -t hfsplus -o loop newimage.img /folder_you_want
mount -t hfsplus -o loop newimage.img /folder_you_want
Link from 囧