photorec not extracting png image Topic is solved

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
ricksimpson
Posts: 6
Joined: 02 Dec 2015, 19:52

photorec not extracting png image

#1 Post by ricksimpson »

Hello,

Im feeding photorec an exe file with this command line:

photorec_win.exe /debug /log /cmd "file.exe" partition_none,fileopt,search /d "rec"

or

photorec_win.exe /debug /log /cmd "file.exe" fileopt,everything,enable,search /d "rec"

and it only outputs the exe file, no png, i then extracted the png manually and checked with

fidentify_win.exe "00004815.png"
00004815.png: png

so it seems the signature matches, i believe it could be due to the search mode in use, i will keep fiddling around but if anyone notices what could be going on please let me know!

-r1ck

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

Re: photorec not extracting png image

#2 Post by cgrenier »

The png inside the exe file isn't aligned to 512 byte boundary.
Try

Code: Select all

photorec_win.exe /debug /log /cmd "file.exe" partition_none,blocksize,1,search /d "rec"

ricksimpson
Posts: 6
Joined: 02 Dec 2015, 19:52

Re: photorec not extracting png image

#3 Post by ricksimpson »

thank you!

Locked