usbimager(8)
π NAME π
okay so bestie, meet usbimager β literally the usbimager(8) manual page for a super simple GUI app that writes compressed image files to USB devices and creates backups. Itβs giving tiny-utility, zero-bloat, main-character energy β¨
π SYNOPSIS π
usbimager [-Lxx] [-v|-vv] [-0..9] [-msize] [-a] [-f] [-s[baud]|-S[baud]]
[-Fxlfd] <backup path>
πΈ DESCRIPTION πΈ
usbimager is a really really simple GUI application that writes compressed disk images to USB drives and creates backups. Its interface is as simple as it gets, totally bloat-free. π
Flags can be given separately, like usbimager -v -s -2, or at once, like usbimager -2vs β the order doesnβt matter. For flags that set the same thing, only the last one is taken into account (for example, -124 is the same as -4). No cap.
The first non-flag argument is used as the directory where the backups are saved. π«Ά
β¨ OPTIONS β¨
-Lxxβ the last two characters of this flag can be"en","es","de","fr", etc. Using this flag forces a specific language dictionary and avoids automatic detection. If thereβs no such dictionary, then English is used. π-v,-vvβ enable verbose mode.usbimagerwill print out detailed information to the standard output, so run this from a terminal. π-0,-1,-2,-3,-4,-5,-6,-7,-8,-9β these flags set the buffer size to the power of two Megabytes (0 = 1M,1 = 2M,2 = 4M,3 = 8M, ...9 = 512M). When not specified, buffer size defaults to 1 Megabyte. The image file will be processed in this big chunks. Keep in mind that the actual memory requirement is threefold, because thereβs one buffer for the compressed data, one for the uncompressed data, and one for the data read back for verification. π-msizeβ specify the maximum disk size in Gigabytes. Disks larger than this will be considered too big and will be filtered out. For example-m1024allows selecting all disks that are smaller than 1 Terrabyte. Defaults to256G. π-aβ list all devices, even the ones that are considered too big or normally filtered out as system disks. π-fβ force write. By default the data is read from the device, compared to the buffer, and only written if they differ. This is good for devices with limited write cycles, slow write speed, but fast reading. This flag turns this comparision off, and always writes the data. π₯-s|-s<baud>β if you start with this flag, thenusbimagerwill allow you to send images to serial ports as well. For this, your user has to be the member of the"uucp"or"dialout"groups (differs in distributions). In this mode the client must wait for the first byte, and then read the others with a timeout. When the timeout occurs, the image is received. π¦-S|-S<baud>β similar to the previous mode, butusbimagerwill do a raspbootin handshake on the serial line. It waits until the client sends three Ctrl+C ("\003\003\003"). Then it sends the size of the image in 4 bytes little-endian format. Then the client responds with 2 bytes, being either"OK"or"SE"(size error). If the response wasOK, thenusbimagersends the image. This mode is useful to send kernel images to Raspberry Pi computers. Valid baud rates:57600,115200,230400,460800,500000,576000,921600,1000000,1152000,1500000,2000000,2500000,3000000,3500000,4000000. β-Fxlfdβ X11 versions only. Normally the default (primary) X11 font is used, but some distros ship a default font with only Latin letters. In this case you can select the preferred X11 font with all the UNICODE glyphs manually using this flag. Only"iso-10646-1"encoding supported, for example:
./usbimager "-F-*-*-*-r-*-*-18-*-*-*-*-*-iso10646-1" -v
Because missing X11 fonts is a constant problem, you can also compile USBImager to embed GNU Unifont, and then no X11 fonts and no fontconfig needed at all. This increases the binary about 512k. When Unifont is embedded, then this -F flag isnβt available. π§
π¦ INTERFACE π¦
Thereβs only one window with the following fields:
- 1st row Image β selects the image file.
- 2nd row Actions β
"v Write"out image file or"^ Read"in backup. - 3rd row Device β selects the device.
- 4th row Options β verify write, compress output and buffer size respectively.
- 5th row Progress β the progress bar.
- 6th row Status β textual operation status.
π Writing Image File to Device π
- select an image by clicking on
"..."in the 1st row - select a device by clicking on the 3rd row
- click on the first button (Write) in the 2nd row
π Creating Backup Image File from Device π
- select a device by clicking on the 3rd row
- click on the second button (Read) in the 2nd row
- the image file will be saved on your Desktop, its name is in the 1st row
The generated image file will be saved on your Desktop, in the form "usbimager-(date)T(time).dd", using the current timestamp. If "Compress" option is checked, then a .zst suffix will be added, and the image will be compressed using ZStandard. If ~/Desktop is not found, then ~/Downloads will be used. If even that doesnβt exists, then the image will be saved in your HOME directory. π
π ENVIRONMENT π
LANGβ used to detect the interfaceβs language.HOMEβ to get the userβs home directory.XDG_USER_DATAβ to get the location of the recently used files bookmark.
If XDG_USER_DATA is not set, then usbimager fallbacks to "$HOME/.local/share". π«Ά
π AUTHORS π
- libui: Pietro Gagliardi
- bzip2: Julian R. Seward
- xz: Igor Pavlov and Lasse Collin
- zlib: Mark Adler
- zstd: see
http://www.zstd.net - zip format: bzt (no PKWARE-related lib nor source was used in this project)
- usbimager: bzt
β SEE ALSO β
π SOURCE π
To get the source for usbimager visit https://gitlab.com/bztsrc/usbimager
okay thatβs literally the whole page, bestie β cute little footer vibes: source/version by Bzt, dated Mar 2023, page usbimager(8). πβ¨π«Ά
π¦ where this page comes from
- nixos 26.05: usbimager 1.0.10
- nixpkgs unstable: usbimager 1.0.10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms