打印

关于制作Mac OS X Yosemite ISO光盘镜像及U盘简易之法

关于制作Mac OS X Yosemite ISO光盘镜像及U盘简易之法

一、在这里找了一个 How to create Yosemite OS X Bootable DVD,制作.iso文件的方法,看起来很复杂的步骤http://forums.macrumors.com/threads/how-to-create-yosemite-os-x-bootable-dvd.1763439/
我直接在/tmp目录下进行到底吧
cd /tmp
mkdir install_app
mkdir install_build
mkdir Yosemite


$ hdiutil attach /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /tmp/install_app/
/dev/disk4         
Apple_partition_scheme         

/dev/disk4s1        
Apple_partition_map            

/dev/disk4s2        
Apple_HFS                     
/private/tmp/install_app






$ hdiutil convert /tmp/install_app/BaseSystem.dmg -format UDSP -o /tmp/Yosemite
正在读取Driver Descriptor Map(DDM:0)…
正在读取(Apple_Free:1)…
正在读取Apple(Apple_partition_map:2)…
正在读取disk image(Apple_HFS:3)…
.......................................................................................................................................................................................................
正在读取(Apple_Free:4)…
经过时间:19.963s
速度:61.6M 字节/秒
节省:3.2%
created: /tmp/Yosemite.sparseimage


$ hdiutil resize -size 8g /tmp/Yosemite.sparseimage



$ hdiutil attach /tmp/Yosemite.sparseimage -noverify -nobrowse -mountpoint /tmp/install_build/
/dev/disk5         
Apple_partition_scheme         

/dev/disk5s1        
Apple_partition_map            

/dev/disk5s2        
Apple_HFS                     
/private/tmp/install_build




$ rm /tmp/install_build/System/Installation/Packages


cp -rp /tmp/install_app/Packages /tmp/install_build/System/Installation/
cp -rp /tmp/install_app/BaseSystem.chunklist /tmp/install_build/
cp -rp /tmp/install_app/BaseSystem.dmg /tmp/install_build/


$ hdiutil detach /tmp/install_app/
"disk4" unmounted.
"disk4" ejected.



$ hdiutil detach /tmp/install_build/
"disk5" unmounted.
"disk5" ejected.


$ hdiutil resize -size `hdiutil resize -limits /tmp/Yosemite.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/Yosemite.sparseimage


$ hdiutil convert /tmp/Yosemite.sparseimage -format UDTO -o /tmp/Yosemite
正在读取Driver Descriptor Map(DDM:0)…
正在读取(Apple_Free:1)…
正在读取Apple(Apple_partition_map:2)…
正在读取disk image(Apple_HFS:3)…
......................................................................................................................................................................................................
经过时间: 2m  3.020s
速度:55.4M 字节/秒
节省:0.0%
created: /tmp/Yosemite.cdr


$ mv Yosemite.cdr Yosemite.iso


rm /tmp/Yosemite.sparseimage


于是 Yosemite.iso 大功告成!




二、制作可以自启动安装的U盘
Create a bootable installer for OS X Mavericks or Yosemite
https://support.apple.com/en-am/HT201372


事情就变得很简单了:
1、通过Apple Store下载Yosemite,下载后会存在 /Applications/Install\ OS\ X\ Yosemite.app 目录下


2、弄一张干净的SD卡,插上去,自个取名 SDYosemite
然后需要切换到 root 用户,然后执行
cd /Applications/Install OS X Yosemite.app/Contents/Resources
./createinstallmedia --volume /Volumes/SDYosemite --applicationpath /Applications/Install\ OS\ X\ Yosemite.app/



Ready to start.

To continue we need to erase the disk at /Volumes/SDYosemite.
If you wish to continue type (Y) then press return: Y
Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...

Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done.


于是可自启动的安装U盘制作完成!
拥抱智慧地球!地球守护使者!

TOP