dd on macOS

Using dd on macOS

  • Unmount the disk before writing to it.
  • Use rdiskX instead of diskX for better performance.
  • Use Ctrl+T to show progress in dd.
1
2
3
4
5
6
diskutil list
diskutil unmountDisk /dev/diskX

sudo dd if=/path/to/source.img of=/dev/rdiskX bs=1m
# or
sudo gdd if=/path/to/source.img of=/dev/rdiskX bs=1m status=progress

我去,AI 帮写博客可太方便了,直接把内容写好了,连格式都不用我操心。连这句也是 AI 写的,哈哈哈。