haibo 发表于 2013-1-15 14:20:42

Tips

mount DMG files under ubuntu:
The only way you can mount a dmg with the command, sudo mouunt -t hfsplus -o loop /path/to/dmg /mount/point, is to decompress it first into an img file.

In order to decompress a dmg, then mount it, download dmg2img from http://vu1tur.eu.org/tools/download.pl?dmg2img.tar.gz
Then, after saving the file, dmg2img in your home folder, open terminal, and run, tar -zxvf ./dmg2img.tar.gz, then run run, cd dmg2img, then once you are inside the dmg2img directory run, make all.

If everything goes okay, then you can decompress your dmg file by executing the command, ./dmg2img -i /path/to/inputfile.dmg -o /path/to/outputfile.img, and remember, you must be inside the dmg2img directory at all times in order to run the command listed above. Also, the img file needs to be in the same location as the original dmg file. And preferably, the img file should have the same name as the dmg file. After decompressing the dmg, run, sudo modprobe hfsplus, then if hfsplus is installed (if not, run sudo apt-get install hfsplus), run sudo mount -t hfsplus -o loop /path/to/outputfile.img /mount/point. To create the mount point, run mkdir -p /mount/location.
 
页: [1]
查看完整版本: Tips