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

Relink directories to Main directory? #178

Open
mifritscher opened this issue Mar 21, 2022 · 1 comment
Open

Relink directories to Main directory? #178

mifritscher opened this issue Mar 21, 2022 · 1 comment

Comments

@mifritscher
Copy link

Scenario:

  • 1000 GB HDD with about 100k files
  • 200 MB defective Sektors
  • Bootsector + FAT seem to be ok
  • Main directory is broken (had only about 10 Entries)
  • Got a complete image from the disk (with dd_rescue, have also a list of defective sectors))

I need a functionality Scandisk from Win98 had: search for lost clusters in the FAT, detect the "highest level directories" (=the ones which are not connected to any other directory) and relink them to the main directory e.g. under found.000. Both dosfsck and chkdsk (from Winedows) can only recovery the leaf files, but not the directories - so the filenames are lost.

Is it planned to add this functionality to dosfsck? Or: how difficult would it be to add this? It need to have a detection of the directories while reading the lost cluster chains (should be doable by a magic detection of the beginning of every cluster chain), creating a data structure which directory links to which, and then link all unconnected directories to the main directory. The "normal" revocery of lost files can be done afterwards.

@pali
Copy link
Member

pali commented Apr 9, 2022

This looks like a nice feature request. If anybody wants to work on this, patches are welcome!

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

No branches or pull requests

2 participants