Hi,
I've searched the forum and found that several has same problem as I. I start
PhotoRec (on a raw file made with dd on Linux). After a few minutes it hangs
and just update one file. Heres a small shell script that just lists the file
every other second. You see how the file just keeps overwriting itself.
$ while true;do LANG=en ls -lart recup_dir.12/f6287024.lnk;sleep 2;done
-rwxrwxrwx 1 root users 851968 Nov 14 16:48 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 974848 Nov 14 16:48 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1507328 Nov 14 16:48 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1617920 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1929216 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1650688 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1884160 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1642496 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 0 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1396736 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1769472 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 114688 Nov 14 16:49 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1798144 Nov 14 16:49 recup_dir.12/f6287024.lnk
From shell with PhotoRec in the row with "Pass 1" is updating the first number
but not the files so it seems that it is stuck there. The position with number
"6288942" keeps changing but bounces back and forward between ruffly 6200000
and 6300000. Not really sure how high and how low.
PhotoRec 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk olddisk.iso - 750 GB / 698 GiB (RO)
Partition Start End Size in sectors
2 P HPFS - NTFS 130 203 10 89308 187 31 1432643584
Pass 1 - Reading sector 6288942/1432643584, 5615 files found
Elapsed time 0h03m54s - Estimated time to completion 14h44m32
txt: 3148 recovered
exe: 755 recovered
gz: 405 recovered
png: 352 recovered
jpg: 348 recovered
ttf: 216 recovered
tx?: 122 recovered
mov: 72 recovered
lnk: 49 recovered
gif: 35 recovered
others: 113 recovered
Stop
Cheers,
Stuck and loop
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
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
- cgrenier
- Site Admin
- Posts: 5432
- Joined: 18 Feb 2012, 15:08
- Location: Le Perreux Sur Marne, France
- Contact:
Re: Stuck and loop
Can you try using latest 7.1-WIP ?
Re: Stuck and loop
Absolutely. I found WIP a couple of hours ago and tried it. Same problem. It starts
to loop at about ~6300000 sectors.
Here's similar output that I sent before.
$ while true;do LANG=en ls -lart recup_dir.12/f6287024.lnk;sleep 2;done
-rwxrwxrwx 1 root users 1376256 Nov 14 20:39 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1785856 Nov 14 20:39 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1970176 Nov 14 20:39 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1269760 Nov 14 20:40 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 8192 Nov 14 20:40 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 1536000 Nov 14 20:40 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 368640 Nov 14 20:40 recup_dir.12/f6287024.lnk
-rwxrwxrwx 1 root users 2113536 Nov 14 20:40 recup_dir.12/f6287024.lnk
PhotoRec 7.1-WIP, Data Recovery Utility, September 2018
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /var/run/media/bengan/Elements SE/olddisk.iso - 750 GB / 698 GiB (RO)
Partition Start End Size in sectors
2 P HPFS - NTFS 130 203 10 89308 187 31 1432643584
Destination /var/run/media/bengan/Elements SE/recovery4/recup_dir
Pass 1 - Reading sector 6288044/1432643584, 5964 files found
Elapsed time 0h06m53s - Estimated time to completion 26h01m23
txt: 2950 recovered
jpg: 863 recovered
exe: 752 recovered
gz: 405 recovered
png: 352 recovered
ttf: 216 recovered
tx?: 153 recovered
mov: 72 recovered
lnk: 51 recovered
others: 150 recovered
Re: Stuck and loop
I did some more testing and I turned off recovery of lnk-files in the options. First I thought it got stuck again and stopped the recovering but I thought I would let it run for a while and suddenly (after 5-6 minutes) it found some more files. Now it has run for about 1h20m and it keeps going. I suspect the lnk-files gets into a endless loop in some way. I saw that you did some correction about that in February this year. Commits 87a927d and 3f0fe81. If you want me to do some testing I'm happy to help. Just need to dig through this disk first (about 4h-5h left now).
Cheers,
Cheers,
- cgrenier
- Site Admin
- Posts: 5432
- Joined: 18 Feb 2012, 15:08
- Location: Le Perreux Sur Marne, France
- Contact:
Re: Stuck and loop
I will modify PhotoRec to discard lnk over 1 MB.
Can you run "photorec /log" ? PhotoRec is probably recovering (or discarding) another file between 2 attempts to recover a lnk file.
Can you run "photorec /log" ? PhotoRec is probably recovering (or discarding) another file between 2 attempts to recover a lnk file.
Re: Stuck and loop
Sorry for the late reply. Can't attach the logfile. phpbb seems to think it's "Invalid file extension: photorec.log". I tried with other extensions but it doesn't work. Maybe it's the size? It's 515442B long.