如何製作OS X 10 Yosemite安裝ISO

如何製作OS X 10 Yosemite安裝ISO


如果要取得最原始的OS X 10 Yosemite安裝檔案,可以透過AppStore免費下載到,但下載的檔案預設只能在MAC上安裝升級,所以就必須透過指令的方式將其轉成ISO檔案,才可以放到Windows PC上安裝,或是製作成USB安裝隨身碟的方式。

以下指令必須在可以下載OS X 10 Yosemite的MAC系統上執行,矛盾的是如果手邊沒有舊的MAC環境,就無法透過以下這個方式,以下指令也可以適用於OS X 9 Mavericks,同樣也是透過AppStore免費下載到,但唯一的差異就是18-19的那兩行複製的動作,在OS X 9 Mavericks是不必要執行的,在OS X 10 Yosemite如果沒有複製那兩個檔案,就會造成一開始安裝出現 Undefined error: 0 的錯誤畫面如下。


cp /Volumes/install_app/BaseSystem.chunklist /Volumes/install_build/BaseSystem.chunklist
cp /Volumes/install_app/BaseSystem.dmg /Volumes/install_build/BaseSystem.dmg

OS X 10 Yosemite

以下指令建議用複製貼上的方式,開頭#字號是註解不需要複製,請在MAC的終端機上執行以下指令。

如果操作到一半錯誤,可以將以下指令中有rm和hdiutil detach開頭的指令全部執行一次,就可以再次重頭做一次這個步驟,製作完畢的ISO檔案會放置在桌面上,檔案名稱是Yosemite.iso。

如何在VMWare上安裝OS X 10 Yosemite
# Mount the installer image 
hdiutil attach /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

# Convert the boot image to a sparse bundle
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Yosemite

# Increase the sparse bundle capacity to accommodate the packages
hdiutil resize -size 8g /tmp/Yosemite.sparseimage

# Mount the sparse bundle for package addition
hdiutil attach /tmp/Yosemite.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build

# Remove Package link and replace with actual files
rm /Volumes/install_build/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/

# COPY THIS TWO FILES (It is the solution for the common error - The operation couldn't be completed. Undefined error: 0)
cp /Volumes/install_app/BaseSystem.chunklist /Volumes/install_build/BaseSystem.chunklist
cp /Volumes/install_app/BaseSystem.dmg /Volumes/install_build/BaseSystem.dmg

# Unmount the installer image
hdiutil detach /Volumes/install_app

# Unmount the sparse bundle
hdiutil detach /Volumes/install_build

# Resize the partition in the sparse bundle to remove any free space
hdiutil resize -size `hdiutil resize -limits /tmp/Yosemite.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/Yosemite.sparseimage

# Convert the sparse bundle to ISO/CD master
hdiutil convert /tmp/Yosemite.sparseimage -format UDTO -o /tmp/Yosemite

# Remove the sparse bundle
rm /tmp/Yosemite.sparseimage

# Rename the ISO and move it to the desktop
mv /tmp/Yosemite.cdr ~/Desktop/Yosemite.iso

 

留言

這個網誌中的熱門文章

Create WIMBoot Images

如何重新設定新的Outlook電子郵件帳戶