Tuesday, August 9, 2022

Create a bootable USB stick on Linux terminal with dd

Find USB flash drive with following commands:

df

lsblk

sudo dmesg

sudo umount /dev/sdd1 - IN MY CASE!!!

sudo dd if=kubuntu-22.04-desktop-amd64.iso of=/dev/sdd1 bs=1M status=progress

Wait till finish. dd will make USB drive space equal to ISO image.

To recover all USB drive space, do following command:

sudo dd if=/dev/zero of=/dev/sdd1 status=progress

Wait till finish. ALL DATA WILL BE DELETED!!!

Format USB drive in preferred partition editor.

No comments:

Post a Comment