cgsecurity / testdisk

TestDisk & PhotoRec
https://www.cgsecurity.org/
GNU General Public License v2.0
1.66k stars 204 forks source link

Please add f2fs filesystem support for the great testdisk (not photorec) #137

Open cangling opened 1 year ago

cangling commented 1 year ago

I accidentally deleted all the files in a folder in my android phone. I used dd to make a mirror image of the data partition. The system uses FBE encrypted files, so all the files in the disk image are encrypted, and I cannot use testdisk on the computer restore files.

The phone storage is eMMC, and the file system is f2fs.

The files in TWRP recovery are decrypted, I need to use testdisk in TWRP recovery to restore the files in the specified directory,

I use testdisk from testdisk-7.2-WIP.arm-none-linux-gnueabi in TWRP recovery, prompting "./testdisk[1]: syntax error: unexpected '('"

I found this

[EXE] Static Linux binaries for ARM/Android (Cryptsetup, EncFS, F2FS-Tools, Testdisk, PhotoRec,..)

https://forum.xda-developers.com/t/exe-static-linux-binaries-for-arm-android-cryptsetup-encfs-f2fs-tools-testdisk-photorec.3709380/

This testdisk can run normally in TWRP recovery and see storage, prompt

Hint: Intel partition table type has been detected. Note: Do NOT select 'None' for media with only a single partition. It's very rare for a disk to be 'Non-partitioned'.

But the partition is not recognized.

I tried photorec, but it doesn't have the files I want.

Please support using testdisk in TWRP recovery Please support eMMC storage Please make testdisk support f2fs file system

Thank you!

erkinalp commented 8 months ago

I 💯 need this. I have a corrupted user profile partition formatted as f2fs which cannot be repaired by fsck.f2fs.