Can deleted files be recovered from this drive?
When a file is deleted, its data often stays on the drive for a while. This workflow shows two ways to get it back from a disk image: reading the file system's own records, and searching the raw data for known file patterns. It also shows how to check what you got and how to explain what you could not get.
This workflow was written from the tools' documentation and published references. It has not yet been checked step by step on the practice data. If a step does not match what you see, please report it.
What you will be able to answer
- Which deleted files still have a name, date and size in the file system
- Whether the content of a deleted file can be recovered
- Which files can only be found by carving (without name or date)
- Whether a recovered file is complete and opens correctly
- Why a file could not be recovered
What you need
- A forensic image of the drive, or a practice image (see the practice section on this page)
- A second drive or folder with free space, to save recovered files
- Autopsy, and PhotoRec if you want to carve outside Autopsy
- A tool that can open E01 files if your image is in that format
Steps
- 1
Work on an image, never the original
If you start from a real drive, make a forensic image through a write blocker and write down its hash value (a fixed-length fingerprint of the data). Recovery tools read a lot of data, so use only the image. Save recovered files on a different drive from the evidence, never back onto it. Make a folder for each method (for example from-autopsy, from-sleuthkit, from-carving) so results do not mix.
- 2
Start with the file system records
Create a case in Autopsy and add the image as a data source. Open File Views, then Deleted Files: these are files that were deleted but whose names could still be read from the file system. Name, size, dates and folder are often still there, and the content may be too. Right-click a file and choose Extract File(s). Also check the Recycle Bin: a file deleted in Windows may only have been moved there, and the $I file keeps its original name and deletion time.
$Recycle.BinToolsAutopsy - 3
Repeat it from the command line
The Sleuth Kit is the library under Autopsy. First run mmls on the image to see the partitions and find the start sector, then pass it with -o. The fls command lists directory entries. With -d it shows only deleted ones, and an asterisk before the address marks a deleted name. The address is the number to give to icat, which writes that entry's content to standard output. Use icat -r to try recovery of a deleted file. Do this once by hand to see what Autopsy does for you.
fls -r -d -p image.dd
fls -r does not go into deleted folders. Run fls on the folder's own address to see inside it. If the entry shows (realloc), its slot is now used by another file. E01 images work only if your Sleuth Kit build has libewf. Check with fls -i list.
ToolsThe Sleuth Kit - 4
Carve by file signature
Carving ignores the file system. It scans for the first bytes of a known file type, such as a JPEG, and cuts out what follows. In Autopsy enable the PhotoRec Carver module. It works only on unallocated space (space the file system says is free) and lists results under $CarvedFiles. In PhotoRec on its own, choose the image, the partition, file system type Other (for FAT and NTFS), then Free, and an output folder. It writes recup_dir.1, recup_dir.2 and so on.
Carved files lose their original name, folder and dates. Foremost is another carver. bulk_extractor finds items such as email addresses and URLs in raw data, including inside compressed data. Do not claim when or where a carved file was created from carving alone.
- 5
Check what you recovered
A recovered file can be empty, partly overwritten or mixed with other data. Check that the file type matches its extension: look at the first bytes in a hex editor and read the metadata with ExifTool. Open each file in a safe viewer, not on a computer you use for other work. A photo that shows grey blocks or stops halfway is probably damaged, not hidden. List which files are complete, partial and unreadable.
exiftool -r -FileType -FileName recovered_folder
- 6
Hash the recovered files
Calculate a hash for every recovered file and keep the list with your notes. Do this once right after recovery, so you can show later that the files did not change. Also write down the hash of the image before and after your work: the two must match. If the same file came out of two methods, compare the hashes of the two copies.
- 7
If a file is missing, find out why
Not finding a file does not mean it never existed. Check these: the file system entry may have been reused; the drive may be an SSD or flash device that cleans free space (TRIM); the volume may be encrypted; the file may have been large and stored in pieces; or the drive may have been formatted. A quick format of a FAT drive leaves old directory entries, so look in unallocated space for them. Note which reason fits and which cannot be tested.
- 8
Cross-check and write it down
Confirm important files by two routes, for example the same file found in Autopsy and by the command line, or a carved file matched to a file system entry by its hash. In your notes, record the tool names and versions, the image hash, where each recovered file came from and the time zone of any dates.
Where the evidence is stored
Deleted file entriesFile system records of the volume (for example the NTFS Master File Table or FAT directory entries)Name, size, dates and folder of a deleted file, and where its data was stored
Unallocated spaceFree space of each volume in the image ($Unalloc in Autopsy)Old data that is not yet overwritten, which is the source for carving
Carved files$CarvedFiles in Autopsy, or the recup_dir folders you chose in PhotoRecFile content found by signature, without name or dates
Recycle Bin$Recycle.Bin on the Windows volumeFiles deleted in Windows that were moved, with the original name and deletion time kept in a small companion file
bulk_extractor outputThe output folder you choose when you run itText files listing items such as email addresses and URLs found in raw data
Hash list of recovered filesYour own case notesProof that the recovered files stayed the same after recovery
Check your result
- Recover the same file by Autopsy and by fls with icat, then compare the hashes of the two copies.
- Match a carved file to a file system entry by its hash, to learn its original name and dates.
- For the practice image, compare your list with the published answer of NIST.
Common mistakes
- Saving recovered files onto the evidence drive or the image, which overwrites the very data you want.
- Treating carved files as proof of when or by whom a file was made. Carving gives content only.
- Stopping at the Deleted Files list and never carving, or the other way round. The two methods find different things.
- Not hashing the image before and after, so you cannot show that the recovery did not change it.
- Running fls on an NTFS or FAT partition without the right -o offset, and then concluding that the image is empty.
Write it up
A short, careful way to state this kind of finding in a report. Change the details to match your own results.
From the image [image name] (SHA-256 [hash]), [number] deleted files were recovered from the file system records of the [file system] volume and [number] more by signature carving. The carved files have no name or date. [Number] files were partly overwritten or could not be recovered.
What this does not prove
- Recovery can fail. Once the space of a deleted file is used by new data, the old content is gone or only partly there.
- Many SSDs and flash devices erase free blocks soon after deletion (the TRIM command), so deleted data may already be gone from them.
- If the drive is encrypted and you do not have the key, recovered data is unreadable.
- Large files are often stored in pieces. A carver may join the wrong pieces or stop early, so the file can be damaged.
- Carved files lose their name, folder and dates. A carved file alone does not show who created it or when.
- A recovered file shows that data existed on the drive. It does not show which person created, opened or deleted it. That needs other evidence, such as user accounts and activity records.
- Each tool supports a limited list of file types. A file type that is not on the list will not be carved.
Practise on public data
NIST CFReDS: Data Leakage Case (USB drive RM#2)
A simulated company data leak with images of a PC and of several removable media. The image of the USB drive called RM#2 is small: about 219 MB as a compressed DD file (rm#2.7z), or about 243 MB as rm#2.E01. The case page lists RM#2 as a 4 GB drive with a FAT32 file system. The answer document says 17 files can be recovered from it and that the data was deleted by a quick format.
Your task. Do question 53 of the case: recover the deleted files from the USB drive RM#2. Use steps 2 and 3, then step 4 as an extra, and save the files on another drive. Compare your list with the published answer. Then answer question 54 in your own words: what in your results shows a quick format?
The answer document says carving is optional for this question and that most carved files are unrelated to the scenario. Expect extra files from carving that are not in the answer list. Check the case page for the exact download names before you start.
Where to go next
- Was a USB drive connected to this Windows computer? Find out whether a USB drive was connected to a Windows computer
- Where and when was this photo taken? Check the metadata of recovered photos
- How do I make a forensic copy of a drive and prove it is exact? Learn how to image a drive and check its hash
Sources and further reading
- NIST CFReDS: Data Leakage Case
- Autopsy user documentation: PhotoRec Carver module
- The Sleuth Kit manual: fls
- CGSecurity: PhotoRec step by step
- bulk_extractor on GitHub
A study guide written in our own words from the tool manuals and the NIST case pages. It is not a legal or laboratory procedure. Follow your own lab's approved method on real cases. Last reviewed 24 Nov 2026.