fsimg review: a tar-style tool for FAT, exFAT and ISO images, and we ran it on Linux

By Lounes Hareb16 views
  • Open Source
  • Developer Tools
fsimg review: a tar-style tool for FAT, exFAT and ISO images, and we ran it on Linux

fsimg is a command-line tool by Stanislav Sedov (GitHub user stass) that treats a disk image like a tar archive. You list it, read one file from it, extract it or build a new one, and you never mount it or need root. The README says it handles FAT, exFAT, ISO 9660, EROFS, HFS Plus, QNX and an experimental APFS, and runs on 64-bit Linux, FreeBSD and macOS. It is licensed BSD-2-Clause. GitHub shows the repository was created on October 20, 2026, and the first release, v0.1.0, came out on November 28. It had 6 stars on December 5, after a Show HN post.

What the project says

The commands follow tar: fsimg cf creates an image from a folder, tf lists, xf extracts, xOf prints one file to the screen, and Wdf verifies the structure and reads every file. The README also describes reproducible builds with -R, a -M option that searches for the smallest image, and an OS sandbox for untrusted images where the system supports one. It says extraction never merges into or overwrites existing files.

What we ran

We downloaded the v0.1.0 source tarball and checked its SHA-256 against the value GitHub lists. On Ubuntu 22.04 it configured and built with gcc in about 25 seconds, and the configure step asked for nothing we lacked. We ran the README's quick start first: an exFAT image with one text file, listed, read back and extracted. It worked, and cmp found the copy identical.

For a bigger test we took 326 files from a Rust project's source tree (6.9 MB, the largest file 1.2 MB) and built three images:

  • FAT32, 32.5 MiB. fsimg Wdf reported "filesystem structure and initialized file data verified (326 files, 30 directories)". fsck.fat -n from dosfstools 4.2 found no problem; its count of 356 files includes the 30 directories. Extracting gave SHA-256 sums identical to the originals.
  • ISO 9660, 7.0 MiB. fsimg verified it, and so did a different tool: p7zip 16.02 listed 326 files, extracted them, and every hash matched.
  • exFAT, 6.7 MiB. fsimg verified and extracted it with identical hashes. The p7zip we had is too old to read exFAT, so we have no second tool's opinion here.

Two more checks. Building the same FAT32 image twice with -R gave the same SHA-256, while two builds without it, two seconds apart, did not. Extracting into a folder that already existed was refused with "cannot create extraction directory ... File exists". With -S required, which demands OS confinement, fsimg stopped and made no image, because our machine has no supported sandbox.

Rough edges we hit

Without a sandbox, every command prints "OS sandbox unavailable; continuing without confinement". Building and extracting printed a count of metadata fields that "could not be preserved exactly". With -vv the examples were modification and access time. We did not check how far the times differed from the originals. The -M option made no difference to the exFAT image size here.

Not tested

We did not test EROFS, HFS Plus, QNX or APFS, mounting an image in an operating system, Windows or macOS readers, real disk devices, compressed or partitioned images, the sandbox, or large images. We ran each command once.

Our take

Judging from this run, fsimg does what its README says for the three formats we tried: images that two other tools accepted and that gave back identical files, without root. The project was created in October and is at version 0.1.0, and its own to-do file still lists release checks. It is worth trying if you build images for embedded boards, test ISO contents, or need to read a file from an image without mounting it. We would not use it as the only tool for images that matter until more people have tried it.

Cover: montage by Freewares.org. Terminal output of our own runs, typeset. fsimg is by Stanislav Sedov, github.com/stass/fsimg. December 5, 2026.

Share this article