Recovering lost files is not easy, but it is not impossible either. Foremost is designed to diagnose your hard drive to recover any files you have deleted. Foremost is a forensic program that helps recover deleted files on Linux based on the header, footer or internal data structure of the file. Foremost can recover image files, files created by dd, Safeback, Encase, or directly on the drive