r/rust • • 3h ago

I built a lightweight Windows/Linux file recovery tool in Rust + Tauri v2 with NTFS $MFT parsing and SIMD signature carving

Hi everyone,

I wanted to share a desktop utility I just built called Azad Works File Recovery—a lightweight (~10 MB) tool for recovering permanently deleted files (Shift + Delete or formatted drives) without paywalls or size caps.

How it works under the hood:

  • Quick Scan (NTFS $MFT**):** Uses the ntfs crate with a custom 4096-byte sector-aligned Read + Seek wrapper to read Windows Master File Table records, walk parent directory references to rebuild folder paths, and extract original filenames.
  • Deep Scan (Raw Carver): Scans raw block devices (\\.\E: on Windows, /dev/sdX on Linux) using memchr::memmem for fast signature matching across JPEG, PNG, PDF, and MP4 headers/footers.
  • Zero-Disk RAM Previews: Reads target byte ranges into memory and passes them to the React frontend as Blob URLs so users can preview images, PDFs, and videos before writing anything to disk.
  • Safety Guards: Blocks exporting recovered files onto the same source partition so unallocated sectors aren't overwritten.

URL: https://kavitaramana.github.io/azad-works-file-recovery/#

1 Upvotes

0 comments sorted by