Options

What the options mean and how to choose.

bootmediamaker asks for five options before it writes a device. They are the same everywhere: on the options screen of the text user interface version of the program (bootmediamaker-tui), as questions in the plain mode (bootmediamaker-tui --plain), in the “Options” section of the graphical user interface version (bootmediamaker-gui, where each one has an (i) button with a short description), and as options of bootmediamaker-tui write.

In this page, the “device” is the target of the write: most often a USB memory stick, but also an SD or microSD card in a card reader, or another removable flash device.

OptionChoices (default first)Command line
Modeauto, file, block--mode auto|file|block
Partition schemeMBR, GPT--scheme mbr|gpt
Data partitionoff, on--data-partition
Volume labelthe ISO’s own label--label NAME
Verificationon, off--no-verify

The defaults suit almost everyone: if you are unsure, keep them. The summary at the end says when to change each one.

Mode: auto, file or block

The mode decides how the ISO gets onto the device. There are two ways, and both give a device that boots.

File mode

In this mode, bootmediamaker creates a new partition table and a FAT32 filesystem on the device, then copies the files inside the ISO onto it, one by one. It adapts the few files that have to change for the system to boot from a USB device instead of a DVD (for example the label in the boot menu’s configuration), and installs the boot code for older BIOS computers when the ISO allows it.

Say you write the 3.7 GiB Debian DVD ISO to a 32 GB device in file mode. The plan shows:

Steps:
  - erase the old partition table of /dev/sdb
  - create a new MBR partition table
  - create partition 1: FAT32 "DEBIAN 13_7", 29.8 GiB
  - copy 6999 files (3.9 GiB) from the ISO
  - add /isolinux/syslinux.cfg
  - replace 4 syslinux modules with matching ones
  - install syslinux 6.04-pre1, for BIOS boot
  - verify: read every file back and compare it with the ISO
Result:
  - the stick boots with UEFI and BIOS
  - about 25.9 GiB stay free for your own files

The device then holds an ordinary FAT32 partition, which Linux, Windows and macOS all open and write. You can use the free space for your own files, and you can see and edit the boot files (to add a kernel option to the boot menu, for example).

Block mode

In this mode, bootmediamaker copies the ISO byte for byte, from its first byte to its last, onto the start of the device. The device becomes an exact copy of the image, with the partition table and filesystem the publisher of the ISO made. (Other tools call this “DD mode”, after the dd command, or “raw” writing.)

The same Debian ISO in block mode:

Steps:
  - copy the image byte for byte to the start of /dev/sdb
  - erase the last 1.0 MiB (old partition table backups)
  - verify: read the 3.7 GiB back and compare it with the image
Result:
  - the stick is an exact copy of the image
  - the other 26.1 GiB of the device stay unused

The device boots exactly as the ISO does on a DVD, but it is read-only (an ISO 9660 filesystem, made for DVDs), and the rest of its capacity is wasted until you reformat the device.

Auto (the default)

In this mode, bootmediamaker looks inside the ISO and chooses for you: file mode whenever bootmediamaker knows the ISO boots that way, block mode otherwise, and the plan says why. bootmediamaker knows how the main families of ISOs boot, and handles others with generic rules: when an ISO finds its files in a way bootmediamaker cannot adapt, auto writes it in block mode rather than make a device that would not boot.

For Windows installation ISOs, auto never uses block mode: a Windows ISO copied byte for byte does not boot from a USB device. If file mode is not possible, auto refuses the ISO and says why. Tails’ ISOs, made for DVDs, boot from a device in neither mode: auto refuses them too, and points to Tails’ USB image (.img), which bootmediamaker writes as it is.

File mode or block mode: the differences

File modeBlock mode
Free space on the deviceusable for your own fileslost (until you reformat the device)
Device seen from Windows, macOS, Linuxan ordinary FAT32 drive, readable and writablea read-only, DVD-like filesystem
Boot filescan be read and editedread-only
How faithful the copy isthe ISO’s files, a few adapted for USBexact: what the publisher made
Legacy BIOS bootfor ISOs that boot BIOS computers with syslinux/isolinux (Debian, Linux Mint, Arch Linux…); ISOs that use GRUB for it (Ubuntu, Fedora…) boot with UEFI onlywhenever the ISO itself supports it
Windows installation ISOsyes (UEFI only)no: the device does not boot
ISOs that hold a file larger than 4 GiB (e.g. Kubuntu)no: FAT32 cannot hold such a fileyes

When to choose file mode or block mode yourself

Keep auto unless one of these applies.

Choose block mode when:

  • a device written in file mode does not boot on a particular computer. Some firmware is fussy; the exact copy is the copy the publisher tested.
  • you need legacy BIOS boot for an ISO whose plan says “the stick boots with UEFI only”. For example, Ubuntu’s BIOS boot uses GRUB, which bootmediamaker does not install, so an Ubuntu ISO written in file mode boots only on UEFI computers. In block mode it boots on both.
  • the ISO is not a Linux installer or live system: BSD systems, firmware updaters, appliance images. bootmediamaker knows nothing about how they boot from their files.
  • you want to check the device later against the ISO’s published checksum: sudo bootmediamaker-tui verify image.iso /dev/sdX compares the device with the image, byte for byte. (On a file-mode device, the same command compares the device’s files with the image’s instead, except the few boot files bootmediamaker changes when writing.)

Choose file mode when auto chose block mode but you want to try file mode anyway. bootmediamaker refuses if it knows file mode cannot work, and says why; otherwise it writes the device, and you can test whether it boots.

Partition scheme: MBR or GPT

The partition table is the small table at the start of the device that says where its partitions are. There are two kinds:

  • MBR (the default): understood by every computer, old BIOS computers as well as UEFI ones. Its one limit is 2 TiB, far more than any USB memory stick holds.
  • GPT: the modern table, required for disks larger than 2 TiB. bootmediamaker chooses it by itself above 2 TiB. A FAT32 partition holds at most 2 TiB, so on a larger device the space after it stays unused, unless a data partition takes it. UEFI computers boot from it. Old BIOS computers boot from it through a small piece of boot code (syslinux’s gptmbr.bin), but some old BIOSes refuse to boot any GPT disk.

Keep MBR, unless a particular computer insists on GPT. The scheme is not used in block mode, which keeps the image’s own partition table.

Data partition

This option is not enabled by default. Without it, the device gets one FAT32 partition over its whole capacity, holding the ISO’s files, with the rest free for yours.

With “Create an additional exFAT data partition on the device” checked (--data-partition), the device gets two partitions:

Steps:
  - create partition 1: FAT32 "DEBIAN 13_7", 4.6 GiB, for the ISO's files
  - create partition 2: exFAT "DATA", 25.2 GiB, for your own files
  • Partition 1 is the boot partition: FAT32, just large enough for the ISO’s files, plus 10 % and 256 MiB for later changes (at least 1 GiB). It boots exactly as the single partition would.
  • Partition 2, labelled DATA, takes the rest of the device. It is exFAT, which has no 4 GiB limit on file sizes.

Why you might want it:

  • Files larger than 4 GiB. FAT32 cannot hold a file of 4 GiB or more: a film, a virtual machine disk, a backup archive, another ISO. exFAT can.
  • Keeping your files apart from the system’s. Your files are not mixed with the hundreds of files of the ISO, and you cannot delete a boot file by mistake while tidying up.

What to keep in mind:

  • Windows (since Vista SP1), macOS (since 10.6.5) and Linux (kernel 5.7 and later, so any current distribution) read and write exFAT. Very old systems, and some TVs or car radios, do not.
  • Writing a device again with bootmediamaker erases both partitions, data partition included: copy your files elsewhere first.
  • The boot partition has little free space left: put your files on DATA.
  • The device must hold the boot partition plus at least 64 MiB, or bootmediamaker refuses the data partition.
  • File mode only: block mode writes the image’s own partition table, so there is no room for a data partition.

Turn it on if you want to keep large files on the device; otherwise the single partition is simpler, and its free space is just as usable for files under 4 GiB.

Volume label

The name of the device’s FAT32 partition, as your file manager shows it. FAT32 allows at most 11 characters: upper-case letters, digits and !#$%&'()-@^_ ` {}~. A label you type cannot hold a space: many boot configurations name the label without quotes (root=live:CDLABEL=...), where a space would cut it in two and the system would not find its files. The ISO’s own label may keep its spaces, as its configurations expect them.

It starts as the ISO’s own label, shortened and changed to fit FAT32 when needed (nixos-graphical-26.05-x86_64 becomes NIXOS-GRAPH). Many live systems find their files on the device by this label, so when it changes, bootmediamaker rewrites the label in the boot menu’s configuration too, and the plan lists those files. If an ISO refers to its label in a way bootmediamaker cannot rewrite, the plan says so, and a label of your own is refused for that ISO.

Keep the default unless you need to tell several devices apart. Not used in block mode, which keeps the image’s own label.

Verification

On by default: once the device is written, bootmediamaker reads everything back and compares it with the ISO.

  • In file mode, it reads the device with its own FAT32 reader, file by file, and compares each file with the ISO’s (and each adapted file with what it should hold).
  • In block mode, it reads back as many bytes as the ISO holds and compares their SHA-256 with the ISO’s.

Before reading, bootmediamaker makes the kernel drop what it remembers of the device, so the comparison reads the device itself, not a copy in memory.

Verification catches devices that lose data: worn-out or faulty USB memory sticks and cards, a bad USB cable or port, and counterfeit devices that claim more capacity than they have. (It checks what was written, not the whole device: it is not a full test of a device’s capacity.) A device that fails verification would otherwise fail later, in confusing ways, in the middle of booting or installing a system.

It adds time, though less than the write took, as USB memory sticks and SD cards read faster than they write. Turn it off (--no-verify) only when you write the same known-good device over and over, for example while testing.

The plan

Before writing anything, bootmediamaker shows its plan, in short lines:

  • Image: the ISO, its size, and the kind of ISO recognised (how it boots);
  • Current state: the device’s name, model and size, and the partitions on it now (with their filesystem, label, and where they are mounted), so you can check this is the device you mean to erase;
  • Steps: what bootmediamaker will do, in order;
  • Result: which computers the device will boot (UEFI, BIOS), and the space left for your files;
  • Notes: anything worth knowing, such as why BIOS boot is not possible, or why auto chose block mode.

bootmediamaker-tui write --dry-run prints the plan without writing, and --verbose adds every detail: the files whose label is rewritten and the rules used, the files added or replaced, the cluster size.

In short

SituationChoose
Most casesthe defaults: auto, MBR, no data partition, the ISO’s label, verification on
The device does not boot on one computerblock mode
You need BIOS boot and the plan says “UEFI only”block mode
You want to keep files of 4 GiB or more on the devicedata partition
A Windows installation ISOauto (file mode is the only way it boots)
Several devices to tell aparta volume label of your own
A device larger than 2 TiBGPT is chosen by itself; a data partition to use the space after the first 2 TiB