What is file carving?
File carving recovers files from raw data by looking for their content patterns, such as the start and end markers, instead of using file system...
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 be recovered.
When you delete a file, most systems mark the directory entry or file record as deleted and mark the clusters as free. They do not wipe the content. The data stays until the space is reused.
Emptying the Recycle Bin or Trash is the same idea. The file is first moved, and later its record and space are freed.
Metadata recovery uses what is left of the file record. If the name, size and cluster list still exist, the file can be rebuilt with its original name and times. This works well soon after deletion.
File carving works without file system records. It searches raw data for file headers and footers. It gives content but usually no name or times. If the record is gone, carving is the next step.
New writes can overwrite the data. Partly overwritten files give damaged output. Drives with TRIM may erase freed blocks. Secure erase tools and encryption also reduce or end recovery.
Work on a forensic image, never on the original drive. Procedures and laws differ by country and agency, so follow your lab's own procedure for handling recovered data.
| Metadata recovery | File carving | |
|---|---|---|
| Needs file system records | Yes | No |
| Original name and times | Often kept | Usually lost |
| Fragmented files | Handled if clusters are listed | Often fails |
| Typical use | Soon after deletion | When records are gone |
A user deletes a spreadsheet and empties the Recycle Bin. On the image, the examiner finds the file's MFT record still marked free with its name and cluster list. The clusters have not been reused, so the file is recovered whole.
Deleting normally frees the record and clusters but does not erase the content until it is overwritten.
Writing to or changing the original could destroy evidence. An image can be hashed and repeated safely.
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.