Appleサポートページの「macOS の起動可能なインストーラを作成する」の手順を見てUSBインストーラーを作成しようとしたらターミナルにエラーが表示されて作成できなかったので正しい手順をメモしておきます。
まずは下記のAppleサポートページのリンクから作成したいバージョンのOSをダウンロードします。
support.apple.com
次に下記ページの「起動可能なインストーラを作成する」の手順の通りにUSBメモリをフォーマットしてターミナルでコマンドを実行します。
support.apple.com
通常はサポートページの手順通りに作成できるはずなのですが、今回 Mac OS Ventura のインストールUSBを作成しようとコマンドを実行したら下記エラーが表示されて作成できませんでした。
/Applications/Install macOS Ventura.app does not appear to be a valid OS installer application.
そのため、まずは利用可能なインストーラーの一覧を表示するコマンドをターミナルで実行します。
softwareupdate --list-full-installers
上記のコマンドを実行すると下記のようなリストが表示されるので自分がインストールしたいOSのバージョンを確認します。
Finding available software
Software Update found the following full installers:
* Title: macOS Sonoma, Version: 14.3.1, Size: 13073278KiB, Build: 23D60, Deferred: NO
* Title: macOS Sonoma, Version: 14.3, Size: 13073941KiB, Build: 23D56, Deferred: NO
* Title: macOS Sonoma, Version: 14.2.1, Size: 13066225KiB, Build: 23C71, Deferred: NO
* Title: macOS Sonoma, Version: 14.2, Size: 13066238KiB, Build: 23C64, Deferred: NO
* Title: macOS Sonoma, Version: 14.1.2, Size: 12604083KiB, Build: 23B92, Deferred: NO
* Title: macOS Sonoma, Version: 14.1.1, Size: 12604952KiB, Build: 23B81, Deferred: NO
* Title: macOS Ventura, Version: 13.6.3, Size: 11915962KiB, Build: 22G436, Deferred: NO
* Title: macOS Ventura, Version: 13.6.2, Size: 10226663KiB, Build: 22G320, Deferred: NO
* Title: macOS Ventura, Version: 13.6.1, Size: 11662168KiB, Build: 22G313, Deferred: NO
* Title: macOS Monterey, Version: 12.7.3, Size: 12109975KiB, Build: 21H1015, Deferred: NO
* Title: macOS Monterey, Version: 12.7.2, Size: 12116623KiB, Build: 21G1974, Deferred: NO
* Title: macOS Monterey, Version: 12.7.1, Size: 12110635KiB, Build: 21G920, Deferred: NO
今回は macOS Ventura 13.6.3 のUSBインストーラーを作りたかったので、下記コマンドを実行します。
※末尾の太字のところでOSのバージョンを指定します
softwareupdate --fetch-full-installer --full-installer-version 13.6.3
コマンドを実行するとしばらく時間がかかりますが下記のように表示されてUSBインストーラーが作成できる状態に準備が整います。
Scanning for 13.6.3 installer
Install finished successfully
最後にサポートページに記載がある通りのコマンドを実行すればUSBインストーラーが作成できます。(今回は macOS Ventura のUSBインストーラーを作りました)
sudo /Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume