1. 查看U盘位置

打开Terminal,输入以下命令

$ diskutil list

查出来我的U盘位置是/dev/disk2

2. 将U盘格式化为FAT32格式

$ sudo diskutil eraseDisk FAT32 CAM_STORE MBRFormat /dev/disk2

Password:
Started erase on disk2
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk2s1 as MS-DOS (FAT32) with name CAM_STORE
512 bytes per physical sector
/dev/rdisk2s1: 60523616 sectors in 1891363 FAT32 clusters (16384 bytes/cluster)
bps=512 spc=32 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=2048 drv=0x80 bsec=60553216 bspf=14777 rdcl=2 infs=1 bkbs=6
Mounting disk
Finished erase on disk2

这条命令加了sudo,因此需要先输入管理员密码

3. 取消挂载U盘

$ diskutil umountdisk /dev/disk2

Unmount of all volumes on disk2 was successful

4. 烧录

其中,参数if需要填入下载好的系统iso文件的路径

$ sudo dd if=/Users/wooson/Downloads/ubuntu-20.04.2-live-server-amd64.iso of=/dev/disk2 bs=1m; sync

1158+1 records in
1158+1 records out
1215168512 bytes transferred in 380.706347 secs (3191879 bytes/sec)

这个过程需要等待一段时间

5. 弹出U盘

$ diskutil eject /dev/disk2
Logo

更多推荐