To install it just open a terminal and runPhotoRec recovers deleted files or lost data from a reformatted partition or corrupted file system.
sudo apt-get install testdisk
Download the .deb file from its website and install. I've used both and they work great, testdisk might be faster, and R-Linux will allow to preview the files to recover before doing so, but it might be a bit slower at processing the data. I used "might" because it really depends on the machines resources; RAM and CPU capacity.R-Linux is a free file recovery utility for the Ext2/Ext3/Ext4 FS file system used in the Linux OS and several Unixes. R-Linux uses the same InteligentScan technology as R-Studio, and flexible parameter settings to provide the fastest and most reliable file recovery for the Linux platform. However, unlike R-Studio, R-Linux cannot recover data over network or reconstruct RAIDs, or provide object copy.