Added the USB flash memory creation command for macOS 12 Monterey.
Added an error handling method when executing the USB flash memory creation command of macOS 10.12 Sierra.
Added the USB flash memory creation command for macOS 11 Big Sur.
I will show you how to create a USB flash memory for installation for all versions of macOS (OS X) after 10.7 Lion.
Here, I will explain in detail the procedure using the “Terminal” of the standard Mac application using illustrations.
What to prepare
macOS (OS X) Installer
Get the macOS (OS X) installer.
The detailed procedure for each version is introduced in the following article.
USB flash memory
A USB flash memory with a capacity that allows for the file size of the above macOS (OS X) installer + some margin is required.
It is important to choose a USB flash memory that has a proven track record, as it often happens that if you switch to a different model after struggling with some USB flash memory, it will work quickly.
By the way, the one I actually used was the next one I bought from Amazon.co.jp (Japan).
It is listed on the same page as the slide type, cap type, and iPhone / iPad, but I bought the slide type.
macOS (OS X) bootable USB flash memory (Amazon.co.jp – Japan)
Some USB sticks just can’t boot from your Mac.
In such a case, it is better to give up and use another USB flash memory.
Also, if the free space on the internal SSD / HDD of the Mac is low, the probability of failing to create a USB flash memory will increase.
This is the end of the explanation of “What to prepare”.
Procedure explanation
Initialize the USB flash memory
- ①
- ②
- ③
- ④
- ⑤
- ⑥
- ⑦
- ⑧
When you return from the pull-down list, enter an appropriate name in the “Name” part.
In the screen below, “My Volume” is entered, similar to the support page on the official Apple website.
Unless there is any other special reason, it is easy to explain later, so please use “My Volume” in the same way.
- ⑨
- ⑩
- ⑪
As shown in the screen below, when the green completion mark is displayed and “Erase process is completed” is displayed, the erasure is completed, so click the “Finish” button.
After this, anyone making a USB flash memory for installing OS X 10.7 Lion or 10.8 Mountain Lion should continue reading the instructions.
If you are 10.9 Mavericks or later, exit “Disk Utility” and proceed to the next step.
- ⑫So, if you’re a 10.7 Lion or 10.8 Mountain Lion, check the following:
- ① Select the USB memory that you just initialized in the “External” category on the left side.
- ② Pay attention to the “device” part indicated by the arrow in the figure below.
Then, in the figure below, “disk2s4” is displayed, so make a note of the “disk2” part and make a note of it.The meaning of this part indicates the number of the physical disk, and it will be indispensable information when making a USB memory for OS installation after that.Also, if you make a mistake in the number, other HDDs and SSDs will be initialized by mistake, so be careful not to make a mistake.The figure below is an enlarged view of the part indicated by the arrow in ②.
- ⑬
After confirming the physical disk number, click the unmount icon pointed to by the arrow in the figure below to exit Disk Utility.
Do not remove the USB flash memory and leave it connected.
The person who has read this far is the person who makes the USB flash memory for OS installation of OS X 10.7 Lion or 10.8 Mountain Lion, so please proceed to the next step.
Make a USB flash memory for OS installation
10.9 Mavericks and later steps
- ①
- ②
- ③
When “Terminal” starts, copy and paste the command to create a USB flash memory for macOS installation.
All commands differ depending on the OS version, so select from the following and copy.
There are “” characters in the middle of the commands, which are called the “escape character”.
The reason for using “” is to recognize half-width space as a half-width character.
If there is no “”, the half-width space will be recognized as a word delimiter instead of a character.OS version Command 12 Monterey sudo /Applications/Install macOS Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
11 Big Sur sudo /Applications/Install macOS Big Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
10.15 Catalina sudo /Applications/Install macOS Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
10.14 Mojave sudo /Applications/Install macOS Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
10.13 High Sierra sudo /Applications/Install macOS High Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
10.12 Sierra sudo /Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install macOS Sierra.app --nointeraction
If an error occurs with the above command,
execute the following command in advance,
and then try again.sudo plutil -replace CFBundleShortVersionString -string "12.6.03" /Applications/Install macOS Sierra.app/Contents/Info.plist
10.11 El Capitan sudo /Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X El Capitan.app
10.10 Yosemite sudo /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X Yosemite.app --nointeraction
10.9 Mavericks sudo /Applications/Install OS X Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X Mavericks.app --nointeraction
- ④
Copy and paste the command into “Terminal” and press enter on your keyboard to execute it.
At that time, you will be asked for the password, so enter the password you used to log in to your Mac and press enter.
Even if you press enter or enter the password, the screen display may not change, but it may change after a few minutes, so please wait for a while.
If the screen still does not change, please check the items in the red “CHECK” box after this.
If you see a message like the one below, type Y on your keyboard.
If you wish to continue type (Y) then return:
If the command doesn’t work, try the following:
- Unmount the USB flash memory and try connecting it again
- Make sure that you haven’t made a mistake in copying and pasting the command
- Exit “Terminal” and try again
- Initialize the USB flash memory again, unmount it, and then try connecting it again
- Try restarting your Mac
- ⑤
- ⑥
When the process is done, exit Terminal and remove the USB flash memory from your Mac.
10.7 Lion and 10.8 Mountain Lion steps
- ①
- ②
- ③
When “Terminal” starts, copy and paste the command to create a USB flash memory for macOS installation.
All commands differ depending on the OS version, so select from the following and copy.
There are “” characters in the middle of the commands, which are called the “escape character”.
The reason for using “” is to recognize half-width space as a half-width character.
If there is no “”, the half-width space will be recognized as a word delimiter instead of a character.OS version Command 10.8 Mountain Lion hdiutil convert -format UDRW -o ~/OsInstall.img /Applications/Install OS X Mountain Lion.app/Contents/SharedSupport/InstallESD.dmg
10.7 Lion hdiutil convert -format UDRW -o ~/OsInstall.img /Applications/Install Mac OS X Lion.app/Contents/SharedSupport/InstallESD.dmg
- ④
- ⑤
- ⑥
Next, create a USB flash memory for OS installation from the image file for OS installation that you just created.
Copy and paste the following command to the “Terminal” screen and execute it. (Press the enter key on the keyboard)
Please replace the number part of “disk3” with the number of “physical disk number” confirmed earlier.
sudo dd if=OsInstall.img.dmg of=/dev/disk3
At that time, you will be asked for the password, so enter the password you used to log in to your Mac and press enter.
Even if you press enter or enter the password, the screen display may not change, but it may change after a few minutes, so please wait for a while.
If the screen still does not change, please check the items in the red “CHECK” box after this.
If the command doesn’t work, try the following:
- Unmount the USB flash memory and try connecting it again
- Make sure that you haven’t made a mistake in copying and pasting the command
- Exit “Terminal” and try again
- Initialize the USB flash memory again, unmount it, and then try connecting it again
- Try restarting your Mac
If “Resource busy” or “Operation not permitted” is displayed, the USB flash memory for OS installation is still mounted, so unmount it and then execute the copied command again.
- ⑦
You may be worried because the screen during the process is not displayed, but it will take about 1 hour to complete the process, so leave it for a while.
When the process is completed, the files in the USB memory will be listed as shown below.
Furthermore, the “Terminal” screen changes to the command prompt screen (command input screen) as shown below.
Operation check
Check the operation to see if it can be booted with the created USB memory for OS installation.
- ①
- ②
- ③
Reference information
This is the end of the article on this page.
コメント