1 查看u盘的具体路径
diskutil list
根据容量确认路径 /dev/disk2
2、卸载u盘
diskutil unmountDisk /dev/disk2
3、把iso文件写入u盘
sudo dd if=/Users/dengjinshan/Downloads/Win11_24H2_Chinese_Simplified_x64.iso of=/dev/disk2 bs=1m
4、弹出u盘
diskutil eject /dev/disk2
% 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 home 9.3 GB disk1s1
2: APFS Snapshot com.apple.os.update-... 9.3 GB disk1s1s1
3: APFS Volume Preboot 2.4 GB disk1s2
4: APFS Volume Recovery 1.2 GB disk1s3
5: APFS Volume VM 1.1 GB disk1s4
6: APFS Volume home - 数据 226.2 GB disk1s5
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *31.5 GB disk2
1: Windows_NTFS 30.1 GB disk2s1
2: 0x1B 469.8 MB disk2s2
MacBook-Pro /dev %
MacBook-Pro /dev %
MacBook-Pro /dev % sudo dd if=/Users/dengjinshan/Downloads/Win11_24H2_Chinese_Simplified_x64.iso of=/dev/disk2 bs=1m
Password:
dd: /dev/disk2: Resource busy
MacBook-Pro /dev % diskutil unmountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
MacBook-Pro /dev % sudo dd if=/Users/dengjinshan/Downloads/Win11_24H2_Chinese_Simplified_x64.iso of=/dev/disk2 bs=1m
5559+1 records in
5559+1 records out
5829044224 bytes transferred in 706.261511 secs (8253379 bytes/sec)
MacBook-Pro /dev %
MacBook-Pro /dev %
MacBook-Pro /dev %
MacBook-Pro /dev % diskutil eject /dev/disk2
Disk /dev/disk2 ejected
MacBook-Pro /dev %