3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

《Mac標準》 ISOイメージファイルからブータブルUSBを作成する方法

Posted at

Macの標準機能で可能
追加のアプリやライブラリは不要!

USBメモリをUSBポートに挿入し、ターミナルから以下のコマンドを実行する。

# 1. 接続されているディスク一覧を出力、対象USBの/dev/diskXXを特定する
diskutil list

# 2. 対象USBをMS-DOS形式で初期化する
diskutil eraseDisk MS-DOS UNTITLED /dev/diskXX

# 3. フォーマットするとマウントされるのでアンマウントする
diskutil unmountDisk /dev/diskXX

# 4. ddコマンドを使用してISOイメージをディスクに書き込む
sudo dd if=./xxxxxx.iso of=/dev/diskXX bs=1m

# 5. 書き込みが終わったら、USBメモリを取り出す
diskutil eject /dev/diskXX

実行例

実行例(ubuntu_24.04 インストールUSBの作成)
~ % diskutil list
(一部省略)

/dev/disk6 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *31.0 GB    disk6
   1:             Windows_FAT_32 NO NAME                 31.0 GB    disk6s1



~ % diskutil eraseDisk MS-DOS UNTITLED /dev/disk6
Started erase on disk6
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk6s2 as MS-DOS (FAT) with name UNTITLED
512 bytes per physical sector
/dev/rdisk6s2: 60063040 sectors in 1876970 FAT32 clusters (16384 bytes/cluster)
bps=512 spc=32 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=411648 drv=0x80 bsec=60092416 bspf=14664 rdcl=2 infs=1 bkbs=6
Mounting disk
Finished erase on disk6

~ % diskutil unmountDisk /dev/disk6
Unmount of all volumes on disk6 was successful

~ % ls -s ubuntu-24.04-desktop-amd64.iso
11942688 ubuntu-24.04-desktop-amd64.iso

~ % sudo dd if=./ubuntu-24.04-desktop-amd64.iso of=/dev/disk6 bs=1m
Password:
5831+1 records in
5831+1 records out
6114656256 bytes transferred in 546.737826 secs (11183891 bytes/sec)

~ % diskutil eject /dev/disk6
Disk /dev/disk6 ejected


 

おまけ

macOSインストーラから、インストールUSBを作成する方法

フォーマット済みのUSBをMacに挿して、以下のコマンドを実行する。
(16GBのUSBでほぼ足りる)

# インストーラのファイル名を確認
ls /Applications/Install*.app

sudo /Applications/Install\ macOS\ XXXX.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

実行例

~ % ls /Applications/Install*.app
/Applications/Install macOS Ventura.app:
Contents

# VenturaのインストールUSBを作成
sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/MyUSB

Macでブートディスクを選択する方法

  1. Macの電源を入れ、すぐに Option(Alt)キー を押し続ける
  2. 起動可能なボリュームが暗い画面に表示されたら、Optionキーを離す
  3. インストーラ(ブータブルUSB)を選択する
3
4
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
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?