1. 下载Ubuntu的iso镜像文件
地址为:https://ubuntu.com/download/desktop
2. 把iso镜像文件转换成dmg文件
cd Downloads/
hdiutil convert -format UDRW -o ubuntu.iso ubuntu-18.04.2-desktop-amd64.iso
-format为生成文件的权限;UDRW :表示转换成有read/write的权限的镜像。
终端里面出现以下的成功信息:
Reading Protective Master Boot Record (MBR : 0)…
Reading GPT Header (Primary GPT Header : 1)…
Reading GPT Partition Data (Primary GPT Table : 2)…
Reading ISO9660 (DOS_FAT : 3)…
...............................................................................
Reading Appended2 (C12A7328-F81F-11D2-BA4B-00A0C93EC93B : 4)…
...............................................................................
Reading Gap1 (DOS_FAT : 5)…
.........................