Coder Social home page Coder Social logo

Comments (6)

mkgrgis avatar mkgrgis commented on September 23, 2024

Additional information about environment

  • Ubuntu 22.04 and Debian 11 are available
  • aarch64 processor
  • testdisk detects ReiserFS 3.6 with standard journal and blocksize 4096 b, also disk size is normal
  • testdisk determines ReiserFS need recovery
  • reiserfsck --rebuild-sb ends with Unknown code er3k 127

from testdisk.

cgsecurity avatar cgsecurity commented on September 23, 2024

progsreiserfs and reiserfsprogs are not the same library. ReiserFS is deprecated in the Linux kernel and AFAIK nobody want to maintain progsreiserfs or reiserfsprogs.

It may be easier to put the disk(s) in an x86-64 computer and run the testdisk-7.2-WIP binary provided on www.cgsecurity.org

from testdisk.

mkgrgis avatar mkgrgis commented on September 23, 2024

progsreiserfs and reiserfsprogs are not the same library.

Thanks, @cgsecurity , I haven't knew.

ReiserFS is deprecated in the Linux kernel and AFAIK nobody want to maintain progsreiserfs or reiserfsprogs.

Yes, there is old and mainly stable non updatable functional in this packages. Only 2 crashes during 15+ years.

It may be easier to put the disk(s) in an x86-64 computer and run the testdisk-7.2-WIP binary provided on www.cgsecurity.org

Thanks, @cgsecurity , I' ll write about result.

from testdisk.

mkgrgis avatar mkgrgis commented on September 23, 2024

@cgsecurity , thanks for fast reply! testdisk-7.2-WIP works fine. Thanks for x86-64 compilation model and exec files. I consider you to publish full corresponding to x86-64 archive for aarch64 architecture, because there is only archive with libssp.so.0 unavailable on Ubuntu, Mint, Debian and Fedora.

In testdisk-7.2-WIP there is support of ReiserFS and it is detected on unpartitioned image with message "need recover", but list files gives only message about possible damage. My Unknown code er3k 127 in reiserfsck or other programs is popular message after 2019. Does testdisk supports some standard algorithms for this case or better switch to https://github.com/google/rescue-tools-reiserfs ?

from testdisk.

cgsecurity avatar cgsecurity commented on September 23, 2024

As testdisk is unable to list your files, you can try rescue-tools-reiserfs and/or photorec (shipped with testdisk).

from testdisk.

mkgrgis avatar mkgrgis commented on September 23, 2024

Hello, @cgsecurity !

My solution

  1. Unknown code er3k 127 and other unknown codes from ReiserFS programs is because ReiserFS signature sector was damaged, other data is around normal state.
  2. Make a file with 00 from /dev/zero with some large size (100Mb..1Gb).
  3. Format this file as ReiserFS with mkreiserfs -f.
  4. Install hexedit.
  5. View a file of new ReiserFS void image. Before 10000hex byte should be 00 only, then ReiserFS signature.
  6. Edit backup image of damaged disk partition and copy exact signature from file of void ReiserFS image. Partition size will be not correct, but this will not a problem later.
  7. reiserfsck --rebuild-sb - rebuild ReiserFS superblock and journal. There will be little problems or no problems.
  8. reiserfsck --rebuild-tree -S - repair inode stricture, search lost files and directories. Usually there will be little problems or no problems.
  9. Some usual reiserfsck cycles and mount repaired image to a place for data extracting and comparing.

Note: after step 7 testdisk also can list files from ReiserFS.

Note 2: rescue-tools-reiserfs and/or photorec wasn't usefully because ReserFS can repair itself ;-) Also technological data from SQLite haven't good signatures for photorec. Photorec is wonderful tool for standard image format data extract from HDDs and SSDs.

Thanks for wonderful tools and many years of work with neuritic people who have risk of data loss or have already lost it, but have not come to terms with it!

from testdisk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.