

We choose the partition from where we want to recover the files and then we choose by pressing the Enter key.So we don't have to remember any commands and we will do everything without the terminal. If we do not know in which path is the drive from which we want to recover the data, a quick and easy way to find out what is available to everyone is to open a partition manager like GParted and look at it there.To do the test, I have used a pendrive whose path is / dev / sdb1, so we open a terminal and write "sudo photorec / dev / sdb1" (without the quotes), which will show us an image like the following: Once the software is installed, we will have to tell it which unit we want to work on.

Sudo apt install testdisk How to use PhotoRec Although the software is called PhotoRec (we only have to look at the screenshots to realize that this is the case), to install it we will have to use another name, so in the terminal we will write: But if you are already opening the terminal and preparing everything to write the famous installation command, stop a second. Installing PhotoRec is very simple, since it is in Ubuntu's default repositories.
