个人工具

UbuntuHelp:DMG2IMG

来自Ubuntu中文

Wikibot讨论 | 贡献2009年11月17日 (二) 18:55的版本

跳转至: 导航, 搜索

Introduction

DMG2IMG is an Apple's compressed dmg to standard (hfsplus) image disk file convert tool. It is derived from dmg2iso v0.2c by vu1tur. It will allow you to convert a DMG file into an IMG file that can be mounted as described in ManageDiscImages. Website: http://vu1tur.eu.org/tools/

Installation Instructions

You can use the premade DMG2IMG package from this ppa https://launchpad.net/~rzr/+archive/ppa The dmg2img command needs to be compiled from source. The following assumes the latest version is 1.6, so check if a more recent version is available here first. To download, compile and install, open an terminal and type:

wget http://vu1tur.eu.org/tools/download.pl?dmg2img-1.6.tar.gz -O dmg2img-1.6.tar.gz
tar -xvf dmg2img-1.6.tar.gz
sudo apt-get install zlib1g-dev libssl-dev libbz2-dev
cd dmg2img-1.6
make
sudo make install

You can now remove the installation files if you want to tidy up:

rm dmg2img-1.6.tar.gz
rm -R dmg2img-1.6

Getting Started With DMG2IMG

You can now convert .dmg files to .img by typing:

dmg2img filename.dmg

This will create a file called filename.img