Install iso on USB key using #Linux console only

2018-11-08

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/sda status=progress

  • “/path/to/image.iso” is the path to the ISO file
  • /dev/sda is your USB key device (see below to get yours) : note that it is the whole device, not a partition (e.g. /dev/sda and not /dev/sda1)
  • status=progress show flashing progression

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 sdb or sdc, etc… Take the good one and place it in the command above :-)