方法1.
1.官网下载镜像
ubuntu-18.04.3-desktop-amd64.iso
2.使用命令查看
leo@leodeMacBook-Pro ~/Downloads diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 250.8 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.8 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 227.9 GB disk1s1
2: APFS Volume Preboot 44.9 MB disk1s2
3: APFS Volume Recovery 510.3 MB disk1s3
4: APFS Volume VM 5.4 GB disk1s4
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *31.2 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Microsoft Basic Data USB64 31.0 GB disk2s2
3.卸载U盘,准备写入镜像,输入命令:
leo@leodeMacBook-Pro ~/Downloads diskutil umountDisk disk2
Unmount of all volumes on disk2 was successful
4.使用dd
命令将下载的Ubuntu Linux镜像恢复到U盘上,操作之前我有必要提醒各位小白,万一你不小心输入错了设备名,那么你连哭的机会都没有,因为dd是按扇区直接物理写入磁盘,别到时候找不到数据了再悔不当初没有认真看到这段文字
leo@leodeMacBook-Pro ~/Downloads sudo dd if=./ubuntu-18.04.3-desktop-amd64.iso of=/dev/disk2 bs=1m
Password:
1986+1 records in
1986+1 records out
2082816000 bytes transferred in 219.010952 secs (9510100 bytes/sec)
结果报错:
【error5】Input/output error
方法2. 成功
推荐使用rufus来制作u盘启动盘,因为快。
https://rufus.ie/
网友评论