[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107785":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":13,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":14,"starSnapshotCount":14,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},107785,"sectorforge","terraseraph\u002Fsectorforge","terraseraph","Rescue data from failing drives: ddrescue-style imaging, partition detection, NTFS recovery incl. deleted files, and file carving. Portable for Windows and Linux.",null,"Rust",134,12,1,0,5,61,4,53.94,"MIT License",false,"master",true,[24,25,26,27,28,29,30],"data-recovery","ddrescue","disk-imaging","file-carving","ntfs","rust","tauri","2026-11-03 02:23:32","2026-11-23 04:02:25","# SectorForge\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fterraseraph\u002Fsectorforge\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fterraseraph\u002Fsectorforge\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fterraseraph\u002Fsectorforge)](https:\u002F\u002Fgithub.com\u002Fterraseraph\u002Fsectorforge\u002Freleases\u002Flatest)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](LICENSE)\n\n**Download the latest portable app** (nothing to install, just run it):\n**[Windows 10\u002F11 (.exe)](https:\u002F\u002Fgithub.com\u002Fterraseraph\u002Fsectorforge\u002Freleases\u002Flatest\u002Fdownload\u002FSectorForge-windows-x64.exe)** ·\n**[Linux (.AppImage)](https:\u002F\u002Fgithub.com\u002Fterraseraph\u002Fsectorforge\u002Freleases\u002Flatest\u002Fdownload\u002FSectorForge-x86_64.AppImage)** ·\n[command-line tool and checksums](https:\u002F\u002Fgithub.com\u002Fterraseraph\u002Fsectorforge\u002Freleases\u002Flatest) ·\n[notes](#download)\n\nRescue data from a failing hard drive. SectorForge clones the drive\nsector by sector, working around bad areas instead of giving up on them,\nthen finds the partitions and recovers your files from the copy, including\ndeleted ones.\n\nIt brings together ideas from ddrescue, TestDisk\u002FPhotoRec, DMDE and R-Studio\nbehind an interface that explains what it is doing and why. It runs on\nWindows and Linux as a portable app: no installer.\n\n![SectorForge imaging a disk, finding its partition, recovering deleted files and carving by file type](docs\u002Fmedia\u002Fdemo.gif)\n\n## Screenshots\n\nTaken on test images (the NTFS fixture in `crates\u002Fsf-core\u002Ftests\u002Ffixtures`\nand the carving disk from `scripts\u002Fcontract-smoke.ps1`). Serial numbers are\nhidden.\n\n| | |\n|---|---|\n| **Home.** Every attached drive with its partitions, and a flag on any that returned read errors. ![Home](docs\u002Fmedia\u002F01-home.png) | **Drive inspector.** Click a drive for its details and what you can do with it. Here, a real drive that failed a read. ![Drive inspector](docs\u002Fmedia\u002F02-drive-inspector.png) |\n| **Drive details.** Model, serial, size, sector size, connection, and whether it's the system drive. ![Drive details](docs\u002Fmedia\u002F03-drives.png) | **Image a drive.** Two-pass cloning with a live health map. ![Image a drive](docs\u002Fmedia\u002F04-image.png) |\n| **Map viewer.** Open any map file to see what was rescued and where the bad sectors are. ![Map viewer](docs\u002Fmedia\u002F05-map-viewer.png) | **Find partitions.** Reads the table; deep scan finds volumes it no longer lists. ![Find partitions](docs\u002Fmedia\u002F06-partitions.png) |\n| **Browse files.** Real names and folders, with recoverability for each file. ![Browse files](docs\u002Fmedia\u002F07-files.png) | **Deleted files.** Filter to what was deleted, including whole folders. ![Deleted files](docs\u002Fmedia\u002F08-files-deleted.png) |\n| **Extract.** Tick files or folders and copy them to a safe drive. ![Extract](docs\u002Fmedia\u002F09-extract.png) | **Carve.** About 95 file types found by their contents when there's no filesystem. ![Carve](docs\u002Fmedia\u002F10-carve.png) |\n| **Verify.** SHA-256 of an image or drive: the same fingerprint means an identical copy. ![Verify](docs\u002Fmedia\u002F11-verify.png) | **Console.** Every `sf-cli` command the app ran and what it printed (Ctrl+\\`). ![Console](docs\u002Fmedia\u002F12-console.png) |\n\n\n> **If a drive is failing, stop using it.** Every hour it runs can make\n> things worse. Don't install anything onto it, and don't run repair tools\n> (chkdsk, fsck) on it. Copy it first with SectorForge, then recover from the\n> copy.\n>\n> A healthy drive (for example, one with accidentally deleted files) can be\n> recovered from directly, live: pick it as the source on the Recover screen,\n> or pass `\\\\.\\PhysicalDriveN` \u002F `\u002Fdev\u002FsdX` to `scan`, `files`, `extract` and\n> `carve`. Save recovered files to a different drive.\n\n## Download\n\nGet the latest from the **[Releases page](https:\u002F\u002Fgithub.com\u002Fterraseraph\u002Fsectorforge\u002Freleases\u002Flatest)**. It is rebuilt from `master` on every push.\n\n| Platform | File | What it is |\n|---|---|---|\n| Windows 10\u002F11 (x64) | `SectorForge-windows-x64.exe` | The app: one portable exe. Put it anywhere and run it. |\n| Linux (x86_64) | `SectorForge-x86_64.AppImage` | The app. `chmod +x`, then run it. |\n| Windows | `sf-cli-windows-x64.zip` | Command-line tool only. |\n| Linux | `sf-cli-linux-x86_64-static.tar.gz` | Command-line tool only, fully static: runs on any distro. |\n\n`SHA256SUMS.txt` lists checksums for every file.\n\n**Windows notes**\n- The exe isn't code-signed yet, so SmartScreen may warn the first time.\n  Choose *More info → Run anyway*.\n- The recovery engine is built into the exe, so there's nothing else to keep\n  next to it.\n- Reading a physical drive needs Administrator rights. Pick a drive and the\n  app offers *Restart as Administrator*.\n- Uses Windows' built-in WebView2, which is preinstalled on Windows 11 and\n  current Windows 10.\n\n**Linux notes**\n- The AppImage needs FUSE 2. On Ubuntu 22.04+ install it with\n  `sudo apt install libfuse2`.\n- Reading a physical drive needs root. SectorForge asks for your password\n  through `pkexec` (polkit) when a job needs it.\n- Needs glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36, or later).\n  On anything older, use the static command-line tool.\n\n## How to recover a drive\n\n1. **Image.** Pick the failing drive, choose where to save the copy (on a\n   *different*, healthy drive), and start.\n   - The first pass copies everything that reads cleanly and skips damaged\n     areas, so the most data comes off before the drive gets any worse.\n   - The second pass goes back and retries the damaged areas sector by\n     sector.\n   - The **drive health map** shows what's been rescued, what's being\n     retried, and what's bad.\n   - You can pause and resume at any time. The *map file* records what's\n     been copied, so keep it with the image.\n2. **Partitions.** Point it at the image. It reads the partition table, and\n   with *Deep scan* it also searches the whole image for filesystems that\n   the table no longer lists (damaged or deleted partitions).\n3. **Recover.**\n   - **Files** (NTFS, FAT, exFAT, ext) lists every file and folder with its real name and\n     path, including deleted ones, and tells you which can be fully\n     recovered. Tick what you want and extract it.\n   - **Carve** finds files by their contents (photos, documents, archives,\n     videos) when there's no usable filesystem at all. Files come back\n     without their original names.\n\nSectorForge refuses to write anything onto the drive it's reading from, and\nit only ever *reads* the source drive.\n\n## Features\n\n- **Imaging:** two-pass, ddrescue-style cloning with bad-sector isolation,\n  pause\u002Fresume, and a progress map saved every 5 seconds. The map uses\n  ddrescue's format, so `ddrescueview` can open it too.\n- **Direct hardware access:** reads the raw drive, bypassing the OS cache\n  (`FILE_FLAG_NO_BUFFERING` on Windows, `O_DIRECT` on Linux), or works on an\n  image file.\n- **Partitions:**\n  - MBR, including extended\u002Flogical partitions.\n  - GPT, checksum-verified, with fallback to the backup header.\n  - Disks with no partition table.\n  - Signature scan for NTFS, FAT12\u002F16\u002F32, exFAT and ext2\u002F3\u002F4.\n- **NTFS recovery:**\n  - Reads the MFT directly: deleted files, fragmented files, sparse files,\n    and hard links stored in attribute lists.\n  - Rebuilds full paths.\n  - Checks whether a deleted file's space has since been reused.\n- **FAT12\u002F16\u002F32 and exFAT recovery:**\n  - Long file names, deleted files and deleted folders.\n  - A bad sector in the first FAT is read from the backup copy.\n  - Deleted FAT files are read as one piece from their first cluster (FAT\n    erases the map of where the pieces were); reused clusters are flagged.\n- **ext2\u002F3\u002F4 recovery:**\n  - Live files through extent trees or ext2 block maps.\n  - Deleted names left in directory slack; recoverable only when the freed\n    inode still says where the data is (ext3\u002Fext4 usually erase that).\n- **Carving:**\n  - About 95 file types (`sf-cli carve --list-types`): photos and camera raws\n    (JPEG, PNG, HEIC, TIFF, CR2\u002FCR3, NEF, ARW, DNG…), documents (PDF, Office\n    old and new, OpenDocument, RTF, EPUB…), audio, video, archives,\n    executables, fonts, mail stores (PST\u002FOST), registry hives and event logs.\n  - Each file's end is found from its own structure rather than guessed.\n- **Honest results:**\n  - Pass the imaging map to recovery, and any file overlapping a sector that\n    was never rescued is marked *partial* instead of silently containing\n    blanks.\n  - Recovered names are sanitized, so nothing can be written outside the\n    output folder.\n\n## Command line\n\nEverything the app does is available from `sf-cli`. Add `--json` to any\ncommand for machine-readable output (see the [JSON contract](docs\u002Fcli-contract.md)).\n\n```powershell\nsf-cli devices                                   # list drives (no admin needed)\n\n# Clone a drive (as Administrator \u002F root). Re-run the same command to resume.\nsf-cli image --source \\\\.\\PhysicalDrive1 --dest E:\\rescue\\disk.img --map E:\\rescue\\disk.map\nsf-cli status --map E:\\rescue\\disk.map           # progress at any time\n\nsf-cli scan --source E:\\rescue\\disk.img          # partitions (add --deep to hunt for lost ones)\n\n# NTFS\u002FFAT\u002FexFAT\u002Fext: list files incl. deleted (partition start LBA comes from scan), then extract by id\nsf-cli files   --source E:\\rescue\\disk.img --partition-lba 2048 --map E:\\rescue\\disk.map\nsf-cli extract --source E:\\rescue\\disk.img --partition-lba 2048 --ids 4211,5120 --out F:\\recovered\n\n# No filesystem? Recover by file signature:\nsf-cli carve --list-types\nsf-cli carve --source E:\\rescue\\disk.img --out F:\\carved --types jpg,pdf,docx\n```\n\nOn Linux, drives are `\u002Fdev\u002FsdX` or `\u002Fdev\u002Fnvme0n1`. Any source starting with\n`\\\\.\\` or `\u002Fdev\u002F` is read as a physical drive; anything else as an image file.\n\n## Status and limitations\n\nSectorForge is young. The engine is well tested against simulated failing\ndrives, a real Windows-formatted NTFS volume (every recovered file is checked\nbyte for byte against the original), and real files made by standard tools.\nBut:\n\n- **Reading a physical drive end to end hasn't been tested yet**, on either\n  platform. Listing drives and the safety checks have run on real hardware;\n  imaging a real drive is next. On Linux, raw-device reads are tested in CI\n  against loop devices, not real disks.\n- NTFS-compressed and encrypted files are listed and flagged, but not\n  decoded yet.\n- Deleted files on FAT are assumed to be stored in one piece; a fragmented\n  deleted file comes back with other data in its later parts. On ext3\u002Fext4,\n  deleted files usually can't be located by the filesystem at all: carve\n  instead.\n- FAT timestamps are local time with no zone; they're shown as if UTC.\n- ext: symlinks, devices and inline data larger than 60 bytes aren't\n  recovered; fscrypt-encrypted files are copied still encrypted.\n- Carving doesn't reassemble fragmented files.\n- If a deleted file's space was reused, what's recovered is whatever is\n  there now (it's flagged, not hidden).\n- On Windows Storage Spaces, the \"don't write to the source drive\" check sees\n  the virtual disk rather than its member drives.\n- A power cut during imaging can lose recent progress. Killing the program\n  can't: at most the last 5 seconds are redone.\n\nPlease report problems in the [issue tracker](https:\u002F\u002Fgithub.com\u002Fterraseraph\u002Fsectorforge\u002Fissues).\nBack up anything you recover, and if the data is irreplaceable and\nthe drive is clicking or not spinning up, consider a professional recovery\nlab before running *any* software on it.\n\n## Building from source\n\nRequirements: Rust (stable) and Node.js 22. On Linux you also need the Tauri\nsystem libraries listed in [`gui\u002FREADME.md`](gui\u002FREADME.md).\n\n```bash\ncargo build --release -p sf-cli          # the engine + CLI\ncargo test --workspace                   # engine tests\n\ncd gui\nnpm ci\nnpm test && npm run build                # GUI frontend\nnpx tauri dev                            # run the app (finds ..\u002Ftarget\u002Frelease\u002Fsf-cli)\n```\n\nRelease packages are built by [GitHub Actions](.github\u002Fworkflows\u002Frelease.yml)\nwhen a `v*` tag is pushed. The steps are documented in [`gui\u002FREADME.md`](gui\u002FREADME.md).\n\n### Layout\n\n- `crates\u002Fsf-core`: the engine.\n  - Raw device access, the resumable mapfile and the imaging algorithm.\n  - Partition detection, drive listing and the same-drive check.\n  - NTFS, FAT\u002FexFAT and ext readers, and carving.\n- `crates\u002Fsf-cli`: the command-line tool, a thin layer over the engine.\n- `gui\u002F`: Tauri 2 desktop app. It runs `sf-cli --json` as a separate process\n  and never links the engine, so only `sf-cli` needs elevated rights.\n- `docs\u002Fcli-contract.md`: the JSON protocol between them.\n  `docs\u002Fcontract-samples\u002F` holds real output.\n- `scripts\u002F`: the end-to-end contract check (`contract-smoke.ps1`) and the\n  Linux loop-device test.\n\n## Acknowledgements\n\nInspired by [GNU ddrescue](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Fddrescue\u002F),\n[TestDisk & PhotoRec](https:\u002F\u002Fwww.cgsecurity.org\u002F), DMDE, R-Studio and UFS\nExplorer. SectorForge is an independent project, not affiliated with any of\nthem.\n\n## License\n\n[MIT](LICENSE). Provided as is, without warranty. Data recovery carries\nrisk; read the advice above before running anything on a failing drive.\n","SectorForge 是一款面向数据恢复场景的跨平台磁盘抢救工具，支持从故障硬盘中安全提取数据。核心功能包括：ddrescue 风格的智能扇区级镜像（自动绕过坏道并生成健康地图）、分区表识别与深度扫描、NTFS 文件系统解析（含已删除文件恢复）、基于文件特征的无文件系统数据雕刻（file carving），以及镜像完整性校验。采用 Rust 编写，通过 Tauri 构建轻量级便携 GUI，无需安装，开箱即用。适用于硬件老化、逻辑损坏或意外断电导致的硬盘数据抢救，尤其适合非专业用户执行自主恢复操作。",2,"2026-11-24 04:32:57","CREATED_QUERY"]