All extensions not enabled ?

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
ktheking
Posts: 2
Joined: 19 Sep 2014, 17:16

All extensions not enabled ?

#1 Post by ktheking »

Hi all,

I'm trying to recover 3ds max files from an image of a reconstructed raid.
But in the options of photorec ,this extension is not listed.
Do I need to do something extra to enable some of the filesystem types list on on the wiki ?

Thanks for your suggestions.

Kind regards,

Koen

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

Re: All extensions not enabled ?

#2 Post by cgrenier »

3ds uses the doc/xls/ppt OLE based file format.

ktheking
Posts: 2
Joined: 19 Sep 2014, 17:16

Re: All extensions not enabled ?

#3 Post by ktheking »

Thanks Grenier for the reply.

That's what I figured out reading the code from the wiki meanwhile :oops: .

http://www.cgsecurity.org/wiki/File_For ... y_PhotoRec

Code: Select all

const file_hint_t file_hint_doc= {
  .extension="doc",
  .description="Microsoft Office Document (doc/xls/ppt/vsd/...), 3ds Max, MetaStock, Wilcom ES",
  .min_header_distance=0,
  .max_filesize=PHOTOREC_MAX_FILE_SIZE,
  .recover=1,
  .enable_by_default=1,
  .register_header_check=&register_header_check_doc
};
source : http://git.cgsecurity.org/cgit/testdisk ... file_doc.c

Question is , will it recover the file as .3ds file ,or as .doc file ?

My guess it'll return it with the extension .max instead of .3ds , correct ?

Code: Select all

	  case 12:
	    /* 3ds max */
	    if(memcmp(dir_entry->name, "S\0c\0e\0n\0e\0\0\0",12)==0)
	      return "max";
	    /* Licom AlphaCAM */
	    else if(memcmp(dir_entry->name,"L\0i\0c\0o\0m\0\0\0",12)==0)
	      return "amb";
	    break;

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

Re: All extensions not enabled ?

#4 Post by cgrenier »

Correct. If you get your files as .doc, please send me one of your .3ds files.

Locked