Free & open source file recovery The SectorRec project  ·  Version 1.0
SectorRec — File recovery. Really simple. USB drive, SD card, HDD, SSD and disk images.

File recovery · A practical guide

How to recover deleted files

Lost a file, formatted a USB drive, or can't open a disk? Start with your situation below. You don't need to know how recovery tools work.

Jump to a section

Before anything else

Stop using the affected drive. Don't add files, install software on it, or agree to format it.

Check for an easy copy. Look in the Recycle Bin / Trash and your backups first.

Save somewhere else. Use a different physical drive, not another partition on the same one.

Drive clicking, disconnecting, or showing read errors? Don't keep restarting scans. See make a disk image; for serious physical damage or irreplaceable data, seek professional help.

What happened to your files?

Pick the closest situation. Each link takes you to the relevant advice.

Recover your files in 4 steps

  1. Open SectorRec and select the source

    Find the drive by its name and size. For deleted files, select the partition they were on. If you're unsure, see disk or partition?

  2. Choose how to search

    Start with Recover by metadata (Sleuth Kit) for deleted files. If it finds little, try Recover by signatures (PhotoRec). If a partition disappeared, use Find missing partitions (TestDisk). Compare the methods ↓

  3. Pick a safe destination and start

    Choose a folder on your other physical drive. Recover by signatures saves files during the scan; Recover by metadata lets you choose files afterwards.

  4. Check what you recovered

    Open important files, not just their thumbnails. A filename or preview doesn't guarantee the content is complete.

SectorRec method selection screen showing Recover by metadata, Recover by signatures, and Create disk image.
Choose a recovery method.
SectorRec file results with recovered photo names, filters and recovery actions.
With Recover by metadata, choose which files to save after the scan.

Whole disk or partition?

Partition: a section of a drive (like C: or Photos). Choose it for deleted files. Whole disk: the complete device. Choose it when a partition disappeared or when you need a full image.

Example: Photo USB is one disk containing two partitions, while Backup SSD is a separate physical device.
One USB drive can contain several partitions. The backup SSD is a different device.

Get SectorRec for Linux or Windows →

Files lost from Windows C: or your Linux system disk?

The computer keeps writing to its system disk even when you're not saving anything. That can overwrite deleted files. Best option: recover from another computer or a live USB.

Recommended

Connect the disk to another PC

Use it as a second drive. Start the other PC from its own disk, then scan the affected one.

Also good

Start from a live USB

Boot Linux from a USB stick without starting the installed system. Run SectorRec there.

Last resort

Scan the running system

SectorRec allows file scans after a warning, but the operating system may overwrite files while you work.

Computer SSD and its C: and recovery partitions share one physical drive; Backup USB is a separate physical device.
C: and another partition on the same SSD are not separate drives. Use the Backup USB for output.
How to use a live USB (3 steps)
  1. On another computer, prepare a Debian/Ubuntu live USB. Ubuntu's guide ↗
  2. Boot the affected PC from that USB and choose Try Ubuntu (or equivalent). Avoid mounting or repairing the affected disk.
  3. Run the compatible Linux desktop edition of SectorRec. Connect a second external drive for recovered files and follow the 4 steps.

Important: a temporary live session may have limited space for scan data. Keep working files on suitable writable storage and recovered files on the separate destination before shutting down.

Note: SectorRec disables disk imaging and lost-partition searches on the active system disk. To use those features, boot from another drive.

Recover files from a USB drive or SD card

1.Unplug the USB stick or stop using the SD card in your camera or phone.

2.Connect it to your PC, ideally through a card reader. Don't format it if prompted.

3.Scan the recognizable partition with Recover by metadata (Sleuth Kit). If it finds little, try Recover by signatures (PhotoRec).

For videos, check playback from beginning to end: a recovered thumbnail doesn't mean the whole video survived.

Formatted drive or “You need to format the disk”?

Cancel the format prompt. A drive shown as RAW is one Windows can't currently read as a normal filesystem. That does not always mean the files are gone.

Drive or partition missing?
Find missing partitions (TestDisk) may locate it.

Partition visible, but folders unreadable?
Recover by signatures (PhotoRec) can search for files.

After a quick format, recovery may be possible if data remains. A full overwrite or secure erase cannot be reversed. Recover files before attempting repairs.

Which recovery method should I choose?

You don't need to know the tools beforehand. Choose based on what you can still see on the drive.

1 · Try first

Recover by metadata (Sleuth Kit)

Use when: you deleted files and the partition still appears normally.

What you get: a list to browse, often with original names and folders. Choose what to recover after the scan.

2 · If needed

