Overview
bootmediamaker creates bootable USB memory sticks, SD cards and other removable devices from ISO images (Linux distributions, Windows 10/11 installers) and raw disk images (.img files). This page describes what it does and how to use it. The options page explains every option.
1. The basics
New to this? Here is what it is about, in a few words. Otherwise, skip to §2.
Why you need such a program. To install an operating system such as Linux or Windows on a computer, the computer must start (“boot”) from something other than its own disk: nowadays, a USB memory stick holding the system’s installer. Many Linux systems can also run straight from the stick (“live”), so you can try them, or repair a computer, without installing anything.
What an ISO image is. A single file, ending in .iso, that holds a complete copy of an installation disc: everything needed to start the computer and install the system. Linux distributions and Microsoft publish their systems as ISO images, to download from their websites. Copying the .iso file onto a stick like any other file does not work: the computer would not start from it. The stick must be prepared so that the computer can boot from it, and that is what bootmediamaker does.
The steps to install a system:
- Download the ISO image from the system’s official website. For example, Windows 11 from Microsoft’s website, or Linux Mint from its own.
- Take a USB memory stick of 8 GB or more. Everything on it will be erased: copy your files elsewhere first.
- Write the ISO image to the stick with bootmediamaker (§5 explains how to install it, §6 to §8 how to use it).
- Plug the stick into the computer to install, then start it and choose the stick in its boot menu. That menu appears when you press a key just after switching the computer on: often F12, F11, F10, F8 or Esc, depending on the manufacturer, and the screen often says which. If the computer starts its usual system instead, it did not start from the stick: try again, with another key.
- Follow the installer’s instructions. Installing a system usually erases what the computer’s disk holds, unless you choose otherwise: back up your files first.
2. What it does
Most tools write an ISO to a device byte for byte (“block mode”): the device boots, but its remaining capacity is wasted, and the device holds a read-only ISO 9660 filesystem. bootmediamaker copies the ISO’s files to a FAT32 filesystem instead (“file mode”): the device boots with UEFI and legacy BIOS, and the rest of it stays usable for your own files. When an ISO cannot work in file mode, bootmediamaker writes it in block mode, and says why; an ISO that boots from a device in neither mode (Tails’ ISOs, made for DVDs) is refused, with the reason.
- File mode on FAT32, which every UEFI firmware reads; block mode for anything else. In auto mode (the default), bootmediamaker chooses.
- UEFI and legacy BIOS boot from the same device (MBR by default, GPT on request). BIOS boot uses syslinux, built into the program.
- The distribution’s own boot loader. The device boots exactly as the ISO does, with its own menus; bootmediamaker adapts the boot configuration only where the device’s volume label differs from the ISO’s.
- An optional data partition: a FAT32 boot partition sized for the ISO, then an exFAT partition over the rest of the device, for files larger than 4 GiB.
- Windows 10/11 installation ISOs in file mode on FAT32, with Secure Boot. Their
install.wim, larger than FAT32 allows, is split intoinstall.swmparts that Windows Setup reads as one image, as Microsoft’s own instructions for FAT32 devices do. No third-party boot code. UEFI only. - Boot methods it knows: bootmediamaker knows how the main families of ISOs find their files (Debian- and Ubuntu-based live systems and installers, Arch Linux’s, Windows Setup…), checks on each ISO that it boots that way, and so writes it the right way, new releases included. Other Linux ISOs are handled by generic rules, inferred from the ISO.
- Safety first: by default only devices that are removable or on a USB port can be chosen (USB memory sticks, SD and microSD cards, USB-attached drives), and devices over 512 GiB are refused; the disks of the running system are refused. The plan of the write is shown first and must be confirmed (in the text user interface version by typing the device’s name; in the graphical user interface version in a dialog naming the device), and every write is verified by reading it back, unless you turn verification off.
- No dependencies. The text user interface version of the program is one static binary: no external programs (no
mkfs,parted,syslinuxordd), no shared libraries. It reads the ISO and writes the partition table, the filesystems and every file itself, without mounting anything. - Few privileges. Reading an ISO, showing a plan and writing a disk image file need none. Writing a device (typically a USB memory stick) needs the right to open it: as root, or on a desktop as yourself, through udisks2 (the desktop’s disk service), which may ask for your password.
- Reproducible builds: anyone can rebuild a release from its source and get the exact same binaries (§9).
3. The versions of the program
bootmediamaker-tui, the text user interface version of the program, for Linux: a full-screen text interface, a plain question-and-answer mode for simple terminals and screen readers, and a command line for scripts.bootmediamaker-gui, the graphical user interface version, for Linux desktops with Wayland or X11.bootmediamaker-gui.exe, the graphical user interface version for Windows 10 and 11.
All three write the same devices: they share the same code for everything but their interface.
4. Requirements
- Linux on x86_64 or arm64 (64-bit ARM). The graphical user interface version also needs a desktop with Wayland or X11, and glibc 2.34 or later (Debian 12, Ubuntu 22.04, Fedora 35, RHEL 9 or later).
- To write a USB memory stick or any other device: udisks2 (installed on every mainstream desktop) with polkit’s permission, or root.
- On Windows: Windows 10 or 11, x64, and administrator rights.
bootmediamaker-tui check tells you whether a Linux machine has everything needed.
5. Installing
Download the archive for your system from the download page: linux-amd64 for x86_64 PCs, linux-arm64 for 64-bit ARM, windows-amd64 for Windows. Each comes with a .sha256 file to check the download (sha256sum -c). The Linux archives hold both the text user interface version of the program and the graphical user interface version; nothing else needs to be installed.
tar xzf bootmediamaker-<version>-linux-amd64.tar.gz
cd bootmediamaker-<version>-linux-amd64
sudo install -D bootmediamaker-tui /usr/local/bin/bootmediamaker-tui
The text user interface version goes to /usr/local/bin, where sudo finds it (sudo does not search your own ~/.local/bin).
To add the graphical user interface version to your desktop’s menu, for your user:
install -D bootmediamaker-gui ~/.local/bin/bootmediamaker-gui
install -D -m 644 bootmediamaker-gui.desktop ~/.local/share/applications/bootmediamaker-gui.desktop
install -D -m 644 bootmediamaker-gui.svg ~/.local/share/icons/hicolor/scalable/apps/bootmediamaker-gui.svg
6. Using the text user interface version
Run it with sudo, without arguments, for the interactive interface:
sudo bootmediamaker-tui
sudo gives it the right to write the target device. On a desktop, it can also run without sudo: it then opens the device through udisks2, the desktop’s disk service, which may ask for your password.
It walks you through six steps: choose the ISO, choose the target device (typically a USB memory stick), set the options (mode, partition scheme, an optional data partition, volume label, verification), review the plan, confirm, write. bootmediamaker-tui --plain asks the same questions on plain lines of text. Options explains every option in detail: file mode or block mode, MBR or GPT, when a data partition is worth having.
From the command line or a script:
bootmediamaker-tui list # candidate target devices
bootmediamaker-tui scan debian-13.7.0-amd64-DVD-1.iso # what a write would do (no root needed)
bootmediamaker-tui write --dry-run debian-13.7.0-amd64-DVD-1.iso /dev/sdb # the plan, nothing written
sudo bootmediamaker-tui write --yes --data-partition debian-13.7.0-amd64-DVD-1.iso /dev/disk/by-id/usb-...
Useful options of write:
--mode auto|file|block,--scheme mbr|gpt,--data-partition,--label NAME,--no-verify;--verbosefor the plan in full detail (every file rewritten, added or replaced);--jsonfor machine-readable output.
The exit code tells scripts what went wrong; bootmediamaker-tui --help lists the codes, and bootmediamaker-tui write --help every option of write.
7. Using the graphical user interface version
bootmediamaker-gui shows one window: choose the ISO with your desktop’s file dialog, choose the target device in the list (a USB memory stick or any other device you plug in appears there by itself), set the options, and press START. Each option has an (i) button that explains it. START shows the plan of the write, with the device’s name and size and the warning that its data will be lost; WRITE writes it, then verifies it.
It runs as you. When you press START, it asks for the right to write the device through udisks2 (often your password, as polkit’s rules decide); without udisks2, or if polkit refuses, it asks for administrator rights through pkexec.
8. On Windows
The windows-amd64 archive (bootmediamaker-<version>-windows-amd64.zip) holds bootmediamaker-gui.exe: the same window, for Windows 10 and 11 (x64). It is a single file, with nothing to install: extract the archive and run it. Writing a device needs administrator rights, so the program asks for them (User Account Control) when it starts. It writes the same devices as on Linux, in file mode or block mode, and refuses the same disks: only USB and removable flash ones, never the disk holding Windows. On Windows there is no text user interface version.
Like most programs not signed with a commercial certificate, it may make Windows SmartScreen warn the first time it is run from a download.
9. Checking a release
Release archives are reproducible: anyone can rebuild them from the release’s source archive and get the exact same binaries. So you don’t have to trust the downloaded programs, only their source code, which can be read and audited: a rebuild proves the programs were built from that source and nothing else. You need make and Docker:
tar xzf bootmediamaker-<version>-source.tar.gz
cd bootmediamaker-<version>-source
make rebuild
cd dist/rebuild
sha256sum -c /path/to/downloaded/bootmediamaker-<version>-linux-amd64.tar.gz.sha256 \
/path/to/downloaded/bootmediamaker-<version>-linux-arm64.tar.gz.sha256 \
/path/to/downloaded/bootmediamaker-<version>-windows-amd64.zip.sha256
Each archive must say OK. docs/developer/releasing.md explains how this works.