Skip to content

libre-tools/usbflasher

USB Flasher

A modern, fast, and reliable USB flashing utility for Linux, built with Rust and GTK4 + Libadwaita. Inspired by Balena Etcher but native and lightweight.

Features

  • Flash ISOs/Images: Quickly flash OS images to USB drives and SD cards.
  • Restore Drive: Wipe blocks and restore a drive to a standard FAT32 partition to reclaim full capacity.
  • Verify: Automatic SHA256 verification to ensure data integrity.
  • Modern UI: Clean, adaptive interface using GNOME's Libadwaita.
  • Privileged Helper: Uses pkexec for secure, isolated operations.

Compatibility Note

  • Linux Distros: Full support for standard hybrid ISOs (Debian, Ubuntu, Fedora, Arch, etc.).
  • Windows ISOs: Not Supported. Windows ISOs require specific partition schemes (like WoeUSB) which this tool does not currently perform. Flashing a Windows ISO directly will typically result in a non-bootable drive.
  • macOS Images: Not Supported. Proprietary macOS installer formats are not supported.

Installation

Debian/Ubuntu (.deb)

Download the latest .deb from the Releases page.

sudo apt install ./usbflasher_*.deb

Building from Source

Prerequisites

You need Rust, Cargo, and GTK4 development libraries.

# Ubuntu/Debian
sudo apt install build-essential libgtk-4-dev libadwaita-1-dev cargo

Build & Run

git clone https://github.com/libre-tools/usbflasher.git
cd usbflasher
cargo run --release

Creating the Debian Package

cargo install cargo-deb
cargo deb

The output will be in target/debian/.

Usage

  1. Select Image: Click "Flash from File" to choose your .iso or .img file.
  2. Select Drive: Choose the target USB drive from the dropdown.
  3. Flash: Click the "Flash" button. You will be prompted for your password to authorize the write operation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A modern, native USB/SD card flashing tool for Linux built with Rust, GTK4, and Libadwaita.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published