What Is the Point Of The "lost+found" Folder?

If you run fsck, the filesystem check and repair command, it might find data fragments that are not referenced anywhere in the filesystem. In particular, fsck might find data that looks like a complete file but doesn't have a name on the system — an inode with no corresponding file name. This data is still using up space, but it isn't accessible by any normal means.

If you tell fsck to repair the filesystem, it will turn these almost-deleted files back into files. The thing is, the file had a name and location once, but that information is no longer available. So fsck deposits the file in a specific directory, called lost+found (after lost and found property).

Files that appear in lost+found are typically files that were already unlinked (i.e. their name had been erased) but still opened by some process (so the data wasn't erased yet) when the system halted suddenly (kernel panic or power failure). If that's all that happened, these files were slated for deletion anyway, you don't need to care about them.

Files can also appear in lost+found because the filesystem was in an inconsistent state due to a software or hardware bug. If that's the case, it's a way for you to find files that were lost but that the system repair managed to salvage. The files may or may not contain useful data, and even if they do they may be incomplete or out of date; it all depends how bad the filesystem damage was.

On many filesystems, the lost+found directory is a bit special because it preallocates a bit of space for fsck to deposit files there. (The space isn't for the file data, which fsck leaves in place; it's for the directory entries which fsck has to make up.) If you accidentally delete lost+found, don't re-create it with mkdir, use mklost+found if available.

Follow us on Twitter and Facebook!

-Until Next time


February 10 2020

Add or review comments

Please leave your comment

Existing comments

Comments 24

cialis online without prescription
Kamagra A Buon Mercato lapshusa [url=https://apcialiss.com/]Cialis[/url] Occura Dapoxetine No Prescripton Excina <a href=https://apcialiss.com/#>Cialis</a> spoulp Baclofene 60 Mg
re viagra cialis levitra haurrehigh [url=https://xbuycheapcialiss.com/]buy liquid cialis online[/url] Engeda Levitra Generique Avion
viagra dapoxetine <a href="http://llviabest.com/#">viagra george south africa</a> viking_sun viagra [url=http://llviabest.com/]online viagra usa[/url] ’
buy viagra online <a href="http://genqpviag.com/#">cheap viagra</a> red viagra [url=http://genqpviag.com/]ingredient in viagra[/url] ’
where to buy cheap viagra from an american company <a href="http://lightvigra.com/ ">viagra buy usa address overnight delivery</a> how much is viagra per pill
canadian pharmacy 365 <a href="http://online21rxon.com/ ">erectile dysfunction</a> canadian pharcharmy onlinecanadian online pharmacy
viagra substitutes over the counter <a href="http://viagerkr.com/ ">viagra\\</a> viagra sales online australia
canada meds <a href="http://canadianpharmnorx.com/ ">pharmacy prescription</a> medicine online shopping
viragecialis <a href="http://cialisvja.com/ ">purchase generic cialis</a> pharmacy online cialis
viagra without pprescription <a href="http://hopeviagrin.com/ ">ordering generic viagra online</a> viagra for premature ejaculation
canadian cialis <a href="http://happyrxpharmacy21.com/ ">vardenafil</a> best price prescription drugs
us pharmacy no prior prescription <a href="http://xuypharmacyonline.com/">no prescription pharmacy</a> mexican pharmacies
best sildenafil brand generic <a href="http://vigedon.com/ ">cheap viagra paypal </a> viagra price in usa
cashies loans wagga <a href="http://samcash21.com/ ">payday loans in brisbane</a> ace cash express title loan reviews
store selling viagra in tronto <a href="http://kloviagrli.com/ ">http://kloviagrli.com/ </a> buy viagra from usa
cialis brand vs generic <a href="https://jecialisbn.com/ ">cialis men without ed</a> cialis aus china
alien payday loan <a href="http://rirocash.com/ ">payday loans ontario california</a> payday loans midlothian richmond va
payday loans in new york state illegal <a href="http://ascashapply.com/ ">payday loans what is</a> standard chartered credit card cash advance interest
best cialis online <a href="https://buycialisxz.com/ ">http://buycialisxz.com/ </a> buy generic cialis atralia
side effect of viagra <a href="http://viagraonlinejc.com/ ">http://viagraonlinejc.com/ </a> does viagra really work
viagra pills for men <a href="http://viagratx.com/ ">what happens when a girl takes viagra</a> female viagra reviews
[url=https://dissertationahelp.com/]dissertation search[/url] dissertation review <a href="http://dissertationahelp.com/ ">theses and dissertations</a> dissertation literature review
[url=https://hcialischeapc.com/]generic cialis tadalafil[/url]
[url=https://thesiswritingtob.com/]thesis review[/url] help with writing a thesis <a href="http://thesiswritingtob.com/ ">editing thesis</a> thesis paper writing