restarting PhotoRec

Using PhotoRec to recover lost data
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
RLKnighten
Posts: 3
Joined: 21 Nov 2016, 06:41

restarting PhotoRec

#1 Post by RLKnighten »

I am trying to recover the files from an ext4 backup drive which went back while doing a restore. PhotoRec seems to be doing well having recovered over 400000 files and producing 12034 recup.dir directories. Unfortunately at this point the computer froze. After rebooting I tried restarting PhotoRec. It asked me if I wanted to continue but when I said Yes it reported cannot find harddrive and exited. There are two photorec.ses files around, but I've no idea what to do with them. Is there any way of restarting the lost PhotoRec session?

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: restarting PhotoRec

#2 Post by cgrenier »

Run "sudo photorec" (you may have to adapt the command line, ie "sudo ./photorec_static") once you are in the directory where the file photorec.ses is.
As root, you should be able to see all disks.

RLKnighten
Posts: 3
Joined: 21 Nov 2016, 06:41

Re: restarting PhotoRec

#3 Post by RLKnighten »

Thank you for your reply. Unfortunately I am still confused. There are actually two photorec.ses files. One is in the directory from which PhotoRec was being run. If I start PhotoRec there (as root) I get the offer of continuing a previous session but in response to "Yes" I get the 'no harddrive found" message and the program exits. The other photorec.ses file is - frighteningly - in the root directory where I am trying to recover files. If I start PhotoRec there it starts up completely normally, asking for the harddrive, etc. It shows no sign of continuing a previous session.

Again, thank you for any help with this.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: restarting PhotoRec

#4 Post by cgrenier »

Edit your photorec.ses file and check the device (ie. /dev/sdb). Does it match the actual device attributed to your disk ?

RLKnighten
Posts: 3
Joined: 21 Nov 2016, 06:41

Re: restarting PhotoRec

#5 Post by RLKnighten »

Thank you for your comment. I didn't try that, but I did finally get the resume to work. Unfortunately what it did was restart the scan from the beginning, putting additional and duplicated the recup_dir directories. So I gave up, erased all the recup_dir directories and started over. Another 6 hours and another 300GB of recup_dir.* and I should be in good shape.

Locked