/bin/sh: ./photorec: not found

Utiliser PhotoRec pour récupérer des données perdues
Locked
Message
Author
xtof
Posts: 2
Joined: 03 Apr 2022, 21:31

/bin/sh: ./photorec: not found

#1 Post by xtof »

Bonjour,

Je cherche à récupérer des fichiers sous Linux avec photorec, sauf que l’exécutable ne fonctionne pas , alors que testdisk fonctionne bien.
Avez vous une idée ?

Voici le détail :

1/ je suis sous :
Linux 3.4.11+ #1 SMP PREEMPT Wed Jun 6 12:02:19 UTC 2018 armv7l GNU/Linux
BusyBox v1.25.0 (2018-06-06 11:57:26 UTC) multi-call binary.

2/ j'ai récupéré testdisk-7.2-WIP.arm-none-linux-gnueabi.tar.bz2 :
>> Le but est de recupéré des fichiers (video) effacés

-rwxrwxrwx 1 root root 216 Jan 1 00:43 AUTHORS
-rwxrwxrwx 1 root root 2049 Jan 1 00:43 Android.mk
-rwxrwxrwx 1 root root 17987 Jan 1 00:43 COPYING
-rwxrwxrwx 1 root root 232308 Jan 1 00:43 ChangeLog
-rwxrwxrwx 1 root root 117 Jan 1 00:43 INFO
-rwxrwxrwx 1 root root 19633 Jan 1 00:43 NEWS
-rwxrwxrwx 1 root root 2191 Jan 1 00:43 README.md
-rwxrwxrwx 1 root root 2256 Jan 1 00:43 README_dev_photorec.txt
-rwxrwxrwx 1 root root 344 Jan 1 00:43 THANKS
-rwxrwxrwx 1 root root 40 Jan 1 00:43 VERSION
-rwxrwxrwx 1 root root 504 Jan 1 00:43 documentation.html
-rwxrwxrwx 1 root root 373192 Jan 1 00:43 fidentify
-rwxrwxrwx 1 root root 914 Jan 1 00:43 fidentify.8
drwxrwxrwx 2 root root 4096 Jan 1 00:38 jni
drwxrwxrwx 2 root root 4096 Jan 1 00:38 l
-rwxrwxrwx 1 root root 2235492 Jan 1 00:43 photorec
-rwxrwxrwx 1 root root 1171 Jan 1 00:43 photorec.8
-rwxrwxrwx 1 root root 298 Jan 1 00:43 readme.txt
-rwxrwxrwx 1 root root 2703748 Jan 1 00:43 testdisk
-rwxrwxrwx 1 root root 1756 Jan 1 00:43 testdisk.8

3/ "testdisk" fonctionne mais pas "photorec"

./testdisk --version
=========================================
TestDisk 7.2-WIP, Data Recovery Utility, March 2022
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Version: 7.2-WIP
Compiler: GCC 4.2
Compilation date: 2022-03-26T12:12:22
ext2fs lib: 1.42.8, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 5.5
OS: Linux, kernel 3.4.11+ (#1 SMP PREEMPT Wed Jun 6 12:02:19 UTC 2018) armv7l

./photorec --version
=========================================
/bin/sh: ./photorec: not found

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

Re: /bin/sh: ./photorec: not found

#2 Post by cgrenier »

testdisk est un binaire statique mais photorec et fidentify sont dynamiques, ils utilisent les librairies présentes sur le système.
Une librairie doit manquer, lance un

Code: Select all

ldd ./photorec
pour obtenir l'information.

xtof
Posts: 2
Joined: 03 Apr 2022, 21:31

Re: /bin/sh: ./photorec: not found

#3 Post by xtof »

D’accord merci pour la commmande.
pour info j’avais fais le point sur les libraires jpeg
Voici le résultat 😅 en pièce jointe.

Qu’est-ce que je dois comprendre 😅
Attachments
67B4A254-266C-4A9E-8E79-289B8C8A7CE3.jpeg
67B4A254-266C-4A9E-8E79-289B8C8A7CE3.jpeg (399.45 KiB) Viewed 15011 times

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

Re: /bin/sh: ./photorec: not found

#4 Post by cgrenier »

photorec est bien dynamique. Qu'est-ce que cela donne avec https://www.cgsecurity.org/photorec_arm ? (Le placer dans le même répertoire que ./photorec et utiliser ./photorec_arm )

Code: Select all

cgrenier@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l GNU/Linux
cgrenier@raspberrypi:~ $ wget -N https://www.cgsecurity.org/testdisk-7.2-WIP.arm-none-linux-gnueabi.tar.bz2
--2022-04-13 14:10:16--  https://www.cgsecurity.org/testdisk-7.2-WIP.arm-none-linux-gnueabi.tar.bz2
Resolving www.cgsecurity.org (www.cgsecurity.org)... 193.168.50.236
Connecting to www.cgsecurity.org (www.cgsecurity.org)|193.168.50.236|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2357807 (2.2M) [application/x-bzip2]
Saving to: ‘testdisk-7.2-WIP.arm-none-linux-gnueabi.tar.bz2

testdisk-7.2-WIP.arm-none-linux-gnueabi.tar.bz2             100%[=========================================================================================================================================>]   2.25M  6.82MB/s    in 0.3s

2022-04-13 14:10:17 (6.82 MB/s) - ‘testdisk-7.2-WIP.arm-none-linux-gnueabi.tar.bz2’ saved [2357807/2357807]

cgrenier@raspberrypi:~ $ tar xjf testdisk-7.2-WIP.arm-none-linux-gnueabi.tar.bz2 
cgrenier@raspberrypi:~ $ cd testdisk-7.2-WIP/
cgrenier@raspberrypi:~/testdisk-7.2-WIP $ ldd ./photorec
        linux-vdso.so.1 (0x7eef9000)
        /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0x76f77000)
        libncurses.so.5 => /lib/arm-linux-gnueabihf/libncurses.so.5 (0x76f35000)
        libjpeg.so.62 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.62 (0x76eef000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76ec2000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d74000)
        /lib/ld-linux.so.3 => /lib/ld-linux-armhf.so.3 (0x76f8c000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76d61000)
        libtinfo.so.5 => /lib/arm-linux-gnueabihf/libtinfo.so.5 (0x76d32000)

Locked