Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

Will Formatting a Disk Erase All Data?

Maybe. You have options.

If your format happened quickly, it's unlikely your data was actually erased. I'll show you the difference.
A large rubber eraser held above a large computer hard disk. The eraser is positioned as if it's about to erase data from the disk. The hard disk is placed on a desk with visible details of the disk platter and components, while the eraser is clean and slightly worn from use.
Do not actually do this! (Image: DALL-E 3)

One of the most common ways to erase a disk is to format it. It’s quick, it’s painless, and it makes the data go away.

Or does it? The disk certainly looks empty when you’re done, but is it?

The answer, as always, is: it depends.

Become a Patron of Ask Leo! and go ad-free!

TL;DR:

Erase all data with a format

  • Quick format: empties the root folder but the underlying data remains, allowing potential recovery.
  • Full format: overwrites the entire disk, making data recovery highly unlikely.

Disk contents

We tend to think of disks as containing files and folders. While that’s not wrong, it’s also an oversimplification. There’s a lot more going on.

In simple terms, the disk contains overhead information that records exactly where those files and folders are physically stored on the disk. Even more complicated, some of that overhead information is itself stored on the disk similarly to the files and folders it references.

The details of how this is all stored is what differentiates different disk formats from one another. NTFS is different from FAT32, for example, in what kind of overhead information they keep and how everything is stored on the disk.

A simple sample disk

In order to understand what formatting does and does not do, we need to understand a little about how files are laid out on disk, at least conceptually.

A top-level folder, also referred to as the root folder, is the folder you see when you examine the contents of a drive without specifying anything else.

Displaying the root of the C: drive.
A display of the root of the C: drive. Click for larger image. (Screenshot: askleo.com)

Folders can contain other folders and files. This is what’s referred to as a “tree” or hierarchical directory/folder1 structure.  In order to find any file on the disk, we start at the top — the root folder — and work our way through the various sub-folders until we find the file we want.

In the block diagram below, we have a root folder pointing to three additional folders — called sub-folders — as well as two files. The first sub-folder points to another sub-folder and two files. The final sub-folder points to two files.

Example disk organization
Example disk organization. Click for larger image. (Image: askleo.com)

What does it mean to format a disk?

There are two types of formatting — quick and full — and which you choose determines how erased your data becomes.

Quick format

A “quick” format — generally the default — empties the root folder, replacing it with a fresh copy.

Quick format results.
Quick format results. Click for larger image. (Image: askleo.com)

After a quick format, the top-level folder points to nothing. But all those other files and folders? Their data remains on the disk. They’re not physically overwritten until other files and folders are created on the disk as it’s used. Until then, recovery tools of various sorts can be used to restore them.

To really erase everything instantly, we need a bigger hammer.

Not-so-quick (full) format

Unselect “Quick format” when formatting a disk, and things work differently.

Not a quick format.
Not a quick format. (Screenshot: askleo.com)

When a full format happens, the entire disk is overwritten, and when that’s done, the process creates a fresh, empty root folder.

Fully formatted hard drive.
Fully formatted hard drive. Click for larger image. (Screenshot: askleo.com)

 

And nothing else.

While in some cases, very advanced data recovery tools might be able to recover files from the ghosts of files past, the reality is that this is enough. Nothing remains on the hard disk.

Do this

If the information on a disk must be completely erased, be sure to perform a full, not quick, format. This will overwrite everything on the drive.

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

Podcast audio

Play

Footnotes & References

1: Folders and directories are synonymous.

9 comments on “Will Formatting a Disk Erase All Data?”

  1. If I am going to give up a hard drive to someone else for recycling or their use, I’ll do a full format of the drive, encrypt it using Bitlocker, format it again and again encrypt it with Bitlocker, conveniently forgetting to save the encryption key. I figure that will make data recovery extremely difficult, if not impossible.
    If a hard drive no longer functions, it gets physically destroyed by drilling multiple holes through it (at least half a dozen with a 3/8″ drill bit).
    For drives I am repurposing, a quick format is good enough.

    Reply
          • Not necessarily. I started using Bitlocker on a Windows 7 laptop that didn’t have a TPM chip. At the time, I had to have a USB flash drive with the encryption key stored on it inserted to unlock the C:\ drive when starting up and/or enter a password. (I still have that flash drive after 15 years.)
            Eventually, I started checking the specs on replacement laptops and ensuring that there was a TPM chip and avoiding keeping track of a flash drive or a password.
            I’m not necessarily paranoid but if I can make it harder for someone to access anything I want to keep others out, I do.

  2. I just bought a cheap SSD from China and did a quick format but quickly discovered through “properties” there were still over 500GB of files on the disk, even though it was showing up as empty.
    My question is twofold:
    (1) Is it safe to fully format a SSD?
    (2) Is it even remotely possible something nefarious could survive the reformatting?

    Reply
  3. My solution for passing a drive on to others is similar to that of Jon H. (first post above), only I start with encrypting the drive with BitLocker, then I perform a full format on the drive, and encrypt it again with BitLocker, then I finally perform a full format to make it usable. This way, I encrypt the data the first time, then perform a full format on the drive so I can encrypt the drive a second time, overwriting the first encryption key, making the encrypted data essentially unrecoverable without very expensive forensics techniques. To make the drive usable, I perform fast format. At this point, I don’t think three’s anything to be gained by performing a full format.

    Ernie

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.