JPEG file when a block begins with: Start Of Image + APP0: 0xff, 0xd8, 0xff, 0xe0 Start Of Image + APP1: 0xff, 0xd8, 0xff, 0xe1 or Start Of Image + Comment: 0xff, 0xd8, 0xff, 0xfe If PhotoRec has already started to recover a file, it stops its recovery, checks the consistency of the file when possible and starts to save the new file (which it determined from the signature it found). If the data is not fragmented, the recovered file should be identical to (or possibly larger than) the original file in size. In some cases, PhotoRec can learn the original file size from the file header, so the recovered file is truncated to the correct size. If, however, the recovered file ends up being smaller than its header specifies, it is discarded. Some files, such as *.MP3 types, are data streams. In this case, PhotoRec parses the recovered data, then stops the recovery when the stream ends. When a file is recovered successfully, PhotoRec checks the previous data blocks to see whether a file signature was found but the file was not able to be successfully recovered (i.e., the file was too small), and it tries again. This way, some fragmented files can be successfully recovered. Compatibility PhotoRec is compatible with: DOS (either real or in a Windows 9x DOS box) Microsoft Windows: NT4, 2000, XP, 2003, 2008, 2016, Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11 Linux FreeBSD, NetBSD, OpenBSD SunOS macOS ARM Distribution PhotoRec and TestDisk are shipped together. They can be downloaded from CGSecurity website. These utilities can be found on various Linux Live CDs: GParted Live CD Parted Magic Slax-LFI, a Slax-derived distribution SystemRescueCD Ubuntu Rescue Remix, an Ubuntu derivation They are also packaged for numerous *nix (mostly Linux based) distributions: ALT Linux Arch Linux Extra Repository Debian contrib Fedora Extras Red Hat Epel FreeBSD port OpenBSD port Gentoo and Gentoo Portage Mandriva contrib Source Mage Linux Ubuntu See also Photo recovery List of free and open-source software packages File recovery References External links 1998 software Free data recovery software Portable software Hard disk software Free software programmed in C Software that uses ncurses Software using the GPL license