PhotoRec taking a long time

Using PhotoRec to recover lost data
Post Reply
Message
Author
wmagb
Posts: 3
Joined: 24 Nov 2017, 19:33

PhotoRec taking a long time

#1 Post by wmagb » 24 Nov 2017, 19:51

Hello,

I am using PhotoRec 7.1-WIP, to recover files from a 1TB Western Digital SATA HDD. I booted off of a LiveCD (https://en.altlinux.org/Rescue), and I am using a Dell Optiplex 780. It is currently on Pass 1, Reading sector 121555852/1944492032, 9170 files found. It has been running for 62 days, and says it has 20000 hours remaining (but it is going down). So, just over 2.5 years to go? Ha. This is taking too long, correct? Should I kill it? I mean, it does look like it is working, but it is taking FOREVER... But beggars can't be choosers! Just want to know if I am really going to be waiting another 2 years.

Thanks,


P.S. - So, I just noticed that it went backwards... now it is on Reading sector 93006667/1944492032. That is one digit less than before. So, there must be something wrong here, correct? Thanks everyone... :)

Sponsored links

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

Re: PhotoRec taking a long time

#2 Post by cgrenier » 25 Nov 2017, 09:50

Are the recovered files valid files ?
The recovery may be very slow if the source disk contains bad sectors.
Sometimes to complete a fragmented file PhotoRec goes backward after recovering a new file.
It's possible to avoid this problem by stopping PhotoRec and manually editing the photorec.ses file (ie. using vim, do not forget to backup the file) to remove old sector ranges. After that, resume the recovery.

wmagb
Posts: 3
Joined: 24 Nov 2017, 19:33

Re: PhotoRec taking a long time

#3 Post by wmagb » 27 Nov 2017, 16:02

I don't know a good way to check and see if the files are valid, without first stopping PhotoRec. I guess I could resume it afterward, yes?

We created a backup of the disk prior, using dd. It is stored in an .img file. Should I try mounting this, and running PhotoRec on that instead? The .img file is stored on another HDD.

Thanks,

P.S. - Now it says it has 26351 hours remaining, which is 3 years. It keeps changing wildly. This disk must be in really bad shape.

wmagb
Posts: 3
Joined: 24 Nov 2017, 19:33

Re: PhotoRec taking a long time

#4 Post by wmagb » 05 Dec 2017, 20:10

So, I stopped the recovery and checked the files, and they seem to be good/valid files. Good JPGs, MPGs, and some PDFs. However, it is nowhere near complete. As you say, the drive must be in really bad shape. I will attempt a few other things, including editing the photorec.ses file. Any advice for editing the file properly? Or is it all in the user guide...

Thanks,

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

Re: PhotoRec taking a long time

#5 Post by cgrenier » 06 Dec 2017, 07:28

It's better to use ddrescue than dd to create an image of a disk. By default dd stops at the first bad sector.
If the disk was containing bad sectors, it's better to work on the disk image than from the source disk.
The current location will be listed at the end of the second line. Remove all old sector range, this way PhotoRec will not jump backward.
You can use vim to edit the photorec.ses file.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests