Data recovery asks what usable content remains after deletion, formatting, corruption or loss of access. The answer depends on the filesystem, allocation history, storage controller, encryption and available snapshots or backups. A deleted filename is not a guarantee that its former contents survive.
Start with a preserved acquisition and a clear recovery question. Use surviving metadata where possible, then consider carving and alternative copies. Validate recovered outputs before interpreting them, and distinguish complete files from fragments, generated filenames and reconstruction errors.
By the end of this topic you will be able to:
- Distinguish deletion, deallocation, overwriting and sanitisation.
- Choose metadata-based recovery, carving or a retained copy for the actual storage conditions.
- Assess SSD and encryption limitations without promising a recovery window.
- Validate reconstructed files and document hidden-data findings with appropriate limits.
- Deletion vs erasure
- Deletion removes or changes active filesystem references; retained content depends on allocation, storage and encryption. Sanitisation is a separate process intended to make access infeasible.
- File carving
- Reconstruction using content signatures or internal structure rather than relying entirely on active filesystem metadata. Carving is one recovery method, not the only one.
- TRIM
- An ATA mechanism for identifying logical ranges no longer needed. Related discard mechanisms exist on other interfaces; subsequent reads and physical reclamation depend on the device.
- BitLocker
- Windows volume encryption. Recovery requires a supported access mechanism and suitable key material under the actual configuration.
- VeraCrypt hidden volume
- A separately encrypted volume within an outer volume’s free space. Random-looking content alone cannot establish its presence.
- Steganography
- Embedding information within a carrier. Statistical anomalies can guide examination but do not alone prove that a recoverable hidden payload exists.
File Deletion: Metadata Changes and Recoverable Data
Deletion is a logical operation whose implementation differs across filesystems. An open file, a retained snapshot or a backup can remain accessible after a directory entry disappears. Storage reuse, discard and encryption determine whether underlying bytes can still be read.
On NTFS, examine a deleted file record’s state, attributes and retained data runs. Small resident content may be inside the record itself. Reused records, overwritten clusters and incomplete metadata can prevent reconstruction; an old filename and plausible size do not establish intact content.
For ext4, inode and allocation changes, journal mode and retained transactions affect recovery. The journal is a bounded filesystem mechanism, not a permanent archive of every deleted file. Tools must support the actual features; a journal inode is not universally a separate partition or a guaranteed old-content store.
APFS snapshots can retain referenced historical content. Copy-on-write does not promise every deleted version, and storage access or encryption can still limit examination. Identify actual retained snapshots before relying on them.
FAT directory deletion commonly uses a 0xE5 first-byte marker, while exFAT uses entry-state flags and an allocation bitmap. A FAT chain may have been cleared, and exFAT files can use contiguous allocation without a chain. Apply the correct format’s rules instead of treating the two as identical.
Protect the source and retain an acquisition log. Read-only handling and filesystem-specific no-replay options need validation; one mount command is not safe for every format. Perform any necessary repair or replay on a separately documented analysis copy.
Signature-Based File Carving: Headers, Footers and Limitations
File carving searches for content patterns and structural relationships when ordinary file references are absent or inadequate. A signature hit identifies a candidate, not necessarily an intact file. Preserve the source offset, selection settings and output relationship.
Typical clues include JPEG start/end markers, the PNG signature and terminal IEND chunk, PDF structures, ZIP records and SQLite headers. Some formats have no simple footer; internal lengths, directories, pages or checksums matter. Office Open XML files are ZIP-based packages whose members distinguish their application type.
Scroll horizontally if needed to see the full table.
Run the selected tool against the appropriate image or decrypted view and write outputs to separate storage. Record version, format filters, scan range and errors. Retain invalid or partial output only with a clear label and an explanation of its relevance.
Fragmentation can defeat a simple forward scan. Some tools have format-specific reconstruction capabilities, including PhotoRec options for certain fragmented JPEGs; no product reconstructs every fragmented file. Compare internal validity and content, and do not treat a file extension assigned by a carver as independent authentication.
Validate structure, expected length, embedded metadata and readability using suitable tools. Duplicate or overlapping candidates can represent the same bytes. A recovered picture or document may lack the original filename, path or reliable event time; report those gaps.
SSD Data Recovery: TRIM, Garbage Collection and Limitations
SSDs present logical addresses through a controller that manages flash translation, wear levelling and reclamation. Filesystem deallocation, delivery of a discard request, changes in readable logical data and physical erasure are distinct events.
ATA TRIM, SCSI UNMAP and other interface-specific deallocation mechanisms do not establish one universal erasure deadline. Configuration, bridges, controller behaviour, workload, encryption and power state affect the outcome. Minutes since deletion cannot establish that every former byte is physically erased.
A write blocker can prevent host writes under its validated capabilities, but it does not freeze all internal controller activity. Pulling power can also lose volatile access or encryption state. Responders should make a documented decision for the actual device rather than follow a universal plug-pulling rule.
Identify media, controller/interface, capacity, encryption and read behaviour. Capture accessible data under the approved method and record any unreadable regions or substitutions. A zero-filled read is an observation at that interface, not proof of exactly when or how flash cells were erased.
Chip-off is specialised and may be ineffective or destructive. Translation, error correction and hardware-linked encryption can prevent useful reconstruction. Do not promise that spare flash pages are recoverable or that raw-chip access supplies plaintext.
Check retained snapshots, backups, synchronised versions, attachments and recipient copies within the authorised scope. These are separate sources with their own provenance, not proof that deleted local content still exists.
Formatted Drives and Lost Partitions: Recovery with TestDisk
A blank-looking device may contain a damaged partition map, a newly created filesystem, overwritten areas or inaccessible encrypted data. Determine which condition is supported before selecting a recovery method.
Quick formatting commonly replaces filesystem structures but can also involve discard or other format-specific changes. Full-format behaviour depends on the platform and options; Windows documents options that write across the volume. Neither the word “format” nor the elapsed time alone predicts recoverability.
For MBR and GPT, examine actual sector sizes, primary and backup structures, partition bounds and filesystem signatures. GPT table size is not universally the first 17 KiB, and an intact backup does not guarantee every partition’s content survived.
TestDisk can search for candidate partitions and inspect supported filesystem contents. On an analysis copy, record the proposed layout, offsets, overlaps and validation. A plausible signature can be stale or false; confirm geometry and contents before accepting the reconstruction.
Rewriting a partition table is a modification. Preserve the original acquisition and work on a disposable copy if a write is necessary; extraction may be possible without repair. Standard dd produces raw output, not an E01 container merely because the filename ends in .E01. Record the actual acquisition format and verification.
Hypothetical example: a copied disk image lacks a usable primary partition map but contains a coherent filesystem at a later offset. The examiner documents the candidate bounds and extracts test files without altering the preserved image. The conclusion concerns the recovered layout and validated contents, not the cause or intent of the damage.
Encrypted Volumes: BitLocker, FileVault, LUKS, VeraCrypt
Correctly implemented encryption changes recovery from finding familiar plaintext signatures to obtaining supported access. Identify the product, version, key protectors and available authorised credentials or recovery material.
For BitLocker, recovery material may exist in a configured organisational escrow, a Microsoft account, a printed record or another retained source. Escrow is not universal. Apple FileVault, LUKS and VeraCrypt use different protection and recovery arrangements; do not transfer one product’s key-slot count or recovery procedure to another.
If a system is already accessible, a supported logical acquisition may preserve relevant plaintext. Memory examination can sometimes help under specific conditions, but a usable master key is not guaranteed. Modern hardware protections and reduced hibernation files make a generic memory-to-key recipe unreliable.
Cold-boot research demonstrated memory-remanence attacks on particular systems. It is not a universal contemporary phone or Mac recovery procedure, and cooling or rebooting a device can change or destroy evidence. Specialist feasibility must be assessed for the actual hardware.
Password testing applies only when the format, key derivation, required metadata and candidate search are supported. Verify tool modes against the installed release rather than rely on a static table. Strong keys and random recovery material are not equivalent to weak user passwords.
Consent, compelled disclosure, organisational access and provider requests have different legal requirements that vary by jurisdiction. Obtain appropriate authority and specialist advice; a production order does not itself decrypt protected material.
A VeraCrypt hidden volume is designed to resemble random outer-volume free space. High entropy or a program’s presence does not prove it exists. Report independently supported artefacts and any successfully accessed volume without claiming a reliable entropy test for hidden-volume detection.
Check Your Understanding
Sources
- 1.Guide to Integrating Forensic Techniques into Incident Response (2006) · NIST SP 800-86
- 2.Best Practices for Computer Forensic Acquisition, 17-F-002-2.1 · SWGDE
- 3.PhotoRec recovery and output limitations · CGSecurity
- 4.Deleted partition recovery with TestDisk · CGSecurity
- 5.exFAT File System Specification · Microsoft
- 6.ext4 journal design · Linux Kernel documentation
- 7.Hidden volume design and limitations · VeraCrypt
- 8.Lest We Remember: Cold Boot Attacks on Encryption Keys (2008) · USENIX Security
- 9.Windows format command and options · Microsoft