Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestDisk not working with DSM 6.1.1 #2765

Closed
nardew opened this issue May 18, 2017 · 10 comments
Closed

TestDisk not working with DSM 6.1.1 #2765

nardew opened this issue May 18, 2017 · 10 comments

Comments

@nardew
Copy link

nardew commented May 18, 2017

For new Package Requests, see the guidelines

Setup

Package Name: TestDisk
Package Version: 7.0-2

NAS Model: DS215j
NAS Architecture: armv7l
DSM version: DSM 6.1.1-15101

Expected behavior

After running /usr/local/testdisk/bin/photorec or /usr/local/testdisk/bin/testdisk a console application should start.

Actual behavior

After running either of the binaries, they end with segmentation fault.

PhotoRec 7.0, Data Recovery Utility, April 2015
Christophe GRENIER [email protected]
http://www.cgsecurity.org
Segmentation fault (core dumped)

Steps to reproduce

Run installed binaries:
/usr/local/testdisk/bin/photorec
/usr/local/testdisk/bin/testdisk

Package log

None

Insert the package log here
None

Other logs

None

@ymartin59
Copy link
Contributor

Sorry I cannot reproduce as I have no access to a ARM based system. Testdisk package is correct on x86 / x86_64 platforms.

@ymartin59
Copy link
Contributor

I have just rebuilt package for armada375 with DSM 6.1 toolchains from my PR #2727. Packed as a zip because of GitHub restriction. May you please download, unpack and manually install this package to test it ? Thank you in advance
testdisk_armada375-6.1_7.0-2.spk.zip

@nardew
Copy link
Author

nardew commented May 25, 2017

Hello Yves, having installed manually the attached file testdisk/photorec is working properly! Thank you very much.

Just out of curiosity, could you tell me what was the issue?

@ymartin59
Copy link
Contributor

ymartin59 commented May 27, 2017

Hello. As packages available in repositories are built with DSM 5.x toolchain, there is high risk produced binary cannot work with DSM 6.1 glibc and kernel versions. I have no idea when DSM 6.1 packages may be published to repositories but it is probably time to do so.
Please close this issue. Regards

@nardew nardew closed this as completed May 28, 2017
@mav1
Copy link

mav1 commented Nov 6, 2018

I have just rebuilt package for armada375 with DSM 6.1 toolchains

Hello, please, can you built package for ds115j (dsm 6.1) ? It has armada370 processor...

@julienbenjamin
Copy link

julienbenjamin commented Nov 2, 2019

I have just rebuilt package for armada375 with DSM 6.1 toolchains from my PR #2727. Packed as a zip because of GitHub restriction. May you please download, unpack and manually install this package to test it ? Thank you in advance
testdisk_armada375-6.1_7.0-2.spk.zip

Could you build a DS414 (armadaxp) version for DSM6? Or at least tell how to make sure my toolchain and dependencies are correct to compile testdisk and photorec?

On my DS414, with the current community Synology packages it ends up like this:

$ /usr/local/testdisk/bin/testdisk -v
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <[email protected]>
http://www.cgsecurity.org

Version: 7.0
Compiler: GCC 4.6
Compilation date: 2015-07-22T09:35:32
ext2fs lib: none, ntfs lib: none, reiserfs lib: none, ewf lib: none, curses lib: ncurses 5.9
OS: Linux, kernel 3.2.40 (#24922 SMP Mon Aug 19 12:08:26 CST 2019) armv7l
Segmentation fault (core dumped)

Same for photorec. I suspect that it was not compiled to take into account this architecture. Since I cannot compiled testdisk/photorec myself, apparently because of issues with the toolchain, it seems to be a dead end for this model.

@julienbenjamin
Copy link

Anyone having the same issue with a DS414?

@hgy59
Copy link
Contributor

hgy59 commented Nov 10, 2019

@julienbenjamin there is a current PR #3795 for synocli-disk and it updates testdisk to version 7.1

on my armada370 (DS-115j) it shows like this:

admin@DSxxxxx:~$ testdisk -v
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <[email protected]>
https://www.cgsecurity.org

Version: 7.1
Compiler: GCC 4.9
ext2fs lib: none, ntfs lib: none, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1
OS: Linux, kernel 3.2.40 (#24922 Mon Aug 19 12:09:30 CST 2019) armv7l
admin@DSxxxxx:~$
admin@DSxxxxx:~$
admin@DSxxxxx:~$

You can clone the branch hgy59:synocli-disk or wait until the PR is merged and published.
If you clone the branch there is a do-it-yourself package that contains testdisk only in the folder /diyskp/testdisk.

@rp4k
Copy link

rp4k commented Nov 17, 2019

my issue is that after i install from the synologycommunity repo and i go to the directory using SSH and when i type "testdisk" nothing happens it says its a bad command.

DS716+
DSM 6.22

@hgy59
Copy link
Contributor

hgy59 commented Nov 17, 2019

@rp4k did you install "SynoCli Disk Tools v1.0-1"?
This package contains testdisk Version 7.1 and is available since 4 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants