TL;DR:
sudo dd bs=4M if=INPUT of=OUTPUT conv=fsync oflag=direct status=progress
sudo sync
Required
- PC capable of writing to a USB flash drive
- USB flash drive ❗ all data on it will be deleted
- ISO file
Universal
Works on Linux, Windows and macOS
balena Etcher
- Download balena Etcher
- Insert USB flash drive into USB port
- Start balena Etcher
- Press Select image and choose ISO file
- Select USB flash drive ❗ all data on selected device will be irreversibly destroyed
- Press Flash
- Wait for process to complete
Linux
- Insert USB flash drive into USB port
-
Prepare INPUT path (path to ISO file). Command that lists all path to files with name ending on .iso:
find / -type f -name *.iso 2>/dev/null -
Prepare OUTPUT path (path to USB flash drive). Do not add partition number (it's should be something
like /dev/sd?). Command to list all disk devices:
lsblk -d -o PATH,SIZE,MODEL,SERIAL -I 8You only need first value, other are provided to help you with identification.
❗ All data on OUTPUT device will be irreversibly destroyed
dd
sudo dd bs=4M if=INPUT of=OUTPUT conv=fsync oflag=direct status=progresssudo sync
pv
❕ progress is useless; it does not include data being actually written on devicesudo pv INPUT > OUTPUTsudo sync
cp
❕ no progress indicationsudo cp INPUT OUTPUTsudo sync
Windows
Rufus
- Download Rufus
- Insert USB flash drive
- Start Rufus
- Select ISO file
- Select USB flash drive ❗ all data on selected device will be irreversibly destroyed
- Press Start
macOS
cat
-
Prepare OUTPUT path (path to USB flash drive). Command to list all device names:
diskutil list -
Unmount USB flash drive (/dev/diskN):
diskutil unmountDisk /dev/diskN -
Write ISO to OUTPUT (/dev/rdiskN instead of /dev/diskN)
sudo sh -c "cat INPUT > /dev/rdiskN"
External resources
- Ubuntu guide on how to install it
- ArchWiki article on how to prepare installation media
- openSUSE wiki pages on preparation of its install media: