USB stick Formatting on the CLI

Edited on 2024-05-25

  1. detecting the pendrive:
sudo fdisk -l
  1. unmounting pendrive
sudo umount /dev/sdf1
  1. formatting the pendrive
sudo mkfs.vfat -n ‘Nome Pendrive’ -I /dev/sdf1

where:

  1. copy the ISO to the device. Adapt the ISA/architecture as needed.
    dd bs=4M if=path/to/linux-version-x86_64.iso of=/dev/disk/by-id/usb-My_flash_drive conv=fsync oflag=direct status=progress