Recover by signatures (PhotoRec)

Use when: file records are missing, the drive was formatted, or Recover by metadata found too little.

What you get: photos, documents and other recognized files, usually without original names. They are saved during the scan.

3 · Missing volume

Find missing partitions (TestDisk)

Use when: a partition has disappeared, or the disk looks unallocated.

What you get: possible partitions to inspect. SectorRec doesn't rewrite the partition table.

Comparison of Recover by metadata (Sleuth Kit), which can preserve original filenames, and Recover by signatures (PhotoRec), which finds files from their contents.
Two different ways to find files. Trying both can help when the source is stable.
See the difference with a real-looking example
File record links holiday.jpg to the blocks containing its data. Recover by signatures (PhotoRec) recognizes JPEG contents without the original filename.

Example: Recover by metadata might show holiday.jpg; Recover by signatures may save it as f0000123.jpg. Neither can restore missing or overwritten data.

Recover by signatures (PhotoRec): should I filter file types?

All supported formats is the simplest starting point. Choose a narrower group only if you want to focus on certain kinds of files. These groups aren't exact extension filters, and Recover by signatures may also find older copies or files that were never deleted.

Recover by signatures (PhotoRec) settings, with a separate backup destination and file formats selected.
Choose a separate destination before starting Recover by signatures.

Want to protect the original? Make a disk image

A disk image is one large file containing a copy of a drive. You can scan that copy instead of repeatedly reading the original.

Original driveRead it oncedisk.imgOn a separate driveRecovery scanWork on the copy

On supported Linux desktop builds, SectorRec uses GNU ddrescue to copy readable areas and resume interrupted copies. For a full image, the destination needs at least the capacity of the source drive, plus space for recovered files.

SectorRec image setup for a 64 GB source drive, with output stored on a separate backup SSD and a Resume control.
Check the selected source, destination and free space before imaging.
How to resume an interrupted image

Keep the image file (.img), its copy progress file (.img.map) and the source information (.img.source.json) together. Reconnect the same drive, open Create disk image, then choose Resume an incomplete image…. SectorRec checks the source before resuming.

How to scan an existing .img / .dd / .raw file

Choose Open disk image… in SectorRec. Select the image and choose a recovery method as usual. You do not need to mount it. Linux desktop also offers optional read-only mounting for browsing files.

SectorRec's drive list with an existing photo-usb.img disk image selected.
An image appears as another source you can scan.

Important: if a drive clicks, repeatedly disconnects, or isn't detected, software imaging may make things worse. A recovery specialist is safer for important data.

Using SectorRec on Linux or Windows

Download the edition for the computer running SectorRec, not for the filesystem on the drive. For example, Windows can scan a Linux-formatted disk if the recovery engine supports its filesystem.

Windows 10/11 (64-bit): use the installer or portable EXE. Windows may request administrator access for physical drives.

Linux (AMD64 / ARM64): choose the compatible desktop package. Linux desktop can also mount suitable disk images read-only.

Features depend on the package and platform; in particular, disk image creation and scanning an existing image are different operations. See the editions and downloads.

Can my files actually be recovered?

Sometimes, yes

Deleted files may still be present until their space is reused. A quick format may also leave old contents readable.

Sometimes, no

Overwritten or securely erased files cannot be rebuilt. On SSDs, TRIM can make deleted contents unreadable very quickly.

A file appearing in the results is not a guarantee. Verify the recovered copy. Encrypted files also need the proper key.

Quick answers

Can I recover files deleted from the Recycle Bin?

Possibly. Emptying the Bin doesn't always erase the file contents immediately. Stop using the drive and try Recover by metadata (Sleuth Kit) first.

Should I recover to D: instead of C:?

Only if D: is on a different physical disk. Two partitions on the same SSD are not separate recovery destinations.

Can I recover files without their original names?

Recover by signatures (PhotoRec) can find recognizable file contents, but usually saves them under generated names.

Can I recover files if my PC no longer boots?

Often worth trying. Use another PC or a live USB to access the disk. Don't reinstall Windows or Linux on the affected disk first.

How long does a scan take?

It depends on drive size, connection speed and read errors. A whole-disk Recover by signatures scan usually takes longer than scanning one partition.

What if a recovered photo or video won't open?

Its name may have survived while parts of its data didn't. Try the other method, but neither can restore overwritten content.

Further reading

Optional technical references from the recovery tool authors:

SectorRec — File recovery. Really simple.

Ready to recover your files?
Free, open source, and guided on screen.

Download SectorRec

Built around The Sleuth Kit, TestDisk & PhotoRec and GNU ddrescue.