Mount the Mac OS installer to get.DSStore, BaseSystem.chunklist, and BaseSystem.dmg. Files from InstallESD.dmg file. Its important to know that you have to close the finder windows and the disk utility or any program that might be using the ElCapInstaller flash drive, because if they are being used you, this is what happens: Copying installer files to disk. Making disk bootable. Mount of outer dmg failed. And you want this to happen.
macOS Sierra 10.12 (previously known as OS X) was released in September 2016 as an update available through the App Store. You do not need to worry, much like in the case of previous updates, your user data as well as system settings and installed applications will be preserver when you update your OS.
However, some users might prefer to mae a clean installation of macOS Sierra and for that you will need to create a bootable installation USB drive. This article covers several ways how you can achieve this.
Download macOS Sierra installer (Install macOS Sierra.app in Applications folder) from Mac App Store.
Prepare a USB flash drive with the Apple Disk Utility. If you did not already, you will have to format the USB drive with GUID Partition Table scheme selected and name it as Untitled. The minimal capacity of USB drive must be of at least 8 GB.
The createinstallmedia is a command line tool, which allows users to simply create installation drive, distributed with macOS Sierra installer.
When you have prepared your USB flash drive and the macOS Sierra Installer is downloaded from the App Store ► open Terminal and type command:
sudo /Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install macOS Sierra.app --nointeraction &&say Done
In our case 'Untitled' is the name of USB flash drive! Replace 'Untitled' by name of your flash drive.
Wait a few minutes until your macOS Sierra installation USB drive is ready.
To install macOS Sierra ► restart computer ► hold the Option key and select Installation USB drive from the menu.
When your USB flash drive is ready and macOS Sierra installer downloaded from the App Store ► Open Terminal and type the following sequence of commands:
sudo hdiutil attach /Applications/Install macOS Sierra.app/Contents/SharedSupport/InstallESD.dmg
sudo asr restore -source /Volumes/OS X Install ESD/BaseSystem.dmg -target /Volumes/Untitled -erase -format HFS+
sudo rm /Volumes/OS X Base System/System/Installation/Packages
sudo cp -a /Volumes/OS X Install ESD/Packages /Volumes/OS X Base System/System/Installation/Packages
sudo cp -a /Volumes/OS X Install ESD/BaseSystem.chunklist /Volumes/OS X Base System
sudo cp -a /Volumes/OS X Install ESD/BaseSystem.chunklist /Volumes/OS X Base System
sudo cp -a /Volumes/OS X Install ESD/BaseSystem.dmg /Volumes/OS X Base System
hdiutil detach /Volumes/OS X Install ESD
Now wait until your bootable installation flash drive with macOS 10.12 Sierra is made.
To install macOS Sierra ► restart computer ► hold the Option key and select Installation USB drive from the menu.
When your USB flash drive is ready and macOS Sierra installer downloaded from the App Store ► Open Terminal and type:
defaults write com.apple.finder AppleShowAllFiles 1 && killall Finder
This command allows you to view hidden files in Finder.
Now Open Finder ► Applications ► Install macOS Sierra.app ► right click ► Select Show Package Contents option.
Navigate to Contents/SharedSupport ► Mount InstallESD.dmg file
Open OS X (even thought the system it's caled macOS now) Install ESD archive in Finder and mount BaseSystem.dmg archive
Connect USB drive and open Disk Utility (/Applications/Utilities)
Select the USB drive from the list of disks, click on Restore icon and use OS X Base System option as a source. When ready click on Restore button.
After the Restore process is finished, open Finder ► open USB drive (OS X Base System) ► go to the System/Installation folder and select Packages file and delete it.
Open OS X Install ESD volume in Finder, select Packages folder and copy them to System/Installation folder on USB drive.
Also copy BaseSystem.chunklist and BaseSystem.dmg files from InstallESD.dmg volume to root of USB flash drive (OS X Base System).
Now your macOS Sierra installation USB drive is prepared and ready for use.
To install macOS Sierra ► restart computer ► hold the Option key and select Installation USB drive from the menu.
DiskMaker X tool is Wizard like tool that allows you create macOS installation disk. Download DiskMaker X to your Mac and copy it to Applications folder.
When you have prepared your USB flash drive and macOS Sierra installer is downloaded from App Store ► open DiskMaker X.
Select version of macOS (in our case macOS Sierra).
Select copy of macOS installation app.
Select USB drive that will be used for USB installation.
And wait a few minutes till the the DiskMaker X finish creating process. Information about progress are viewable in Notification center.
To install macOS Sierra ► restart computer ► hold the Option key and select Installation USB drive from the menu.
If you use pkgutil to expand the InstallMacOSX.pkg it opens to three items, the Distribution file, InstallMacOSX.pkg and Resources. You can alter the Distribution file to ignore the supported platform check, see below.
Creating the Install OS X El Capitan.app on a mac that came with a newer OS than El Capitan.
Download the InstallMacOSX.dmg from Section 4 of How To Upgrade To El Capitan
Double-click to open InstallMacOSX.dmg to Install MacOSX.pkg.
Drag InstallMacOSX.pkg to the Desktop.
Open Terminal, enter the text
A folder will be created on the Desktop after a while with the contents of the .pkg file.
In there you will see an item called Distribution, Control-click on that and select Open With
go to Other and select Text Edit.
When the file opens scroll down to the section that reads,
function isSupportedPlatform(){
type in at the end return true; so it now reads as,
function isSupportedPlatform(){return true;
Now click Save and close the document.
Go back to Terminal and enter the text,
press Return, after several minutes, be patient, (check to see if the prompt has returned to Terminal) a new package will be created on the Desktop.
When created double-click on that and an installation window will open where you will now convert the
new InstallElCapitan.pkg to the Install OS X El Capitan.app which will be placed in your Applications folder.
You can now create a bootable USB using the install app and createinstallmedia,
If you have the time I would be grateful if you could give this a trial, it works here on my mac, but I would like confirmation from yourself or any others reading this that the procedure works on macs that came with macOS Sierra or newer pre-installed. Oh and tell me if my description of the procedure is easy to follow and understand..
Jan 15, 2020 12:58 AM