
Now, select the portion of the space to be analyzed. Next, select your filesystem type where the file will be stored and hit enter. You can select the partition using the up and down arrow key and hit enter to the search. You can select File Opt and filter files according to the selected extension only. Then, you will see the following interface where you are requested to select the partition. Now, once the disk is selected, select proceed using the left and right key then hit enter. On command execution, you will see the following interface where you can select your disk. PhotoRec can be launched using the following command. As you can see in the following example I have deleted some of the images and we will be recovering these files.

Once installation completes you can now perform the recovery task. $ sudo apt update $ sudo apt install testdisk -y So, to install TestDisk execute the following command. PhotoRec doesn’t have it’s own package but it will come with the package while installing the TestDisk package. In this article, we will install and use PhotoRec to recover deleted files in ubuntu 20.04 LTS. When you accidentally deleted the file you better not add more media or document files to that memory or hard drive as you might overwrite your lost data. It supports and can recover more than 480 file extensions.

The TestDisk is used to recover deleted partitions and make non-bootable disks bootable again and photoRec recovers deleted media files or document files. PhotoRec is an open-source software utility to recover lost or deleted media files like photos, videos, documents, etc from CD-ROMs, Hard disks, and digital camera memory.
