New answers tagged lost-found
You can't find the original name and location of a file in /lost+found because that's what lost+found is about: it's where fsck puts fragments of files that it hasn't been able to attach anywhere in the directory tree. If the location was known, fsck would have left the file where it was meant to be. It's theoretically possible that fsck could have only ...
The real answer is that you shouldn't try. You have no idea if the contents are complete. You should restore from a known good copy.
Last time I had to do that - many years ago - you had to guess based on file content. I doubt there is a better way today. The 'file' program can help here since it will give you an idea of the type of data, so you can use this to view the files appropriately for a start.
Top 50 recent answers are included