VM, Database and Application-Container Recovery Tools
No single tool reconstructs a virtual disk chain, a database or an application container end to end. Structure parsers, native consistency checks, extraction modes and repair utilities each answer a different question at a different layer, and they differ in what they write. Choose by the open question and by what the operation changes, not by product reputation.
- Inspect, convert, commit, rebase and repair are separate operations; inspection and conversion to a new output are meant to leave the source container unchanged (some formats, such as VHDX, require log replay on open), while commit, rebase and repair change the chain or its metadata.
- Do not assume that running a database engine’s consistency check leaves the acquisition untouched. Engine startup, internal snapshot handling and repair modes have different effects; verify the exact operation and run it against an appropriate working copy. Restoring a known good backup is a separate path again.
- InnoDB forced recovery is an emergency startup mode for dumping data, not a fix.
- A parsable header or
moovbox does not prove every sample, page or item behind it is intact.
First question: is the container file itself complete?
A VMDK, MDF, PST or MP4 that is incomplete, or that sits on unstable storage, is first a preservation problem. Application-level tools assume the bytes they read are the file’s real content; a filesystem or media fault underneath turns their findings into noise and their repairs into damage. Decide how the file will be preserved or acquired before any tool writes to it — see Filesystem Structure and Metadata Recovery Tools and Disk Imaging & Cloning Tools.
That does not mean a full device image must always come before everything else. When the source is degrading, reading the most important file or metadata first, guided by what the structures say, can be part of the acquisition plan; when a working system still gives access, a native export may be the better first step. Health, consistency and whether access depends on something that may not come back decide the order, as in How to Image a Failing Drive Safely.
Virtual disks: inspect, convert, commit, rebase and repair are different operations
- Inspection and chain checking answers which child is active, which parent it expects, and whether allocation tables (BAT, L1/L2) are structurally valid. QEMU’s qemu-img separates
info, which can enumerate a backing chain, fromcheck, a consistency check supported only for some formats;checkalso has a repair option, which is a different operation. - Conversion writes a new image in another format. It creates a new output; it does not validate that the guest data was consistent.
- Commit writes the changes recorded in an upper image into its base or backing image; depending on the mode, the upper image may be emptied afterwards.
- Rebase changes an image’s backing relationship. In qemu-img’s safe mode it first copies the clusters that differ between the old and new backing files into the image being rebased, to keep that image’s guest-visible content unchanged; it does not write the image’s changes into the new backing file. Both operations permanently change the chain, so they belong on copies once the chain’s dependencies are understood.
- Repair rewrites container metadata. The qemu-img documentation warns never to use it to modify images in use by a running VM or another process.
Copying the files of a running VM, or imaging the storage under it, does not guarantee crash or application consistency, and a copy of one file is not the whole dependency chain. Check which parents, snapshot files and descriptors the active disk needs. Mechanisms are covered in Virtual Disk Snapshot and Differencing-Chain Recovery and VHDX and QCOW2 Internal Metadata Recovery.
Databases: check, restore, extract and repair are not interchangeable
SQL Server’s DBCC CHECKDB validates the database through the engine’s own understanding of its structures, but it is not a passive read. Microsoft’s DBCC CHECKDB reference describes an internal database snapshot used for consistency, and locking when a snapshot cannot be created; it generates I/O and needs resources of its own. The REPAIR_* options are a different mode: they require single-user mode, REPAIR_ALLOW_DATA_LOSS can remove data, and Microsoft recommends restoring from the last known good backup as the primary response, with repair as a last resort.
Restore from a known good backup, page restore, extraction of readable rows and repair are separate paths. Whether a restore or page restore is possible depends on the edition and version, the recovery model and an unbroken backup and log chain — prerequisites to confirm before choosing. See SQL Server Corruption, Page Restore and DBCC.
MySQL’s innodb_force_recovery is an emergency startup mode whose stated purpose is to let InnoDB start so tables can be dumped. The MySQL 8.4 manual says nonzero levels prevent INSERT, UPDATE and DELETE, while levels of 4 or greater place InnoDB in read-only mode. These restrictions are not a guarantee that startup or recovery leaves the database files unchanged; the documented limits are operation- and level-specific, and values of 4 or greater can permanently corrupt data files. It does not repair corruption and is not a validation step; there is no universally safe level, and the limits are version-specific. See InnoDB Tablespaces, Redo Logs and Crash Recovery.
Extraction and reconstruction tools become relevant when the engine cannot safely open the database at all and the goal shifts to reading whatever rows and objects remain in the page store. Their output is a partial set of records, not a repaired database; the general mechanism is in Database Page Corruption and Transaction Recovery.
PST and OST: two trees, one lookup path
The PST node database layer has two separate B-trees. According to the MS-PST NDB layer overview, the Node BTree (NBT) maps node IDs to the block IDs of their data and subnodes, the Block BTree (BBT) maps block IDs to file offsets and sizes, and the roots of both are reached from the file header (the ROOT structure holds a reference to each root page). Structural tools therefore check both trees and whether node references resolve to blocks through the BBT; damage to either tree, or to the header that points at them, has different consequences.
- ScanPST (Inbox Repair Tool) repairs the file it is given; Microsoft’s repair article notes that it creates a
.bakbackup. Run it on a working copy, keeping the original unchanged. - Dedicated structural or item-extraction tools read the NDB structures directly to export items without rewriting the source.
- An OST is not automatically disposable. It is a local cache of a server mailbox, and in Cached Exchange Mode work done offline reaches the server only after synchronization. Whether recreating it loses anything depends on what had been synchronized.
Details are in PST and OST Internal Structure Recovery.
Video containers: parse, decode and repair are separate checks
- Structure parsers (atom/box viewers, ffprobe) report the container format, streams and metadata, and can list packets and frames. A readable
moovbox or a correct header shows that the index parses, not that every sample it points to is present and decodable. - Full decode exercises the samples themselves and is the stronger check of whether the media plays through.
- Container repair rebuilds or replaces index structures and writes a new file; its result needs its own validation.
Fragmented MP4 does not keep all sample information in one final moov: in the ISO BMFF byte stream format, the initialization segment’s moov carries no samples and each media segment has its own moof with mdat. Tools that expect a single trailing index can misjudge such files. Whatever validates the output should support the exact format, profile and version involved. See MP4 and MOV Container Repair and Validation and Fragmented Video Recovery from Memory Cards.
Hex and structure viewers support manual checks across all four groups, from a VMDK descriptor to a PST header to an MP4 box sequence.
Database repair options, ScanPST, and container or virtual-disk repair utilities can rewrite the very metadata that a careful recovery would have needed intact. Run them against a preserved copy, never against the only surviving original.
Technical references: Microsoft Learn: DBCC CHECKDB — internal snapshot, repair options, restore-first guidance. Applies to SQL Server versions listed there; details differ by version. · MySQL 8.4 Reference Manual, 17.20.3 Forcing InnoDB Recovery — purpose and risks of each level. Other MySQL versions have their own manual pages. · [MS-PST] 1.3.1.1 Node Database (NDB) Layer — NBT, BBT and lookup path. An overview section; field layouts are in the spec’s structure sections. · QEMU: qemu-img — info, check, convert, commit, rebase. The development (master) documentation; installed versions may differ. · FFmpeg: ffprobe Documentation — what ffprobe reports. Current online documentation; options vary by build and version.
Related: Virtual Disk Snapshot and Differencing-Chain Recovery · Database Page Corruption and Transaction Recovery · PST and OST Internal Structure Recovery · MP4 and MOV Container Repair and Validation · Hex Editors & Disk Structure Viewers
When the only copy of a virtual disk, database or mailbox file is at stake, the choice of first operation matters more than the choice of tool. Find a recovery provider by region.