r/filesystems • u/stass • 17h ago
fsimg -- a tar-like tool to create/extract FAT, exFAT, HFS+, APFS, QNX and other filesystems
github.comfsimg is a filesystem creation, extraction and verification tool with tar-like ergonomics
Currently it fully supports FAT12/16/32, exfat, APFS, HFS+, QNX6, QNX4, ISO9660 and EROFS filesystems with more planned. It also natively understands MBR, GPT, APM layouts, different compression schemes and can read/write DMG files and Android sparse images.
All via the same simple command line interface.
fsimg tf disk.img # List files
fsimg xOf disk.img /etc/motd # Read one file to stdout
fsimg xf disk.img # Extract into ./disk/
fsimg cf data.img -F exfat -C files . # Create an image from ./files/BSD licensed.
It started as a small tool when I was hacking on car infotainment systems running QNX and grew into generic multi-filesystem tool over time. It has a unified filesystem format interface so new filesystems are straightforward to add.
Main usecases are forensics and OS/systems development. e.g. erXos Erlang OS is using it to create initial FAT32 and erofs root images.
All operations also run fully sandboxed (landlock on Linux, seatbelt on OS X and capsicum on FreeBSD) so it's safe to use on untrusted images.
What filesystems or features would you like see supported next?
