Operating System - HP-UX
1833696 Members
3200 Online
110062 Solutions
New Discussion

Re: Recover files and directories from lost+found

 
logaraman
Regular Advisor

Recover files and directories from lost+found

Hi,

How do i recover files from lost+found directory
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Recover files and directories from lost+found

You have your job cut out for you.
Basically you have to take the date, size, permissions and ownership and then make a guess of its name and directory path.
Also you can use the file(1) command.

And then if a text file, you can also look inside.

If you have figured all that out, you just use mv(1) to move it back where it should be.
Kevin Wright
Honored Contributor

Re: Recover files and directories from lost+found

if you have a lot of files in lost+found,your probably better off restoring the filesystem from a backp.
rajdev
Valued Contributor

Re: Recover files and directories from lost+found

Hi,

The files/dir in lost+found may or may not be complete files. ie they can also be fragments and it is not easy to see each of them and put it back to its original location.

you should be doing this only if you have no other way of restoring from backup ...

Regards,
RD
logaraman
Regular Advisor

Re: Recover files and directories from lost+found

As per the forum, the data was restored from backup