CYBER WELFARE

Protect your Digital Privacy

Recovering files from formatted drives: how it works and where it stops

A formatted USB stick, a memory card showing “0 files”, a drive that looks brand new. As far as the operating system is concerned, the storage is empty; to someone looking at it with the right tools, it often is not empty at all. Recovering files from formatted drives is a well-known and legitimate practice — data recovery labs use it every day to rescue the photos of people who clicked the wrong button — but the same techniques can be used by anyone who comes into possession of a drive that is not theirs.

This post explains those techniques and, above all, their limits. It is the threat-side companion to the recommendation on choosing a full format: picking the format that overwrites your data, rather than the one that simply empties the index.

One useful clarification: this post describes how these techniques work from the point of view of the person on the receiving end, so that you can understand what you really leave behind on a drive and how to protect yourself. It contains no operational instructions, and no tools or procedures are named.

The starting point

For years you used a memory card in your camera: holidays, birthdays, a few photos of documents taken for convenience. One day you format it from the camera menu and put it in a drawer. A few months later you give it away along with the camera.

The format took a couple of seconds: a new, empty index was written to the card. Everything else — thousands of photos — is still there, physically, waiting to be overwritten by something.

Whoever receives the card sees nothing when they open it. But someone looking for data does not stop at what is visible.

Why a quick format leaves files readable

You only need one idea to follow the rest of this post. Every storage device has a file system: a kind of index that tells the operating system which files exist, what they are called and where on the drive they are stored.

A quick format creates a new, empty index and marks all the space as free. It does not touch the content: photos, documents and archives stay written where they were. It is like removing the index from a book without erasing a single line.

A full format, on recent operating systems, goes one step further: it writes over all the space, usually with zeros, and so replaces the previous content. That is why it takes much longer. It does not work in exactly the same way on every system and every type of drive: the details are explained in the guide on quick format vs full format.

All the techniques described here share one thing: they do not need to decrypt anything, they only need to read what nobody has overwritten.

1. Rebuilding the old index

In plain terms. Someone tries to rebuild the index that the format replaced, so as to find whole files again, complete with their names and folders.

How it works. The new index takes up only a small part of the drive; copies or remnants of the old one are often still there a little further along, because many file systems keep more than one copy of it for safety.

Why a quick format makes it easier. It is the most direct case: a quick format replaces the index and very little else, so the “map” for finding the files is often still almost complete.

Possible impact. Entire folders recovered, with file names that already reveal a great deal on their own: “medical results”, “tenancy agreement”.

What should make you suspicious. Almost nothing, because it happens once the drive is no longer yours. The warning sign comes earlier, in the format itself: a format that finished in a few seconds on a large drive was a quick one. The signs a format was not complete help you recognise this before you hand the drive over.

How to protect yourself. A full format, or secure erasure, before the drive leaves your hands.

2. Rebuilding files from fragments (file carving)

In plain terms. When the index cannot be rebuilt, files are searched for directly in the raw content of the drive and recognised by their shape.

How it works. Many types of file have a recognisable beginning and end: a photo, a document or a compressed archive starts with a sequence of data typical of its format. File carving — literally “cutting out the files” — means scanning the drive for these signatures and cutting out whatever lies between them.

Why a quick format makes it easier. Because the raw content has been left intact. Files written in a single block often come back whole; fragmented ones come back in pieces.

Possible impact. Photos and documents without names, but perfectly readable.

What should make you suspicious. Nothing you can see. “Empty” for the system does not mean truly empty.

How to protect yourself. A complete overwrite of the drive; better still, a drive that was encrypted from the start, so that any fragments found are unreadable.

3. Recovery from second-hand memory cards and USB sticks

In plain terms. Memory cards and USB sticks change hands easily, and they are often given a quick format.

How it works. Cameras, home security cameras, drones, satellite navigation units, old phones: almost all of them offer only a fast format from their own menu. Unlike many modern drives, these memories usually do not receive an instruction from the system to physically free up the space: the data stays until something overwrites it.

