Live data from Hacker News

What is the purpose of the lost+found folder in Linux and Unix? (2014)

unix.stackexchange.com

1–10 of 95 posts

Re: What is the purpose of the lost+found folder in Linux and Unix? (2014)

#2
I had a lost+found folder in all Unix file systems I used since the 80s. It's where fsck places files that it found during a scan and can't figure out to which directory they belong. Sometimes I found stuff in there.

From what I googled XFS, Btrfs and ZFS don't use lost+found. It's a thing of the old not journaled filesystems and of the ext family.

Re: What is the purpose of the lost+found folder in Linux and Unix? (2014)

#6

lost+found is the Thumbs.db and .DS_Store of Linux

Not really, as it's only once per file system mount, whereas those Windows and MacOS files are sprinkled in most directories with images and almost every non-network drive directory respectively.

Re: What is the purpose of the lost+found folder in Linux and Unix? (2014)

#7

In a couple of decades running Linux installations of all flavours, I have never seen anything in lost+found!

Have to run fsck. This used to be forced about once a month but don’t remember it happening in the last decade or so.

Re: What is the purpose of the lost+found folder in Linux and Unix? (2014)

#8

In a couple of decades running Linux installations of all flavours, I have never seen anything in lost+found!

That's what the answers are missing, of course. In some filesystem formats, it's possible either to recover completely from a journal/intent log, or at least to recover everything to the point that recovered files can be placed into the correct directory.
Post reply on HN