1. 程式人生 > >Mac下dd命令製作Centos USB啟動盤

Mac下dd命令製作Centos USB啟動盤

最近想用裝一臺Centos系統來使用,下載好系統後,發現了dd這個強大的命令,可用於將系統寫入USB來實現從U盤啟動,現將其使用步驟記錄一下

檢視 Mac 下所有的 disk

diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7
MB disk0s1 2: Apple_CoreStorage 250.1 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS Macintosh HD *249.8
GB disk1 Logical Volume on disk0s2 97E6F602-9BE4-491D-BEB1-C33959B22B81 Unencrypted /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *41.9
MB disk2 1: Apple_HFS Adobe Flash Player I... 41.9 MB disk2s1 /dev/disk3 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *8.2 GB disk3 1: DOS_FAT_32 8.2 GB disk3s1

解除U盤的掛載

diskutil unmountDisk /dev/disk3

用 dd 命令將 iso 寫入

sudo dd if=/Users/jpuyy/Downloads/CentOS-7.0-1406-x86_64-Minimal.iso of=/dev/disk3 bs=4m