目標:使用mac命令行制作U盤系統(tǒng)
1)查看磁盤情況
$diskutil list #顯示當前所有得磁盤情況
顯示的內(nèi)容:
/dev/disk2 (external, physical):
#:? ? ? ? ? ? ? ? ? ? ? TYPE NAME? ? ? ? ? ? ? ? ? ? SIZE? ? ? IDENTIFIER
0:? ? FDisk_partition_scheme? ? ? ? ? ? ? ? ? ? ? ? *15.5 GB? ? disk2
1:
$diskutil unmountDisk /dev/disk1 #卸載U盤上的所有磁盤
2)安裝pv命令
$brew install pv
$su root
$pv -petr /Users/*****/Downloads/kali-linux-2017-W25-i386.iso | dd of=/dev/disk2 bs=1m
顯示的內(nèi)容:
0:18:36 [2.45MiB/s] [================================================>] 100%
0+43828 records in
0+43828 records out
2872311808 bytes transferred in 1116.056859 secs (2573625 bytes/sec)