Restore from lost+found

data-recoveryfscklost-found

There was a problem on an EXT4 FS/memorycard and after and fsck all the files were put in the lost+found.

Question: how can I restore the old filename/hierarchy from the lost+found? Or it is impossible? Not counting a restore from backup.

Best Answer

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.

Related Question