How to Burn DMG to USB on macOS Catalina

如何在 macOS 系统把 dmg 镜像烧进 U 盘?

现在(2020年3月28日,March 28th, 2020)网上能搜到的内容都过时了,正解如下:

  1. Convert DMG to ISO——把 DMG 转为 ISO
  2. Use dd to burn ISO to USB——用 dd 命令把 ISO 烧进 U 盘

那么第一步,怎么把 DMG 转为 ISO 呢?这里需要用到一个工具叫 dmg2img,下面是 brew 安装方法:

brew install dmg2img

然后,

dmg2img <path_to_your_dmg_file> <path_to_your_iso_file>

就把 DMG 转为 ISO了。

第二步,把 ISO 烧进 U 盘:

sudo dd if=<path_to_your_iso_file> of=<your_destination_disk> bs=4m

具体可以用 diskutil list 命令查看自己 U 盘的标识

donate to me

0 Comments

No comments yet.

Leave a Reply