Page 1 of 1

Looking for QNAP (TS-932x) ARM/aarch64 binaries of TestDisk and Photorec

Posted: 09 Feb 2021, 18:57
by benhainesuk
Hi all,

a few days ago I foolishly managed to delete a large collection of files on my QNAP TS-932X NAS which runs a Annapurna Labs ARM A-57 Cortex CPU. I have tried downloading the Marvell 88F628x ARM release, but it won't execute/run.

I'm hoping someone has managed to compile a version of Photorec for ARMv8 based CPUs they would be willing to share.

I should add that I have tried a large number of compiled versions for aarch64 (e.g. http://rpmfind.net/linux/rpm2html/searc ... (aarch-64)), however none are static builds and all require additional libraries which I've struggled to make work.

Many thanks, Ben

Re: Looking for QNAP (TS-932x) ARM/aarch64 binaries of TestDisk and Photorec

Posted: 25 Apr 2021, 09:42
by cgrenier
I don't have access to a QNAP using an aarch64 processor but I have tried to cross-compiled a suitable version.
Can you try https://www.cgsecurity.org/testdisk-7.2 ... nu.tar.bz2 ?

Code: Select all

cd /tmp
wget https://www.cgsecurity.org/testdisk-7.2-WIP.aarch64-QNAP-linux-gnu.tar.bz2
tar xjf testdisk-7.2-WIP.aarch64-QNAP-linux-gnu.tar.bz2
cd testdisk-7.2-WIP
./photorec
Be careful to store the recovered files on a remote share to avoid overwriting lost files. Avoid FAT32 for the destination as FAT32 doesn't handle file bigger than 4 GB and may trigger an error "Not enough free space".

Re: Looking for QNAP (TS-932x) ARM/aarch64 binaries of TestDisk and Photorec

Posted: 02 May 2021, 20:05
by wout
thanks @cgrenier!

I confirm this new version works on my QNAP TS-228A.

For anyone coming across this forum, as I didn't have a big enough disk handy, I created an Azure Storage account, and mounted the blob container using HybridSync. The mountpoint is then `/share/external/.cm/0/(randomguid)`. I suppose it works the same way using an S3 bucket or similar.

Using Photorec, however I couldn't seem to choose this hidden folder (`.cm`) as recovery destination, so I made a normal symlink to that folder.


Thanks a bunch!