Skip to content

Instantly share code, notes, and snippets.

@xoosye
Created January 11, 2013 01:00
Show Gist options
  • Save xoosye/4507115 to your computer and use it in GitHub Desktop.
Save xoosye/4507115 to your computer and use it in GitHub Desktop.
http://blog.csdn.net/jiangbo_hit/article/details/6952151
$ hdiutil convert -format UDRW -o /path/to/generate/img/file /path/to/your/iso/file #将iso转换为img.dmg文件
$ diskutil list #查看USB的盘符
$ diskutil unmountDisk /dev/diskN #卸载USB磁盘
$ sudo dd if=ubuntu.img.dmg of=/dev/diskN bs=1m #将镜像写入USB
$ diskutil eject /dev/diskN #弹出USB
@d0zingcat
Copy link

Quite useful! Tks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment