Recently, I have been studying the configuration and deployment of Mac OS X systems under Windows.
However, there was a problem with the previously used iso image file, so I planned to re-extract the iso image on the Mac.
step 0
Go to the Apple store to download the latest OS X El Capitan. After the download is complete, you can perform the iso image extraction operation.
step 1
#Mount the installation image file of El Capitan
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
step 2
#Create a blank iso image file for storing El Capitan
hdiutil create -o /tmp/ElCapitanfile.cdr -size 7316m -layout SPUD -fs HFS+J
step 3
# Mount the blank iso file
hdiutil attach /tmp/ElCapitanfile.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
step 4
#Use the asr tool to restore the BaseSystem.dmg in the first mount disk to the mount image (a hidden file)
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
The folder will pop up when the restore is complete
step 5
#Remove Packages and copy the Packages file mounted for the first time in
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
step 6
#Copy some necessary files to BaseSystem
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg
step 7
#Uninstall the first image and the new BaseSystem
hdiutil detach /Volumes/install_app hdiutil detach /Volumes/OS\ X\ Base\ System/
step 8
#Format conversion dmg ==="iso
hdiutil convert /tmp/ElCapitanfile.cdr.dmg -format UDTO -o /tmp/ElCapitan.iso
step 9
#Move the iso file to the desktop
mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso
Here are all the terminal commands:
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app hdiutil create -o /tmp/ElCapitanfile.cdr -size 7316m -layout SPUD -fs HFS+J hdiutil attach /tmp/ElCapitanfile.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/OS\ X\ Base\ System/System/Installation/Packages cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/ cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg hdiutil detach /Volumes/install_app hdiutil detach /Volumes/OS\ X\ Base\ System/ hdiutil convert /tmp/ElCapitanfile.cdr.dmg -format UDTO -o /tmp/ElCapitan.iso mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso
So far, the iso image file has been extracted successfully. If you want to send this file with a volume of 7G to another computer. There is a method that does not require a U disk or hard disk, and the speed reaches 10Mpes: http://815222418.iteye.com/blog/2310538
Content reference: http://kanchengzxdfgcv.blogspot.com/2016/03/mac-os-x-1011-el-capitan-iso.html?view=timeslide