DiskRead




A program that allows you to read raw chunks of a disk or a file.

DiskRead aims to replace xxd or hexdump present on Linux, but for Windows. Furthermore, the low-level WinAPI functions enable DiskRead to access any file, including boot sectors and disks, both for reading and writing. By operating at the sector level, it allows developers and system administrators to inspect raw data structures, perform low-level backups, and analyze filesystem corruption directly from the command line without interference from the operating system's standard file locks.



Usage


diskread <drive | file> [-b <bytes per line>] [-e <export file>] [-h] [-o <offset>] [-s <read size>] [-u] [-x] [-y]

Switches

Example usages




Why use DiskRead?


DiskRead is a tiny and fast program, yet powerful, portable, and easy to use. It's the perfect tool for backing up the boot sector, viewing the raw data of files and disks, or using it as a hexadecimal dumping tool for Windows. Unlike graphical hex editors that may struggle with massive drives or require installation, DiskRead operates seamlessly in constrained environments and batch scripts. It bridges the gap for users who need a robust, native WinAPI solution for inspecting system internals or recovering overwritten sector data.



Compatibility


DiskRead is highly compatible across Windows environments, ranging from the old Windows XP to the latest version, Windows 11.



Article


If you want to dive deeper into the history and technical details of the project, some time ago I wrote an article on Batch-Man explaining an older version of DiskRead in-depth. Read the article here.



Contributing


If you found a bug or want to add a new feature, don't hesitate to create a pull request or an issue! Contributions are greatly appreciated.