Preparing Linux installation media requires:
- Device (typically laptop/desktop computer) capable of writing to a USB flash drive
- USB flash drive
- ISO file containing install data
- program capable of writing ISO file to USB flash drive
Remember that all data on USB flash drive will be irreversibly deleted during process.
Universal
This method works on Linux, Windows and macOS
balena Etcher
- Download balena Etcher
- Insert USB flash drive into USB port
- Start 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 8
You 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=progress
sudo sync
pv
❕ progress is useless; it does not include data being actually written on devicesudo pv INPUT > OUTPUT
sudo sync
cp
❕ no progress indicationsudo cp INPUT OUTPUT
sudo 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:
Last update: 2024-06-17