

Anything else is unnecessary and will just consume more time. Photorec Partition Selectionīefore you proceed, make sure you select the file type from the file options menu which you can access on the partition selection screen.Īs we know, we’re only looking for our JPG file, I’ve selected that extension. The next screen will ask you to select the partition that you want to run the recovery process on. When you’ve started PhotoRec, select the hard drive that you want to run the restore operation on and hit the enter key. To make things easy, navigate to the directory that you want to run the recovery on prior to running the command. Running PhotoRec and Begin Scanning For Deleted Filesįor this demonstration, I’ve created a random image file and deleted it. Once the setup is complete, you can download and run the Photorec utility using the command below: sudo photorecĢ.

To install PhotoRec, run the below command: sudo apt -y install testdisk It comes packaged with the testdisk utility and not as a separate package. How To Recover Deleted Files in Linux using PhotoRec?īefore we begin, we need to install PhotoRec on our Linux system. That’s not to say PhotoRec cannot be used for other file types, you sure can. That’s why the name “PhotoRec” which is short for “Photo Recovery”. PhotoRec, on the other hand, was created to recover media files that were deleted from SD Cards and other removable media. TestDisk was created by CGSecurity to recover deleted partitions. Let’s find out how to use PhotoRec to recover deleted files. In a previous tutorial, we discussed the steps to recover deleted files using a Linux utility named TestDisk and the PhotoRec utility is created by the same company. Accidentally deleted files or photos? In this tutorial, we’ll learn how to recover deleted files in Linux using PhotoRec.
