黑苹果

制作Mac安装U盘 (hackintosh)

2018-01-23  本文已影响1364人  Yao_Fairytale

首先用类似命令行
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction
制作的U盘往往在安装系统时出现错误
macOS could not be installed on your computer” or “The path /System/Installation/Packages/OSInstall.mpkg appears to be missing or damaged”
如下图所示。

安装错误,提示找不到OSInstall.mpkg
这时候不妨试试用手动方式制作安装U盘。

步骤1.插入U盘,打开 Application > Utilities > open Disk Utility 格式化你的U盘为 GUID 分区方式和 Mac OS Extended (Journaled)格式。名称随意。

步骤2.显示Mac隐藏文件,在terminal输入命令:

defaults write com.apple.finder AppleShowAllFiles 1 && killall Finder

当U盘制作完成,你可以输入以下命令隐藏文件:

defaults write com.apple.finder AppleShowAllFiles NO

killall Finder

步骤3. 从 Mac app store 下载安装系统安装包。 加载 InstallESD (打开Applications 右键点击 “Install OS X Sierra”, 选择 /Contents/Shared Support/InstallESD.dmg)。

步骤4. 加载 BaseSystem.dmg 。在terminal 中输入以下命令:

open /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg

步骤5. 还原 “OS X Base System” 到你的U盘。

步骤6.进入U盘中 /System/Installation 文件夹。删除“Packages” 这个纯链接文件,然后从步骤3中加载的“OS X Install ESD” 中拷贝真实的Packages文件夹到U盘原链接的位置。

步骤7.拷贝步骤3中打开的 InstallESD.dmg底下 BaseSystem.chunklist 和 BaseSystem.dmg 两个隐藏文件到你的usb根目录下(OS X Base System)。

步骤8. 利用步骤2中隐藏文件命令重新隐藏电脑隐藏文件。

步骤9. 安装Clover。
选择安装位置是U盘
选择“Custom Install”
选择 “Install for UEFI booting only”
选择 Themes
选择 Drivers64UEFI
拷贝你的config文件和kexts文件到EFI/Clover底下对应的位置。

上一篇下一篇

猜你喜欢

热点阅读