36
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MACでOSイメージを焼く

Posted at

ひさびさにSDカードにOSイメージを焼く。

$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage                         499.4 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           *499.1 GB   disk1
                                 Logical Volume on disk0s2
                                 4D3ECD99-C952-4B12-B86F-937E107E6623
                                 Unlocked Encrypted
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *8.1 GB     disk2
   1:                 DOS_FAT_32 NO NAME                 8.1 GB     disk2s1

disk2にマウントされていることがわかる。
なので対象指定して実施。

$ dd if=OSイメージ名 of=/dev/rdisk2 bs=1m
dd: /dev/rdisk2: Resource busy

どうやら調べるとMACで自動的にマウントしているから。そりゃそうだね。。。
dfでなんて名前でマウントしてるか調べる

$ df 
Filesystem    512-blocks      Used Available Capacity  iused    ifree %iused  Mounted on
/dev/disk1     974716928 577840184 396364744    60% 72294021 49545593   59%   /
devfs                373       373         0   100%      647        0  100%   /dev
map -hosts             0         0         0   100%        0        0  100%   /net
map auto_home          0         0         0   100%        0        0  100%   /home
/dev/disk2s1    15742976      5120  15737856     1%        0        0  100%   /Volumes/NO NAME

以下でアンマウント

$ sudo diskutil umount "/Volumes/NO NAME"

これで無事動きはじめた。

36
17
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
36
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?