Defraginator
github.com
- Windows
- macOS
- Linux
What Defraginator is
Defraginator is a free, GPL-3.0 desktop app for defragmenting .bin ROM and firmware images on SD cards and other removable media. It runs on Linux, macOS, and Windows across multiple filesystems. The app detects mounted removable volumes, scans recursively for .bin files matching enabled sizes of 256 KB, 512 KB, 1024 KB, or 2048 KB, checks physical cluster layouts, and relocates fragmented files into contiguous free space. Windows uses filesystem controls to move clusters in place and requires administrator rights. Linux and macOS rewrite files into new space and verify physical extents; Linux’s FIBMAP fallback requires root, while listed macOS operations run as a normal user. The project says failed rewrites restore the original file and success is reported only after verification. A contiguous free gap at least as large as the file is required. Users should not remove media during processing. The .NET 10 SDK is required to build and run it.
Who it suits
Defraginator suits users managing ROM or firmware images on removable media who need physically contiguous files. It is intended for Linux, macOS, and Windows users comfortable running a .NET application.
Good to know, and what to watch
- Free and GPL-3.0 licensed
- Supports Linux, macOS, and Windows
- Scans selectable target file sizes
- Verifies physical contiguity
- Restores originals after failed rewrites
- Windows moves require administrator rights
- Linux FIBMAP fallback requires root
- Needs a contiguous free gap
- Requires the .NET 10 SDK
The verdict
Defraginator provides a narrowly focused way to consolidate selected .bin images on removable storage. Its platform-specific permissions and free-space requirement should be checked before operation.
What the maker publishes
- Build requirement
- The README lists the .NET 10 SDK as a requirement and provides instructions to build and run the app from source. source
- Data safety
- The README says the file data remains present during defragmentation and that unsuccessful rewrites restore the original file. source
- Drive scanning
- It detects mounted volumes that look like removable media and recursively scans them for matching files and their physical cluster layouts. source
- File selection
- It scans for `.bin` files that match enabled target sizes of 256 KB, 512 KB, 1024 KB, or 2048 KB. source
- Free-space limit
- A file can only be made contiguous when the drive has a single free gap at least as large as that file; Linux and macOS show the largest free block as unknown. source
- License
- The repository identifies the project as GPL-3.0 licensed. source
- License
- The repository identifies its license as GPL-3.0. source
- Linux and macOS method
- On Linux and macOS, it rewrites files into freshly allocated space and checks whether each occupies one physical extent. source
- Linux and macOS support
- On Linux and macOS, it rewrites files and verifies their physical extent layout; Linux’s FIBMAP fallback requires root, while the listed macOS operations run as a normal user. source
- Operating caution
- Users are told not to remove the card while defragmentation is in progress. source
- Permissions
- Windows cluster moves require administrator rights; Linux normally runs as a regular user except for the FIBMAP fallback, which requires root, and macOS runs as a regular user. source
- Purpose
- Defraginator is a cross-platform desktop app for defragmenting `.bin` ROM and firmware images on SD cards and other removable media. source
- Purpose
- Defraginator is a desktop app that defragments split .bin ROM and firmware images on SD cards and other removable media. source
- Runtime requirement
- The repository lists the .NET 10 SDK as a requirement and provides build-and-run commands. source
- Safety
- The README says the original file is restored if contiguous placement fails on Linux or macOS, and success is reported only after physical contiguity is verified. source
- Scope limit
- The tool only touches .bin files matching a selected target size. source
- Space requirement
- Defragmentation requires a contiguous free gap at least as large as the file; the app reports free space and, on Windows, the largest contiguous free block. source
- Target files
- It scans .bin files exactly 256 KB, 512 KB, 1024 KB, or 2048 KB in size, with each target size independently toggleable. source
- Windows method
- On Windows, it finds contiguous free clusters and moves file clusters in place using filesystem control operations. source
- Windows support
- On Windows, it uses filesystem controls to find contiguous free clusters and move file clusters in place; moving clusters requires administrator rights. source
- Workflow
- The app detects mounted removable volumes, recursively scans matching files, checks their physical cluster layout, and relocates fragmented files into contiguous free space. source
Checked against the maker's pages on 8 Oct 2026.