bmaptool
Flash disk images efficiently using block maps
TLDR
Copy an image to a device using bmap
SYNOPSIS
bmaptool command [options] [arguments]
DESCRIPTION
bmaptool is a utility for creating block maps (bmap) and copying images to block devices efficiently. It only writes data blocks, skipping empty or zero-filled areas, making it significantly faster than dd for sparse images.
The tool provides integrity verification using SHA256 checksums and includes safety features to prevent accidental writes to mounted devices. It supports compressed images and can decompress on-the-fly during copy operations.
PARAMETERS
--bmap file
Path to the bmap file (auto-detected if not specified)--nobmap
Copy without using bmap (entire image is written)-o, --output file
Output file for create command--no-verify
Skip SHA256 checksum verification--no-sig-verify
Skip OpenPGP signature verification
SUBCOMMANDS
copy
Copy an image file to a block device using bmapcreate
Generate a bmap file for an image
CAVEATS
Requires root privileges for writing to block devices. The bmap file must match the image file; mismatches cause verification failures. Protection mechanisms prevent writing to mounted devices. Without a bmap file, the tool falls back to copying the entire image like dd.
HISTORY
bmaptool was developed by the Yocto Project and Intel for efficient embedded Linux image deployment. It was designed to address the slow and unsafe nature of using dd for flashing large disk images, particularly those with significant empty space.
