Script to create a Bootable ISO Disk from Mac OS X 10.7 Lion installer on Mac

Script to create a Bootable ISO Disk from Mac OS X 10.7 Lion installer on Mac
0

Many users are still looking for solution to install Mac OS X 10.7 Lion into their old devices such as iBook G4.

In the below words, we show you how to quickly create an Bootable ISO files for Mac OS X 10.7 Lion installation on Mac.

DOWNLOAD

Download Mac OS X 10.7 Lion.app into /Applications/

Create Install Mac OS X 10.7 Lion.ISO

Launch the following command lines in order though Terminal (Applications/Utilities/), you finally get the Install Mac OS X 10.7 Lion.ISO on the Desktop.

hdiutil attach /Applications/Install\ Mac\ OS\ X\ Lion.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

hdiutil create -o /tmp/Lion.cdr -size 5g -layout SPUD -fs HFS+J

hdiutil attach /tmp/Lion.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build

asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase

rm /Volumes/Mac\ OS\ X\ Base\ System/System/Installation/Packages

cp -rp /Volumes/install_app/Packages /Volumes/Mac\ OS\ X\ Base\ System/System/Installation/

cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/Mac\ OS\ X\ Base\ System/System/BaseSystem.chunklist

cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/Mac\ OS\ X\ Base\ System/BaseSystem.dmg

hdiutil detach /Volumes/install_app

hdiutil detach /Volumes/Mac\ OS\ X\ Base\ System/

hdiutil convert /tmp/Lion.cdr.dmg -format UDTO -o /tmp/Lion.iso

mv /tmp/Lion.iso.cdr ~/Desktop/Lion.iso

To download the above Mac OS X 10.7 Lion.iso file, go to our another topic: Download all MacOS X 10.4 - 10.14 original