Create El Capitan Install and Recovery DVD
WARNING: The disk will not boot in the moment. I'm working on it.
Hello again,
yesterday I took the time to upgrade the guide to El Capitan and to include the information on the volume UUID provided by Melanie_T. I also tried to format the commands in a better way as donjames suggested. So here are the updated instructions:
0. What you need:
- The El Capitan installer from the app store, leave it in the /Application folder
- Lion Recovery Update v1.0 from the Apple website, leave it in the ~/Downloads folder
1. Create an empty disk image:
Code:hdiutil create -size 16674816b ~/Desktop/DVD hdiutil attach -nomount ~/Desktop/DVD.dmg
Take note of the output, you will need it in the following commands. In my case it's '/dev/disk2'
2. Partition disk image and create one volume for the installer:
Code:diskutil partitionDisk /dev/diskX 2 GPT HFS+ INSTALL_EL_CAPITAN 6936723456B "Free Space" "Free Space" R
Replace '/dev/diskX' with the actual output from 1., in my case '/dev/disk2'
3. Create the installer partition:
Code:sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app/ --volume /Volumes/INSTALL_EL_CAPITAN/
4. Create the missing text file:
Code:hdiutil attach -nobrowse /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg diskutil info /Volumes/OS\ X\ Install\ ESD
Take note of the value of volume UUID, in the case of Mac OS X 10.11.3 it's '782B5304-0249-36D0-97FA-D39A7A22EE32'. Create a text file with your favorite text editor and enter the following code:
Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "[URL]http://www.apple.com/DTDs/PropertyList-1.0.dtd[/URL]"> <plist version="1.0"> <dict> <key>Product URL</key> <string>x-osproduct://volume UUID/OS%20X%20Install%20Data</string> </dict> </plist>
Replace 'volume UUID' with the value of volume UUID from above and save the file as '/Volumes/Install\ OS\ X\ El\ Capitan/.IAProductInfo'
5. Unpack the Lion Recovery Update v1.0:
Code:hdiutil attach -nobrowse ~/Downloads/RecoveryHDUpdate.dmg pkgutil --expand /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update/RecoveryHDUpdate.pkg ~/Desktop/RecoveryHDUpdate/ hdiutil detach /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update/
6. Create a recovery partition on the disk image right behind the installer partition:
Code:~/Desktop/RecoveryHDUpdate/RecoveryHDUpdate.pkg/Scripts/Tools/dmtest ensureRecoveryPartition /Volumes/Install\ OS\ X\ El\ Capitan/ /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg 0 0 /Volumes/OS\ X\ Install\ ESD/BaseSystem.chunklist hdiutil detach /Volumes/OS\ X\ Install\ ESD/
7. Make recovery partition visible:
Code:diskutil list /Volumes/Install\ OS\ X\ El\ Capitan/
Look for the enumeration of the recovery partition 'Recovery HD', you will need it in the next command. In my case it's '3'
Code:asr adjust --target /dev/diskXsY -settype Apple_HFS diskutil mount /dev/diskXsY
Look at 1. for the actual value of X, in my case '2'
Look at the previous command for the actual value of Y, in my case '3'. So together it's '/dev/disk2s3'
8. Finish work?
Actually we should burn the image at this point and we would be done. But there's one glitch: We had to use GPT for the dmtest tool. Unfortunately I've not been able to burn a DVD with GPT AND two partitions. The partitions are always missing on the DVD (not on the disk image, just on the physical DVD). So as a workaround we have to move stuff to a second disk image with MBR or APM...
9. Workaround the GPT DVD glitch:
Code:hdiutil create -size 16674816b ~/Desktop/DVD-fix hdiutil attach -nomount ~/Desktop/DVD-fix.dmg
Take note of the output, you will need it in the following commands. In my case it's '/dev/disk3'
Code:diskutil partitionDisk /dev/diskZ 2 APM HFS+ fix_INSTALL_EL_CAPITAN 6936723456B HFS+ fix_RECOVERY_EL_CAPITAN R
Replace '/dev/diskZ' with the actual output from the previous command, in my case '/dev/disk3'
Code:asr restore --source /Volumes/Install\ OS\ X\ El\ Capitan --target /Volumes/fix_INSTALL_EL_CAPITAN --erase asr restore --source /Volumes/Recovery\ HD --target /Volumes/fix_RECOVERY_EL_CAPITAN --erase
Code:hdiutil detach /dev/diskZ
Look above for the actual value of Z, in my case '3'
10. Finish work!
Code:hdiutil detach /dev/diskX
Look at 1. for the actual value of X, in my case '2'
Code:hdiutil burn ~/Desktop/DVD-fix.dmg
I hope this helps! In case you see some optimization, just let me know. I think it would be nice to minimize user interaction, but I'm not going into sed or awk now ... and of course would be much better without the workaround for GPT ... so if you know how to burn GPT with two partitions to DVD ...
Thanks go to a lot of people who helped me with bits and pieces of their knowledge:
- The guys in THIS thread, especially bawalker, tywebb13 and Melanie_T
- The guys in this thread over at apple forums
- Wolf Paulus
- Jacob Salmela
- Automatica
- The Instructional
- Dalton63841
- Schwabbel
- And some more I don't remember right now ...
- ... and this time Benediction and Orphaned Land for musical support
Regards, Mike
Hi Mike,
The dvd installer hangs up when it gets to "Setting up your Mac...".
I shut down the computer by holding down the start button. I then rebooted from the hard drive -- where the operating system was installed. It came back to "Setting up your Mac..." and finished the install.
I was just wondering if anyone else has had this experience.
Regards,
Don James