LoginSignup
4
5

More than 5 years have passed since last update.

MacでISOファイルからインストールUSBを作成する(俺用メモ)

Posted at

準備する物

  • USBメモリ
  • ダウンロードしてきたisoファイル

.isoファイルを.dmgファイルへコンバート

  • hdiutil convert -format UDRW -o {コンバートしたファイルの出力先} {ダウンロードしてきたisoファイルの配置場所}

例)

hdiutil convert -format UDRW -o /Users/testuser/Desktop/iso/CentOS-6.7-x86_64-minimal.img /Users/testuser/Desktop/iso/CentOS-6.7-x86_64-minimal.iso

USBを初期化

  • [アプリケーション]-[ユーティリティ]-[ディスクユーティリティ]開く
  • 対象のUSBを選択
  • 消去タブをクリック
  • フォーマット形式を選択し、消去をクリック

USBのデバイスファイル名確認

  • diskutil list

アンマウント

  • diskutil unmountDisk /dev/disk{確認した数字}
  • 成功すると、「Unmount of all volumes on disk2 was successful」と表示

USB書き込み

  • sudo dd if={コンバートしたdmgファイルパス} of=/dev/disk{確認した数字} bs=1m

終了したらejectしてUSBを取り出す

  • diskutil eject /dev/disk2
4
5
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
5