用`diskutil list'命令查看磁盘名称
➜ work diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 250.7 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.7 GB disk1
Physical Store disk0s2
1: APFS Volume 未命名2 - 数据 183.0 GB disk1s1
2: APFS Volume Preboot 282.7 MB disk1s2
3: APFS Volume Recovery 625.7 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
5: APFS Volume MakBookPro 15.3 GB disk1s5
6: APFS Snapshot com.apple.os.update-... 15.3 GB disk1s5s1
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_APFS Container disk3 400.0 GB disk2s2
(free space) 134.2 MB -
3: Apple_APFS Container disk4 599.8 GB disk2s3
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +400.0 GB disk3
Physical Store disk2s2
1: APFS Volume 新数据盘 335.9 GB disk3s2
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +599.8 GB disk4
Physical Store disk2s3
1: APFS Volume 时间机器 718.1 MB disk4s2
格式化
diskutil unmountDisk force disk3
sudo dd if=/dev/zero of=/dev/disk3 bs=1024 count=1024