Digital Forensic Tools

SSDs, TRIM and forensics

Short answer

SSDs store data in flash and manage it themselves. With TRIM and garbage collection, deleted data can be erased by the drive, so recovery is less certain than on hard disks.

How an SSD differs

A hard disk can overwrite a sector directly. Flash memory can only be written to empty pages, and it erases in whole blocks. The SSD controller therefore keeps its own map between the addresses the computer uses and the real flash locations.

It also moves data around for wear levelling, to spread wear, and for garbage collection, to free blocks. This happens inside the drive, without the operating system.

What TRIM does

TRIM is a command with which the operating system tells the drive which blocks no longer hold used data. The drive may then erase them in the background. After that, reads of those areas can return zeros or other data, depending on the drive.

So a deleted file on an SSD with TRIM may disappear sooner than on a hard disk. Timing is not predictable and depends on the drive and firmware.

What this means for examiners

Do not promise that deleted data can be recovered from an SSD. A write blocker still stops the computer writing, but it cannot stop the drive's own internal housekeeping once it has power.

Image the drive early, document the drive model and firmware, and note the file system and TRIM state if known. Carving and recovery results may be partial, and the report should say so.

Hard disk and SSD after deletion

Hard diskSSD with TRIM
Data after deleteStays until overwrittenMay be erased by the drive
Who changes dataMostly the computerComputer and drive controller
Recovery chanceOften goodLess predictable
Same image twiceUsually the sameCan differ if the drive changes data itself

Example

A laptop SSD is seized a week after a user deleted files. The examiner images it and finds the file records, but the data areas return zeros. The drive had run TRIM and cleanup, so the report notes that content could not be recovered.

Common mistakes

  • Expecting the same recovery rate as on a hard disk.
  • Believing a write blocker stops all changes inside an SSD.
  • Powering the drive on again and again before imaging.
  • Not recording drive model and firmware.

Key terms

SSD
Solid-state drive that stores data in flash memory.
TRIM
A command telling the drive which blocks are no longer in use.
Garbage collection
Drive housekeeping that erases unused flash blocks.
Wear levelling
Spreading writes evenly over flash to extend its life.
Controller
The chip in the drive that manages flash and address mapping.

Questions you may be asked

Why is recovery on SSDs less predictable?

The drive's controller can erase freed blocks by itself through TRIM and garbage collection, at times the examiner does not control.

Does a write blocker make an SSD image fully stable?

It stops writes from the computer. It does not stop the drive's own internal processes, so repeated images can differ.

Free tools to practise with

Learn more

Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.