How deleted files can be recovered
Deleting a file usually only marks its record and space as free. The data often stays on the drive until new data overwrites it, so it can sometimes...
Slack space is the unused part of the last cluster a file occupies. Unallocated space is space the file system sees as free. Both can still hold old data.
Files are stored in whole clusters. If a file does not fill its last cluster, the rest is slack. For example, a 7 KB file in a 32 KB cluster leaves 25 KB of slack. That space may hold leftovers of an older file.
Slack is often split into two parts. RAM slack is the rest of the last sector after the file ends. Drive slack is the sectors after that to the end of the cluster. Modern systems often fill the first part with zeros.
Unallocated space is the area not assigned to any file now. It includes the clusters of deleted files. It can hold whole files, parts of files or text fragments, and it is a main source for carving and keyword search.
This space is not visible in a normal file listing. A logical copy does not include it. A full bit-for-bit image does, so use that when this data may matter.
Old data in slack or unallocated space can show that a file existed, even if the file itself is gone. Results need care. Fragments may be partial and hard to link to one user or time.
Tools search it by keyword or carve it. Procedures differ by lab, so follow your lab's own procedure for reporting such findings.
| File slack | Unallocated space | |
|---|---|---|
| Where | End of the last cluster of a file | Clusters not assigned to any file |
| Size | Small, per file | Can be very large |
| Typical content | Pieces of earlier data | Deleted files and fragments |
| Seen in normal listing | No | No |
A short text file sits in a large cluster. After the file ends, the examiner sees readable words from an older email in the rest of the cluster. This is slack. The same words may also appear in unallocated space, where the old file was stored.
Slack is leftover space inside an allocated cluster at the end of a file. Unallocated space is whole clusters that no file uses now.
A logical copy only has the files. A full image also keeps slack and unallocated space, where old data may sit.
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.