Why a quick format makes it easier. Because on these devices it is often the only format on offer, and because they get lent, given away and forgotten inside devices that are sold.

Possible impact. Family photos, pictures of identity documents, footage of the inside of your home.

What should make you suspicious. Cards and sticks whose past contents you cannot remember; storage left inside devices you have passed on. The second-hand device market is covered in the post on recovering data from second-hand devices.

How to protect yourself. Take cards and sticks out of devices before passing them on; give them a full format from a computer, where the option is available; if they have held sensitive data, consider not passing them on at all.

4. Analysing failed or discarded drives

In plain terms. A drive that no longer switches on is not an erased drive.

How it works. In hard disk drives the data is recorded on magnetic platters; if the electronics or the motor fail, the platters remain readable. Specialist labs are often able to read them. Even in failed solid-state drives (SSDs), the memory chips can still hold data.

Why a quick format makes it easier. Because a drive is often formatted in a hurry just as it starts to show signs of failing, or not formatted at all because “it doesn’t work anyway”.

Possible impact. Years of documents and backup copies on a drive that ended up in electronic waste or was left at a repair shop.

What should make you suspicious. A failed drive you handed over without knowing where it would end up; a scrapped computer with its drive still inside.

How to protect yourself. If the drive can no longer be overwritten, the only reliable option is physical destruction, including through a certified disposal service. Encryption switched on while the drive was working remains the best protection.

Cyber Security for All: Online Security, Passwords

On the page that opens, choose:

Subscription · not needed
Option to choose: Single course · coupon terms
  • The best available terms
  • Valid until 25 November, for a limited number of enrolments
  • Lifetime access to the content, updates included

5. Forgotten partitions and spaces

In plain terms. One part of the drive gets formatted, but not all of it.

How it works. A drive can be divided into partitions, meaning sections that the system treats as separate drives. Formatting the main one does not touch the others: recovery partitions, old data volumes, unallocated space left over from previous installations.

Why a quick format makes it easier. A hurried format focuses on the volume you can see; the less visible parts go unnoticed.

Possible impact. System copies turning up with user profiles, passwords saved in programs, browsing histories and documents inside.

What should make you suspicious. A drive that, after formatting, shows less capacity than advertised, or more than one volume.

How to protect yourself. Treat the drive as a whole, not just its visible part; wiping your data before passing on a device takes the whole drive into account.

6. Areas a format cannot reach

In plain terms. Some parts of a drive are not accessible to the operating system, so no format touches them.

How it works. Hard disk drives move the data from faulty sectors into reserve areas, and the original sector can no longer be reached normally. Solid-state drives, USB sticks and memory cards — known collectively as flash memory — use wear levelling: they spread writes across all their cells to make them last longer, and they keep spare cells that the system cannot see. When you “overwrite” a piece of data, the drive may write it somewhere else, leaving the old copy where it was.

What role the format plays. Here the limit applies to a full format too: it overwrites everything the system can see, not what the drive keeps to itself. Reading those areas requires lab-level expertise, but it is not impossible.

Possible impact. Leftover fragments of files, usually incomplete.

What should make you suspicious. Nothing you can see. This is a technical limit to be aware of, not an event to recognise.

How to protect yourself. Encryption: if everything written to the drive is encrypted, the hidden copies are encrypted too. That is why, for SSDs and flash memory, recognised guidelines prefer cryptographic erasure, explained in the post on how secure data erasure works.

7. Piecing a person together from what is recovered

In plain terms. The harm lies not in a single file, but in what many files reveal when put together.

How it works. Recovered photos often contain metadata: information hidden inside the file, such as the date, the time, the camera model and, sometimes, the location where the picture was taken. Documents and file names complete the picture: where you live, who you spend time with, where you work.

Why a quick format makes it easier. Because it gives back not one file, but an entire archive. The more material is recovered, the easier it is to reconstruct a life.

