STAND WITH UKRAINE 🇺🇦

Write linux bootable USB

Created:


A lot of distros have some sort of live-USB creator pre-installed. But not all, and sometimes that creator doesn’t allow other distros images to be made.

So, it’s much faster just to use the terminal than search for a good USB maker and install it.


Commands used.

sudo fdisk -l
readlink -f [FILE]
sudo dd bs=4M if=[PATH/TO/IMAGE] of=/dev/sd[letter] status=progress oflag=sync

Find the path of the inserted USB-key.

sudo fdisk -l

Example, usually /dev/sdb is the path of the USB-key.

$ sudo fdisk -l
# ...
Disk /dev/sdb: 7,47 GiB, 8019509248 bytes, 15663104 sectors
Disk model: USB Flash Drive
# ...

Full path of the file.

readlink -f [FILE]

Example, first I downloaded Kubuntu 20.04 image.

~
$ cd Downloads/

~/Downloads
$ ls
kubuntu-20.04.3-desktop-amd64.iso

~/Downloads
$ readlink -f kubuntu-20.04.3-desktop-amd64.iso
/home/diogenes/Downloads/kubuntu-20.04.3-desktop-amd64.iso

Write Live-USB. The USB-key must be unmounted.

sudo dd bs=4M if=[PATH/TO/IMAGE] of=/dev/sd[letter] status=progress oflag=sync

Example.

sudo dd bs=4M if=/home/diogenes/Downloads/kubuntu-20.04.3-desktop-amd64.iso
 of=/dev/sdb status=progress oflag=sync