LoginSignup
2
2

More than 5 years have passed since last update.

MacでCentOS7のBootableUSBを作成

Posted at

準備するもの

  • USBメモリ
  • OSイメージ
  • MacBook

手順

1. 事前準備

  • デバイス名の確認
$ diskutil list
/dev/disk4
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *15.9 GB    disk4
   1:                 DOS_FAT_32 UNTITLED                15.9 GB    disk4s1
  • デバイスの初期化
$ diskutil eraseDisk MS-DOS UNTITLED /dev/disk4
Started erase on disk4
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Formatting disk4s2 as MS-DOS (FAT) with name UNTITLED
512 bytes per physical sector
/dev/rdisk4s2: 30522224 sectors in 1907639 FAT32 clusters (8192 bytes/cluster)
bps=512 spc=16 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=411648 drv=0x80 bsec=30552064 bspf=14904 rdcl=2 infs=1 bkbs=6
Mounting disk
Finished erase on disk4

2. ISOファイル書き込み

  • アンマウント
$ diskutil unmountDisk /dev/disk4
Unmount of all volumes on disk4 was successful
  • 書き込み
$ sudo dd if=./CentOS-7-x86_64-DVD-1511.iso of=/dev/disk4 bs=4028

3. 事後確認

  • 取り外し
$ diskutil eject /dev/disk4
Disk /dev/disk4 ejected
  • エントリー確認
$ diskutil list
# /dev/disk4が表示されていないことを確認
2
2
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
2
2