keepcalculator

06 Numbers and Powers

Data Loss Rescue: How Recovery Works

Card No. 06·16074 · Updated · Standard formula, shown below

The calculator on this card is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

Data loss rescue is the process of recovering files that have been deleted, corrupted, or made inaccessible from storage devices like hard drives, SSDs, memory cards, and USB drives. You typically enter the device type and the nature of the loss (accidental deletion, formatting, physical damage), and the recovery method—software scanning or professional lab service—determines what you get back. The outcome depends on the storage technology, how quickly you act, and whether the data was overwritten.

Formula

The recovery probability is estimated as:

P = 100 − 5 × (hours/24) − 10 × (device factor) − 5 × (file system factor)

Where:

  • P = estimated recovery success probability (percentage)
  • hours = time since data loss (hours)
  • device factor = 1 for HDD, 2 for SSD, 3 for USB, 4 for SD card
  • file system factor = 1 for NTFS, 2 for APFS, 3 for ext4, 4 for exFAT

This is a heuristic model, not a guarantee. It reflects the general principle that recovery chances drop as time passes and as the storage medium becomes more complex (SSDs have wear-leveling that overwrites quickly; SD cards are often used in cameras that keep writing).

Worked Example

Using the default values: 24 hours since loss, HDD (factor 1), NTFS (factor 1).

  1. Time penalty: 5 × (24/24) = 5%
  2. Device penalty: 10 × 1 = 10%
  3. File system penalty: 5 × 1 = 5%
  4. Total deduction: 5 + 10 + 5 = 20%
  5. Probability: 100 − 20 = 80%

The calculator shows 80%, meaning a decent chance of recovery if you act quickly with the right tools.

How Data Loss Happens

Data loss isn’t a single event—it’s a category. The most common causes include:

  • Accidental deletion: You hit Shift+Delete or empty the Recycle Bin/Trash.
  • Formatting: You format a card or drive, thinking it was empty or to fix an error.
  • File system corruption: The drive’s index (FAT, NTFS, APFS) gets damaged, making files invisible even though the data is still there.
  • Physical damage: A dropped laptop, a failing motor, or a scratched disc.
  • Firmware issues: The drive’s internal software fails, so the OS can’t read it.
  • Ransomware or malware: Files are encrypted or deleted by malicious software.

Each cause leads to a different rescue strategy. For example, a deleted file on a healthy HDD is often recoverable with software, while a drive with a clicking sound needs professional clean-room work.

How Recovery Software Works

When you delete a file, the operating system doesn’t erase the data—it just marks the space as available. The actual 1s and 0s remain until new data overwrites them. Recovery software scans the drive for these remnants and rebuilds the file structure.

Two main scan types exist:

  • Quick scan: Looks at the file system’s metadata (like the MFT on NTFS) to find recently deleted entries. Fast but only works if the metadata is intact.
  • Deep scan: Searches the raw sectors for file signatures (e.g., JPEG headers, PDF markers). Slower but can find files even after the metadata is gone.

For SSDs, the situation is different. TRIM commands actively erase data blocks in the background, so deleted files may be gone within minutes. That’s why the calculator penalizes SSDs more heavily.

When to Use a Professional Lab

Software tools can handle logical issues, but physical damage requires a clean-room environment. Signs you need a lab:

  • The drive makes clicking, grinding, or beeping noises.
  • The drive is not detected by any computer.
  • There are visible signs of damage (burnt components, broken connectors).
  • The drive has been exposed to water or fire.

Professional labs use specialized equipment to read platters directly or replace read/write heads. This is expensive—often hundreds to thousands of dollars—but it’s the only option for physically damaged drives. Never open a drive yourself; even dust can destroy data.

Common Mistakes That Ruin Recovery

Many people accidentally destroy their chances of recovery. Avoid these:

  • Continuing to use the drive: Every new file written can overwrite the deleted data. Stop using the device immediately.
  • Installing recovery software on the same drive: The installation itself writes new data. Install on a different drive or use a live USB.
  • Running CHKDSK or fsck: These repair tools can modify the file system, potentially making things worse.
  • Shaking or tilting a failing HDD: This can cause physical damage. Keep it stable.
  • Ignoring the problem: Time is critical. The longer you wait, the more likely overwriting occurs.

If you’ve made any of these mistakes, don’t panic—recovery may still be possible, but act correctly from now on.

Cost vs. DIY: What to Expect

Costs vary widely:

  • Free software: Tools like PhotoRec or TestDisk are free and can recover many files. They require some technical comfort.
  • Paid software: Commercial tools (e.g., EaseUS, Stellar, Disk Drill) range from $50 to $100 for a license. They offer GUI and more features.
  • Professional lab: Prices range from $200 for simple logical recoveries to over $2,000 for clean-room work. Some labs charge a flat fee, others per gigabyte.

For a single important document, free software might be enough. For a business database or irreplaceable family photos, a professional lab is worth the cost. Always ask for a quote before approving work.

How to Choose a Recovery Method

Follow this decision tree:

  1. Is the device physically damaged? If yes → professional lab.
  2. Is the device detected by the computer? If no → try a different cable/port, then consider firmware issues or lab.
  3. Is it a logical issue (deletion/format)? If yes → use software, preferably on a cloned image.
  4. Is the data extremely valuable? If yes → stop DIY and consult a lab.

For best results, create a disk image first using tools like ddrescue (Linux) or a commercial imaging feature. Then run recovery on the image, keeping the original as a backup.

Frequently Asked Questions

Can I recover data after a factory reset?

Yes, but it depends on the device. On HDDs, a factory reset often just deletes the file table, so data remains until overwritten. On smartphones and SSDs, encryption and TRIM make recovery much harder. If the device was encrypted and the key is gone, recovery is nearly impossible.

How long does data recovery take?

Software scans can take anywhere from minutes to hours, depending on drive size and scan depth. Professional lab work can take days or weeks, especially if parts need to be ordered. The calculator’s time factor reflects that waiting reduces success probability.

Is it safe to use free recovery software?

Generally yes, but only from reputable sources. Some free tools bundle adware or are actually malware. Stick to well-known open-source tools like PhotoRec or TestDisk, or free versions of commercial software. Always scan the downloaded file with an antivirus.

What is the difference between data recovery and data rescue?

They are often used interchangeably. Data recovery is the broader term. Data rescue usually implies an urgent situation, like a failing drive or a ransomware attack. Both aim to restore access to lost files.

Can I recover data from a dead SSD?

Sometimes. If the SSD’s controller failed but the NAND chips are intact, a lab can read the chips directly. However, SSD encryption can complicate this. If the NAND itself is worn out, recovery may be impossible. Always keep backups for SSDs.

Does the file system matter for recovery?

Yes. NTFS (Windows) and APFS (Mac) have different metadata structures. Some tools are better at one than the other. The calculator’s file system factor reflects that, for example, APFS snapshots can help, while exFAT has no journal, making recovery more challenging.

Related

Formula used
in t | Time since loss | hours | 24 | 0 | 8760
in d | Device type | - | HDD=1, SSD=2, USB=3, SD=4 | 1 | 4
in f | File system | - | NTFS=1, APFS=2, ext4=3, exFAT=4 | 1 | 4
out p | Recovery probability | % | (100 - 5 * t / 24 - 10 * (d - 1) - 5 * (f - 1)) * (t > 0) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →