Flash OS image to USB drive with dd command

  • Open Terminal
  • Type sudo su to enter root and type in your password
  • Type diskutil on Mac or lsblk on linux to determine the name of flash drive for example disk4 or disk2.

Mac

Linux

  • Next we have to flash image to the flash driver with dd.

Mac

dd if=<OS_Image_File>  of=<disk_path> bs=1m conv=sync

Linux

dd if=<OS_Image_File>  of=<disk_path> bs=4M conv=fsync

**Mac and Linux are almost the same, the only difference is in bs (block size) and conv.

OS_Image_File is the path to your image file

disk_path is the path to your disk with is just /dev/<disk_name>

After a while you will get a output such as this, which means the process was successful!