General
cancel
Showing results for 
Search instead for 
Did you mean: 

recovering files from lost+found folder

Chakravarthi
Trusted Contributor

recovering files from lost+found folder

Hi all,

how to recover files from lost+found.

thanks
chakri
4 REPLIES
Stuart Browne
Honored Contributor

Re: recovering files from lost+found folder

The contents of a file-system's '/lost+found/' should be files named by their old inode.

You should be able to reference/copy/move these as you would any other file on the filesystem.

You'd best ensure that the appropriate file has the contents you were expecting, and not a data-corruption.
One long-haired git at your service...
Chakravarthi
Trusted Contributor

Re: recovering files from lost+found folder

Yes, i see the inode numbers, is it possible to recover them with the previous file names..

thanks
chakri
Stuart Browne
Honored Contributor

Re: recovering files from lost+found folder

Erm, I'm not entirely certain that the file names are retained anywhere, but not 100% sure.

They might be in a log file, or the output of 'dmesg', as they might be in the output of the boot-up 'fsck' messages (don't think so though).

You can find out if the inode is currently in use by issuing:

find / -inum

But if the entire entry has been toasted, it won't help much.

Sorry, I have to admit to not having done much inode-level recovery of files.

Sorry.
One long-haired git at your service...
Saravanan_9
Advisor

Re: recovering files from lost+found folder