Terminfo file is missing

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
Message
Author
davidwilsonclarke
Posts: 6
Joined: 14 Dec 2015, 21:55

Terminfo file is missing

#1 Post by davidwilsonclarke »

Getting a 'Terminfo file is missing' error on running photorec from testdisk-7.0.arm-none-linux-gnueabi on a QNAP NAS box. I see that this has been a problem previously, and I can confirm that 'l/linux' does exist. I notice there was a fix for this recently. Was it missed from this build?

Thanks

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

Re: Terminfo file is missing

#2 Post by cgrenier »

Code: Select all

tar tvjf testdisk-7.1-WIP.arm-none-linux-gnueabi.tar.bz2
drwxr-xr-x kmaster/kmaster   0 2015-12-14 10:22 testdisk-7.1-WIP/
-rwxr-xr-x kmaster/kmaster 2368996 2015-12-14 10:22 testdisk-7.1-WIP/testdisk
-rw-r--r-- kmaster/kmaster     216 2007-11-11 17:21 testdisk-7.1-WIP/AUTHORS
-rw-r--r-- kmaster/kmaster   17987 2006-06-16 00:01 testdisk-7.1-WIP/COPYING
-rw-r--r-- kmaster/kmaster   18588 2015-04-18 15:33 testdisk-7.1-WIP/NEWS
drwxr-xr-x kmaster/kmaster       0 2015-12-14 10:22 testdisk-7.1-WIP/l/
-rw-r--r-- kmaster/kmaster    1794 2015-06-18 00:26 testdisk-7.1-WIP/l/linux <--
The file is present in the archive.
Extract the archive using

Code: Select all

tar xjf testdisk-7.1-WIP.arm-none-linux-gnueabi.tar.bz2

davidwilsonclarke
Posts: 6
Joined: 14 Dec 2015, 21:55

Re: Terminfo file is missing

#3 Post by davidwilsonclarke »

Yes, the 'linux' file is there, as I said, but the program, when run, still gives an 'Terminfo file is missing' error.

davidwilsonclarke
Posts: 6
Joined: 14 Dec 2015, 21:55

Re: Terminfo file is missing

#4 Post by davidwilsonclarke »

Just tried testdisk-7.1-WIP.arm-none-linux-gnueabi.tar.bz2 and get the same: the 'l/linux' file is there, but still get the 'Terminfo file is missing' error message.

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

Re: Terminfo file is missing

#5 Post by cgrenier »

Is the file "linux" in a subdirectory named "l" ? Have you really use the tar command and not Winzip/winrar/...

davidwilsonclarke
Posts: 6
Joined: 14 Dec 2015, 21:55

Re: Terminfo file is missing

#6 Post by davidwilsonclarke »

Did the exact tar command as shown above. The 'linux' file is in the 'l' directory. Still get 'Terminfo file is missing'.

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

Re: Terminfo file is missing

#7 Post by cgrenier »

Before starting TestDisk or PhotoRec, run

Code: Select all

export TERM=linux
Does it solve the problem ?

davidwilsonclarke
Posts: 6
Joined: 14 Dec 2015, 21:55

Re: Terminfo file is missing

#8 Post by davidwilsonclarke »

Oh, I thought that was going to be the one. Unfortunately, it had no effect.

flowjo
Posts: 1
Joined: 27 Dec 2015, 20:41

Re: Terminfo file is missing

#9 Post by flowjo »

Does any one has a solution for this problem ?

I have the same problem:
"Terminfo file is missing'

I installed testdisk-7.1-WIP on location
volume1/Shared/public/testdisk-7.1-WIP
login with putty on my Synology DS211+ and start photorec by:
./photorec

And than we get the following information :
Terminfo file is missing
Extract all files and subdirectories before running the program

-Directory "l" with the file linux is there and I tryed exact by tar xjf

What else can I do please help me ?

davidwilsonclarke
Posts: 6
Joined: 14 Dec 2015, 21:55

Re: Terminfo file is missing

#10 Post by davidwilsonclarke »

I gave up trying on my NAS box, in the end. I have a kit which attaches to a disk, to turn it into a USB disk. I used that, then ran photorec on a laptop.

Locked