I want to recover some files using PhotoRec. Although I've used it before, I am not familiar with making it look only in one given directory.
Any idea how to do it?
I want to recover some files using PhotoRec. Although I've used it before, I am not familiar with making it look only in one given directory.
Any idea how to do it?
It is not possible to scan directories for lost files using PhotoRec unless you had mounted a whole hard drive partition as this directory.
For Unix a directory entry is not much more than a file used for mapping inodes. This also is why PhotoRec can not recover the directory structure. It really is only to scan whole drives or partitions to then recover the content of files of a given type (as defined by known headers). Filenames and directory structures can not be recovered.
You may however use TestDisk from the same suite to search for directory entries, and then to recover files within these (see my answer there on how to do that). To use TestDisk we need remnants of the filesystem to be accessible still.