Create Bootable USB Drive

May 10th, 2016

It not works for creating a bootable copy of Windows! It just works for Linux.

hdiutil convert -format UDRW -o linux.img your_linux_image.iso
mv linux.img.dmg linux.img
diskutil list
Find the name of the pendrive device (e.g. disk2)
diskutil unmountDisk /dev/disk2
sudo dd if=./linux.img of=/dev/rdisk2 bs=1m
diskutil eject /dev/disk2