It's strange but after filesystem damage some folders/directories are now shown as files instead of directories ?
I would be very grateful if someone was able to help me to correct the filesystem and/or try to find where the files are, now ?
Thanks a lot in advance for your help !
You fsck the thing, and then restore from backup if that doesn't fix things. You could use
debugfs
to modify the filesystem to make things directories again, but quite honestly you'll spend far longer hunting down every problem and fixing it (and how will you get an exhaustive list of everything that's actually broken?) than you will just restoring from backup. That's assuming that the damage is limited to flipping mode bits; if there's actual file corruption, all bets are off.