There is TestDisk, if a partition got deleted (partition entry
removed from partition table).
Using an UnDelete utility, can sometimes recover recently
deleted files. On NTFS, only one byte per deleted file is
flipped, to mark they have a deleted status. Then the
$MFT entry storage space gets reused at the first opportunity,
and the clusters the file used are allocated when new file
writes call for them. There is an incentive then, to stop
using the disk when trouble is first detected. If you
continue to use the partition, the quality of the recovery
becomes poorer and poorer with time.
https://en.wikipedia.org/wiki/Recuva
A good UnDelete utility, tells you how many clusters have
been overwritten since the "event". A file with a "Good" status
or a green dot, none of the clusters are damaged, and simply
flipping the byte in the $MFT entry, brings back that file.
Files which have a yellow dot or red dot could be suffering
severe damage, and some other file is using the same clusters
and has overwritten what the previous owner of the clusters
put there.
As for TestDisk, it requires that the user remember what the
partition setup looked like. Many times (in my experience),
the reconstructed partition table is not the same as the
original partition table. Using a "bad" reconstruction
would result in damage to the data. If you have a backup, it has
a copy of the protective MBR, a copy of the GPT tables (there is
a primary and a backup table), and those are some of the items
that a person might put back as part of data recovery.
It really depends on what happened, as to how close to recovery
the thing might be. For example, an innocent CHKDSK run on a
partition with problems, can erase data too. Windows 10 has
a background process that verifies structures on disk, but
with the lack of documentation, we don't really know if there
are any corner cases where that makes things worse.
If I had to guess, some feature like "Storage Spaces" or
"Storage Manager", some sort of rubbish like that, it
spots when a partition has only 5% space remaining. It
then prompts you with an "I can help you clean off this shit"
prompt. When the user doesn't think it's shit :-/
Now, the CleanMgr.exe utility (which might be what the Storage
feature uses), it has a *very dangerous* box, or what was
a box there at one time. It offered to *delete your Downloads*.
That's the Downloads folder in your home directory.
Any mechanism of that sort, is a terror. I'm always very careful
in that tool, to clear all boxes, before I start selecting the
boxes I'm thinking of using. A dead giveaway would be a box that
says "potential savings 4TB", as then you'd know "hey, wait a minute,
that's my Downloads!". If CleanMgr got them, then Recuva might work
for some of it (like if you stopped using the "empty" partition
immediately).
There are also file scavengers like Photorec. But as far as I know,
those would work best if the file clusters were sequential. Such as
if a very good defragmenter had put all the files in precise order
before the "event". It's a shame that it's so much hard work to
prepare volumes for "events", and as a result, partitions are
hardly ever ideal candidates for the Photorec approach.
Paul