To recover deleted JPEG, PNG, and PDF files on Windows, use Data Recovery in S.A.K. Utility: open the Partition Manager tab, click Data Recovery, choose an image file or a raw volume path, choose a folder on another drive, then press Restore. It runs right away and only reads the source. It finds those three file types only, and it reads the whole source, so a large drive takes a long time.
When to use this
You want to pull photos or PDFs from a disk image or a volume, such as a camera card. This is a narrow tool. It does not recover other file types, original file names, or folders. It reads the whole source, so a large drive takes a long time, and you can press Cancel and keep what it has found so far.
What you need
- A source: a disk image file (
.imgor.bin), or a raw volume path such as\\.\D:. - A destination folder. For an image, it must be a different folder from the one holding the image. For a raw volume, it must be on a different drive.
- For a raw path: run S.A.K. as administrator. Press Run as Admin in the status bar first, because Windows only lets administrators read a volume directly.
Steps
Open the Partition Manager tab.
Optional: press Scan Disks and select a partition with a drive letter, so the raw path is filled in for you.
Click Data Recovery.
In Data Recovery Source, press Image File and pick the file, or press Raw Path and check Source path:.
Choose an image file or a raw volume path Choose the destination folder.
Wait for the scan. You can press Cancel: if it has found anything by then, you still get the list.
Read the list of found files, with Recovered File, Format, Size, and Offset. If the scan did not cover everything, a line above the list says why. Press Restore.
Everything in this list gets restored Read the result. It says how many files were restored and whether the source stayed unchanged, and how much of it that check covered.
How it works
This is called file carving. S.A.K. does not use the file system's list of files. It reads the raw bytes and looks for the patterns that mark the start and end of a PNG, JPEG, or PDF, then copies out what lies between them.
Recovered files are named by where they were found, such as recovered_00000012ab00.jpg. S.A.K. fingerprints the source before and after copying to confirm it did not change. On a source over 512 MB, the fingerprint covers its first 512 MB, because reading a whole drive twice more would take longer than the scan.
Good to know
Write nothing to the source drive. Data Recovery only reads the source, but anything else that writes to that drive can overwrite what you are trying to recover. Keep a backup of anything else on it. On the v0.9.3 code, Partition Manager operations, including boot repair, MBR-to-GPT conversion and OS migration, ran through the app on disposable virtual machines and virtual disks. Some operations were also tested on one SAMSUNG MZVL2512HCJQ-00BH1 512 GB NVMe SSD and one Seagate Expansion Desk 8 TB USB disk. Internal SATA drives were not tested, and results on other devices may differ. See what was tested.
- A scan stops at 100,000 files. You get the list, and a line above it says the limit was reached.
- It says when it could not read the source. A source that will not open, such as a raw path without administrator rights, gets a warning saying so, and No recoverable PNG, JPEG, or PDF file signatures found. means the whole source was read.
- It restores everything in the list. You cannot pick individual files. A file that already exists in the destination is skipped.
- A whole disk can be scanned, but not restored from. With a path such as
\\.\PhysicalDrive1, S.A.K. cannot tell which drive the destination is on, so it could write over what it is recovering. Restore says so. Scan the volume instead, such as\\.\D:. - Files can come back damaged. Carving assumes a file sits in one unbroken run on the disk, so fragmented files come back corrupt. A carved file stops at the first end marker it meets, so a photo with an embedded thumbnail, or a PDF that has been edited and saved again, can come back cut short.
- The limit per file is 128 MB. Larger files are not found.
- SSDs are harder. After a file is deleted on an SSD, TRIM usually clears the data, so often nothing is left to find.