Windows
(and other operating systems) keep track of where files are on a hard
drive through “pointers.” Each file and folder on your hard disk has a
pointer that tells Windows where the file’s data begins and ends.
What actually happen
When
you delete a file, Windows removes the pointer and marks the sectors
containing the file’s data as available. From the file system’s point of
view, the file is no longer present on your hard drive and the sectors
containing its data are considered free space.
However,
until Windows actually writes new data over the sectors containing the
contents of the file, the file is still recoverable. A file recovery
program can scan a hard drive for these deleted files and restore them.
If the file has been partially overwritten, the file recovery program
can only recover part of the data.
Why do computers not delete files?
If you’re
wondering why your computer doesn’t just erase files when you delete
them, it’s actually pretty simple. Deleting a file’s pointer and marking
its space as available is an extremely fast operation. In contrast,
actually erasing a file by overwriting its data takes significantly
longer. For example, if you’re deleting a 10 GB file, that would be
near-instantaneous. To actually erase the file’s contents, it may take
several minutes – just as long as if you were writing 10 gigabytes of
data to your hard drive.
To increase
performance and save time, Windows and other operating systems don’t
erase a file’s contents when it’s deleted. If you want to erase a file’s
contents when it’s deleted, you can use a “file-shredding” tool.
Making sure a file cannot be recovered
Running a low-level format
or another utility that overwrites all deleted files with zeros or
other garbage is the only method of making sure files cannot be
recovered. A low-level format can also be called a zero fill, because of
the writing of the zeroes to the hard drive. When the deleted file
space is overwritten by zeroes or any other data, it is no longer able
to be recovered.