Possible impact. Targeted scams, identity theft, pressure using private content. These outcomes are less common, but they weigh more heavily: the post on data recovered after formatting describes what it means when it happens.

What should make you suspicious. Messages or calls that show knowledge of private details you have not shared; attempts to open services in your name.

How to protect yourself. Do not keep pictures of documents on storage that circulates; erase securely before passing anything on; encrypt wherever possible.

Summary table

TechniqueMain riskWhat should make you suspiciousEffective defences
Rebuilding the old indexEntire folders recovered with their file namesA format that took only a few secondsFull format, secure erasure
File carvingFiles reassembled from raw contentNothing visible: “empty” does not mean emptyComplete overwrite, encryption
Second-hand cards and sticksPhotos and documents on small storage handed on lightlyStorage left inside devices passed onRemove them, give them a full format, do not pass them on
Failed or discarded drivesComplete archives on “dead” drivesDrives handed over without knowing where they end upEncryption in advance, physical destruction
Forgotten partitionsSystem copies and old data left untouchedLess capacity than expected, several volumesTreat the drive as a whole
Unreachable areasLeftover fragments beyond the system’s reachNone: a technical limitEncryption, cryptographic erasure
Piecing a person togetherProfiling, identity theft, blackmailContacts who know private detailsNo documents on circulating storage, encryption

What they have in common, and where they stop

Seven techniques, one single precondition: that the original data is still written somewhere. Two defences stop almost all of them.

  1. Overwriting. Once a piece of data has been replaced, the recovery techniques described here have nothing left to read. On modern hard disk drives, according to recognised guidelines, a single complete overwrite pass is considered sufficient against practical recovery methods. That is exactly what a full format adds to a quick one.
  2. Encryption. If the drive was encrypted — meaning the data was transformed into a form that can only be read with a key — whatever is recovered is a meaningless sequence. It is also the only defence that covers the areas no format can reach, and it is the subject of the recommendation on encrypting your personal devices.

There is a third measure, the simplest of all: when a drive can no longer be overwritten or decrypted, physical destruction settles the matter.

None of these needs special skills: only deciding, before you pass on a drive, what should be left on it. Which is nothing.

Protection checklist

  • ☐ Before passing on a drive, a full format rather than a quick one
  • ☐ A backup copy of the data you want to keep, made before formatting
  • ☐ Encryption switched on for computers, phones and external drives holding personal data
  • ☐ Memory cards and USB sticks removed from devices before selling or giving them away
  • ☐ Every partition on the drive taken into account, not just the visible one
  • ☐ Failed drives never thrown away or handed over without knowing how they will be handled
  • ☐ No pictures of identity documents on storage that circulates
  • ☐ For SSDs and flash memory, encryption and secure erasure on top of formatting

How this connects to the Cyber Welfare Framework

PillarWhat this content contributes
AwarenessUnderstanding that a drive that is “empty” for the operating system may not be empty for someone analysing it
SkillsTelling apart what a quick format, a full format and encryption actually do
Secure BehaviourDeciding before passing on a drive, not afterwards, what should be left on it

Reference level: FL3 — Autonomous, with elements of FL4 — Skilled in the section on areas a format cannot reach.

To see where you stand on these topics today, you can start with the digital resilience self-assessment.

Conclusion

These techniques are neither secret nor rare: they are used every day to rescue data people thought was lost, and that is exactly why they work just as well on drives that were passed on in the belief that they were empty.

The good news is that they have a clear limit. They cannot recover what has been overwritten, and they cannot read what has been encrypted. A full format, and encryption wherever possible, turn a used drive into something that is genuinely empty.

Something to think about. Among the cards and USB sticks you have lent, given away or left inside a device you sold, is there one whose contents before its last format you could describe with certainty?

Related resources

Short pieces from the Resources section, for anyone who wants to focus on a single aspect:

Related content

Start with the first step: the Cyber Welfare Programme guides you free of charge, one recommendation at a time.