LoginSignup
4
6

More than 1 year has passed since last update.

macOS(Monterey)のisoイメージをmacで作成する

Last updated at Posted at 2022-05-18

作成日: 2022-05-18

この記事は何?

macOS(Monterey)のisoイメージをmacで作成した備忘録です。基本的には参考文献の欄に載せた記事の手順のままです(とても良い記事です)。より詳細は是非そちらを参照するようにしてください。

実行環境

  • macbook Air(2019)
  • macOS Monterey ver12.3.1

参考文献

インストーラのダウンロード

App storeからmacOS Monterey インストール.appをダウンロードしておきます。
以下ではこれは「アプリケーション」フォルダに入っていることを前提としています。

step.1 イメージファイルの作成

hdiutilコマンドを使ってイメージファイルをスパースファイルで作成します。初め10gbで作成すると3.68gb足りないと言われたので余裕をみて15GBで作成し直しました。

hdiutil create -o /tmp/monterey -size 15g -layout SPUD -fs HFS+J -type SPARSE

step.2 イメージのマウント

上記で作成したイメージファイルをマウントします。

hdiutil attach /tmp/monterey.sparseimage -noverify -mountpoint /Volumes/installMonterey 

step.3 インストーラの作成

マウントしたイメージファイルにインストーラを作成します。

sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/installMonterey --nointeraction

step.4 イメージファイルをアンマウントする

hdiutil detach /Volumes/Install\ macOS\ Monterey/

step.5 cdrファイルの生成

sparseファイルをcdrファイルに変換します(デスクトップに生成しています)。

hdiutil convert /tmp/monterey.sparseimage  -format UDTO -o ~/Desktop/installMonterey.cdr

step.6 リネーム

cdrファイルの拡張子をisoに変更します(右クリックメニューでそのまま変更した)。

step.7(optional)

sparseイメージは用済みなので削除します。

rm /tmp/monterey.sparseimage

この記事は以上です。

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6