SpyClue · Technical Knowledge Library+91 95029 46496
Home / Knowledge Centre / SSD · Architecture
ENGINEERING REFERENCE · ADVANCED REFERENCE

SSD FTL engineering: logical mapping, garbage collection and recovery limits

A technical introduction to SSD logical-to-physical mapping, NAND pages and blocks, wear levelling, garbage collection, TRIM and why controller access matters.

The host sees logical blocks; NAND is managed internally

An operating system addresses an SSD through logical block addresses (LBAs). NAND flash, however, is organised into pages and erase blocks with constraints that differ from magnetic disks. The SSD controller and its firmware translate host requests into NAND operations. The Flash Translation Layer (FTL) manages this relationship and tracks where valid data resides.

Logical-to-physical mapping

A host write to an LBA does not necessarily overwrite the same physical NAND location. The controller may program data into a fresh page, update its mapping metadata and mark the previous page obsolete. Mapping may be page-level, block-level or hybrid, and implementations vary. Some controllers maintain large mapping tables in DRAM or use on-flash metadata structures with caching.

NAND hierarchy and constraints

  • Cell: stores charge or a charge-related state representing one or more bits.
  • Page: common unit for programming and reading, subject to NAND generation and device design.
  • Erase block: group of pages that is erased as a unit.
  • Plane, die and package: levels of internal organisation that affect parallelism and command scheduling.
  • ECC: error correction used to recover data affected by cell variation, wear and read disturb, with implementation-specific limits.

Why out-of-place updates matter

NAND generally cannot update an already-programmed page in place in the same way a magnetic disk can rewrite a sector. Controllers commonly write updated data elsewhere and update the mapping. Old pages become invalid and are reclaimed later when blocks are erased. This design creates dependencies between user data, mapping metadata, block management and power-loss recovery.

Garbage collection and wear levelling

Garbage collection relocates still-valid pages from selected blocks so those blocks can be erased and reused. Wear levelling distributes program/erase activity to avoid exhausting a small subset of blocks. These background operations can move data and alter the internal state even when the host is not actively copying files. Their exact behaviour depends on controller firmware, available free space, workload and power state.

TRIM / deallocate: why deleted data may become unrecoverable

When an operating system informs an SSD that certain logical blocks are no longer needed, the device may treat those mappings as invalid. The controller can later reclaim the associated NAND pages during garbage collection. The timing and exact effect depend on the OS, file system, interface, firmware, encryption and device state. A deleted file on an SSD is therefore not equivalent to a deleted file on a conventional HDD. Do not promise recovery based only on the absence of new host writes.

Controller failure is not the same as NAND failure

An SSD may fail because of its power circuitry, controller, firmware, NAND packages, DRAM, interface, solder joints or internal metadata. A controller that no longer boots may leave NAND physically intact but inaccessible because the logical mapping, ECC, scrambling, interleaving, parity or encryption context is not available. Raw chip reads are not automatically equivalent to reconstructing the original logical address space.

Why chip-off is not a universal solution

Chip-off can provide access to raw NAND in selected cases, but reconstruction may require controller-specific knowledge of page order, channel and die interleaving, XOR or scrambling schemes, ECC algorithms, bad-block tables, metadata formats and encryption. Modern SSDs may use strong encryption with keys managed inside the controller or secure hardware. If the necessary key or metadata is unavailable, readable NAND contents may still be unusable.

Engineering assessment checklist

  • Record exact SSD model, controller marking, firmware if available, capacity and interface (SATA, PCIe/NVMe or other).
  • Document host symptoms: not detected, wrong capacity, read-only state, intermittent identification or command timeouts.
  • Determine whether the device is self-encrypting or uses platform/device-specific encryption.
  • Preserve the original state; avoid secure erase, firmware updates, initialization and repeated power cycling without a reasoned plan.
  • Use a validated acquisition path where the controller is stable enough to expose logical sectors.
  • Distinguish logical imaging from raw NAND acquisition in case notes.

Research references

Editorial note: This article is educational. It distinguishes general principles from model-specific behaviour. Always verify procedures against the exact device family, firmware revision, manufacturer documentation and validated equipment. No single workflow is appropriate for every failure.

← Return to the SpyClue Knowledge Centre

SpyClue Data Recovery

Learn the technology. Respect the evidence.

Technical education, careful diagnosis and transparent recovery assessment.