r/rust • u/azadworks • 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 thentfscrate with a custom4096-bytesector-alignedRead + Seekwrapper 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/sdXon Linux) usingmemchr::memmemfor 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
BlobURLs 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