Page 1 of 1

Custom Files

Posted: 08 Aug 2016, 19:47
by driver
Trying to understand how to add custom files to photorec. All the examples are specific to being line "0" of the offset signature.

I will use this as an example.

[root@sysadminnas ~]# hexdump -C pre.dat | head
00000000 34 20 20 20 20 20 20 20 00 00 00 07 00 00 00 00 |4 ........|
00000010 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 00 00 00 00 20 20 00 00 00 00 20 20 20 20 00 00 |.... .... ..|
00000030 00 00 00 00 00 00 53 4f 4c 55 54 49 4f 4e 20 20 |......SOLUTION |
00000040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | |

Trying to key off of SOLUTION. Not sure what I am missing.

dat 3 "SOLUTION"

The only ones that seem to work are on the first line. Like so.

dat 0 "4"

I appreciate any and all assistance.

Re: Custom Files

Posted: 09 Aug 2016, 12:35
by driver
Seems like this should be an easy one. I don't see why I can't key off of anything other than the first line.