Install iso on USB key using #Linux console only

How to flash any iso (think about your favorite distro) on an USB key without graphical IHM ?

sudo dd if=/path/to/image.iso of=/dev/sda1 status=progress oflag=sync
  • “/path/to/image.iso” is the path to the ISO file
  • /dev/sda1 is your USB key device (see below to get yours)
  • status=progress show flashing progression
  • oflag=sync to synchronize write access on the USB key

How to know wich device to use ?

Before inserting the key, type in your terminal :

dmesg -Tw

Everything happening on your Linux is traced on screen. Now, insert your key and check for this sort of lines :

ven. janv. 26 15:11:34 2018] sda: sda1
[ven. janv. 26 15:11:34 2018] sd 2:0:0:0: [sda] Attached SCSI removable disk

Yours may be sdb1 or sdc1, etc… Take the good one and place it in the command above 🙂