Back to TILs

How to create a bootable pendrive from ISO image

Date: 2022-10-26Last modified: 2023-02-17

To install a fresh version of the Debian I need to prepare a bootable USB stick.

First make sure I am writing on the right device. Yes, it is a very old 2GB USB stick.

fdisk -l | grep sdc
Disco /dev/sdc: 1,9 GiB, 2017984000 bytes, 3941375 setores
/dev/sdc1   *                0 774143  774144    378M  0 Vazia
/dev/sdc2                 4060   9243    5184    2,5M ef EFI (FAT-12/16/32)

Then transfer the ISO image bit by bit to the USB stick:

dd \ 
  bs=4M \
  if=debian-live-11.5.0-amd64-standard.iso \
  of=/dev/sdc \
  status=progress \