Help us understand the problem. What is going on with this article?

MacでethOSのイメージをUSBメモリに焼く

More than 3 years have passed since last update.

isoをダウンロード, xz解凍

ethOSのISOイメージは xz によって圧縮されているので、扱えるようにインストールしておく

$ brew install xz

xz 解凍

$ unxz ethos-1.2.3.iso.xz

これでそのまま解凍されてただの iso イメージになる

USBメモリの準備

$ diskutil list
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         251.0 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            250.0 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +249.7 GB   disk1
                                 Logical Volume on disk0s2

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *64.5 GB    disk2
   1:                      Linux                         7.8 GB     disk2s1
   2:                       0xEF                         11.5 MB    disk2s2


USBメモリが /dev/disk 何番なのか確認しておく。ここでは /dev/disk2 だと仮定する。

$ diskutil unmountdisk /dev/disk2
Unmount of all volumes on disk2 was successful

$ diskutil eraseDisk MS-DOS ETHOS /dev/disk2
Started erase on disk2
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk2s2 as MS-DOS (FAT) with name ETHOS
512 bytes per physical sector
/dev/rdisk2s2: 125515776 sectors in 1961184 FAT32 clusters (32768 bytes/cluster)
bps=512 spc=64 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=411648 drv=0x80 bsec=125546496 bspf=15322 rdcl=2 infs=1 bkbs=6
Mounting disk
Finished erase on disk2

アンマウントして、初期化する。diskutil eraseDisk MS-DOSすると勝手にEFI領域もつくってくれるので良い↓

$ diskutil list
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         251.0 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            250.0 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +249.7 GB   disk1
                                 Logical Volume on disk0s2

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *64.5 GB    disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:       Microsoft Basic Data ETHOS                   64.3 GB    disk2s2

ddで焼く

初期化すると勝手にまたマウントしてしまうので、アンマウントしておく。

$ diskutil unmountdisk /dev/disk2
Unmount of all volumes on disk2 was successful

dd では、 bs ブロックサイズを1GBと贅沢につかってぶっこむ。メモリが4GB以下の人権外Macを使ってる人は適宜少なくすること(swpして盛大に遅くなる)

$ sudo dd if=./ethos-1.2.3.iso of=/dev/disk2 bs=1g
Password:
7+1 records in
7+1 records out
7861543424 bytes transferred in 1052.677474 secs (7468141 bytes/sec)

それでも7GBほど焼くので、遅い。。7MB/secぐらいは出てるっぽいけど。

完成

これを、ターゲットのマシンのUSBにさして起動すれば良いはず。

sakadon
個人事業主のフロントエンドエンジニアなはずです
http://sakadon.net/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした