lost+found? (Solved)

Chat about anything related to Linux Mint

lost+found? (Solved)

Postby vance88 on Mon Oct 10, 2011 4:05 pm

One good explanation of what it is and why it is locked will do.
Thank you
Last edited by vance88 on Tue Oct 11, 2011 5:41 pm, edited 1 time in total.
vance88
Level 1
Level 1
 
Posts: 9
Joined: Tue Jul 26, 2011 9:07 am

Linux Mint is funded by ads and donations.
 

Re: lost+found?

Postby xenopeek on Mon Oct 10, 2011 4:23 pm

lost+found is used by the filesystem check (fsck). fsck looks for inodes (areas on the harddisk) that are marked as used (i.e., not in the free list) but do not have a directory entry pointing to them (i.e., these areas on the harddisk are not marked as free, but there is no file that is using them--which is an error). fsck will ask if you wish to reconnect these; if you say yes, it will try to create a file entry in the /lost+found directory on that filesystem.

So it is used to recover data after a filesystem error occurred; for example during power outage or such. With ext4 as default filesystem, this is occurring very infrequently (I haven't seen it ever). It is locked because recovery of lost+found data should be done by the administrator (root user), and not by normal users.

fsck is run automatically every so many boots (you have probably seen it during start-up).
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10563
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Chat about Linux Mint

Who is online

Users browsing this forum: No registered users and 5 guests