partrevive
github.com
- Free plan
- Windows
- Linux
What partrevive is
partrevive is a free, MIT-licensed Python utility for recovering lost or deleted partition tables on Linux. It scans disks for filesystem signatures, then verifies possible partitions through read-only loop devices and mounts. Candidates containing data are marked live, while unmountable candidates are treated as ghosts. Its command-line workflow includes scanning, verification, planning, file rescue, table restoration, automatic recovery, undo, and disk imaging. A Tkinter interface guides scanning, verification, plan creation, and table restoration. The project lists NTFS, FAT12/16/32, exFAT, ext2/3/4, btrfs, XFS, F2FS, and Linux swap as detected formats; LVM2 and LUKS are reported but not rebuilt. GPT restoration is the default, while MBR mode is limited to four primary partitions. Imaging uses ddrescue in two passes with a mapfile, and recovery can use a disk image. Restore backs up the existing table, checks SMART health, prompts before writing, refuses mounted targets, and supports undo.
Who it suits
It suits Linux users who need a command-line or Tkinter workflow for recovering partition tables. It is aimed at people comfortable with root access and system disk utilities.
Good to know, and what to watch
- Read-only candidate verification
- Tkinter recovery interface
- Disk-image recovery support
- Backs up tables before writing
- SMART health check before writes
- Requires root and several system tools
- LVM2 and LUKS are not rebuilt
- MBR mode allows four primary partitions
- Early project with incomplete-filesystem risks
Plans
Every plan and priceMIT licensed
Free plan
The verdict
partrevive combines cautious verification with several recovery paths, including imaging and undo. Its Linux dependencies and early status make it better suited to technically experienced users.
What the maker publishes
- Dependencies
- The single-file Python 3 program uses the standard library and requires root plus sgdisk, blkid, losetup, mount, partprobe, and blockdev on PATH. source
- Disk images
- A disk image file can be used as the device input, and the image command uses ddrescue in two passes with a mapfile. source
- Disk imaging
- The image command uses ddrescue in two passes with a mapfile, and the tool can recover against a disk image file. source
- Download and requirements
- The project is a single Python 3 file using the standard library and requires root plus sgdisk, blkid, losetup, mount, partprobe, and blockdev on PATH. source
- Filesystem support
- The README lists NTFS, FAT12/16/32, exFAT, ext2/3/4, btrfs, XFS, F2FS, and Linux swap as detected formats, and says LVM2 and LUKS are reported but not rebuilt. source
- Filesystem support
- It detects NTFS, FAT12/16/32, exFAT, ext2/3/4, btrfs, XFS, F2FS, and Linux swap; LVM2 and LUKS are reported but not rebuilt. source
- GUI
- A Tkinter front end guides users through scanning and verification, building a plan, and restoring the table. source
- GUI
- An optional Tkinter GUI presents a guided scan and verify, plan, and restore workflow. source
- License
- The repository identifies the project as MIT licensed. source
- License
- The repository states that partrevive is MIT licensed. source
- Limitations
- The design document says heavily fragmented or partially overwritten filesystems may mount but be incomplete, so recovered data should be checked. source
- Limitations
- LUKS and LVM2 volumes are flagged but not sized, mounted, or included in the proposed partition table. source
- Maker
- The maintainer profile identifies the maker as Ned Heller and lists Bay Area as the location. source
- Maturity
- The README describes the project as early and reports testing recovery of a deleted GPT on a 240 GB SATA SSD. source
- Partition formats
- It restores GPT by default and can write an MBR table with --mbr, limited to four primary partitions. source
- Project maturity
- The README describes the project as early and says it has been tested on a 240 GB SATA SSD recovery involving Windows partitions over stale Linux partitions. source
- Purpose
- partrevive scans disks for filesystem signatures to recover a lost or deleted partition table. source
- Purpose
- partrevive scans raw disks for filesystem signatures, verifies candidate partitions read-only, and helps rebuild a lost partition table. source
- Read-only verification
- Its verify command checks candidates using read-only loop devices and mounts, classifying filesystems with data as live and unmountable candidates as ghosts. source
- Recovery steps
- Its commands support scanning, verification, planning, rescuing files, restoring a table, undoing a saved table, and imaging a failing drive. source
- Recovery workflow
- The CLI provides scan, verify, plan, rescue, restore, auto, undo, and image commands. source
- Safety
- Restore backs up the existing partition table, prompts before writing by default, refuses to act on a mounted target, and can be undone from the saved backup. source
- SMART check
- Before writing, restore and auto check SMART health and refuse a failing drive unless --force is supplied. source
- Verification
- It creates read-only views of candidates and mount-tests them to distinguish live filesystems from stale ghosts. source
Checked against the maker's pages on 9 Oct 2026.