如何在Ubuntu上创建OS X Mountain Lion可启动USB驱动器?

我已经知道如何在Mac OS X上完成它(在线提供大量说明)。

但是有可能在Ubuntu上做吗? 如果有,怎么样?

由于您想要创建一个LiveUSB,您需要一个.iso图像来制作它。 Mac映像是.dmg文件,因此您必须将此文件转换为.iso ,然后安装它。

安装DMG2IMG

DMG2IMG ( 1,2 ).dmg图像转换为.iso图像。 要安装打开终端并输入以下命令: sudo apt-get install dmg2img

转换图像

使用dmg2img您将创建一个.img文件,该文件将具有与 .iso文件相同的格式 ,您只需要替换该扩展名即可。

在终端中输入以下命令或粘贴脚本并进行必要的修改:

 # Replace "OriginalFile.dmg" with the filename including the extension # of your file. The extension will be replaced where necessary unless # you want to specify the filenames yourself. filename="OriginalFile.dmg" # Replace with your file name and it will create the IMG file dmg2img -i "${filename}" -o "${filename%.dmg}.img" # Note that the extension of the first file is ".img"! mv "${filename%.dmg}.img" "${filename%.dmg}.iso" 

使用ISO映像制作LiveUSB

现在你已经有了.iso图像,用它来制作LiveUSB。 有一些工具和答案可以帮助您创建可启动的USB驱动器, 其中一些特定于PC / MBR启动(Bootcamp),其中Mac和更新的PC自Windows 8需要/支持UEFI启动。

相关问题:AskDifferent – 获取OS X ISO文件的官方方式

为什么不转换后转换.img文件?

 sudo dd if=/path/to/orig.img of=/dev/s**