News for hackers. Stuff that matters.
Re:What is the purpose of the lost+found folder in Linux and... by FerretFred on Sunday June 07, 2026 @02:13PM (#48437270)
In a couple of decades running Linux installations of all flavours, I have never seen anything in lost+found!
Re:What is the purpose of the lost+found folder in Linux and... by pixl97 on Sunday June 07, 2026 @02:44PM (#48437499)
Yea, run an old kernel with ext2 on a busy system writing a bunch of small files and have a power supply fail and you'll end up with something there.

fsck on large hard drives was scary on how long it could take to finish.

Re:What is the purpose of the lost+found folder in Linux and... by Sophira on Sunday June 07, 2026 @03:16PM (#48437702)
The occassional "Drive has not been checked in <n> days, forcing check" message on bootup got annoying sometimes, yeah. It could easily take tens of minutes to finish, exactly when I wanted to use the computer!

(At least this is what my memory is telling me. I could be mistaken, but that's what I remember.)

Re:What is the purpose of the lost+found folder in Linux and... by jleedev on Sunday June 07, 2026 @06:55PM (#48439469)
"check forced", as though the machine is advising me to go look at some daemon named forced.
Re:What is the purpose of the lost+found folder in Linux and... by nosioptar on Sunday June 07, 2026 @08:40PM (#48440152)
Forced sounds like a systemd service for Jedi stuff.
Re:What is the purpose of the lost+found folder in Linux and... by DonHopkins on Monday June 08, 2026 @01:03AM (#48441495)
These are not the inodes you're fscking for.
Re:What is the purpose of the lost+found folder in Linux and... by b112 on Sunday June 07, 2026 @07:05PM (#48439563)
I had a largish raid back then, under ext2, may have been a massive 40G.

I recall going to sleep and it still not being done when I woke up. Bleh.

Re:What is the purpose of the lost+found folder in Linux and... by wpollock on Sunday June 07, 2026 @08:00PM (#48439910)
One of several reasons to partition a large volume into smaller ones. At least, back then.
Re:What is the purpose of the lost+found folder in Linux and... by coldpie on Monday June 08, 2026 @09:24AM (#48445053)
I always turned this off, and also, cursed myself when I forgot to turn it off.
Re:What is the purpose of the lost+found folder in Linux and... by lokar on Sunday June 07, 2026 @02:27PM (#48437366)
You need to use worse hardware and bad power :)
Re:What is the purpose of the lost+found folder in Linux and... by pkaye on Sunday June 07, 2026 @03:26PM (#48437757)
I used to develop SSD firmware and one of things I worked on is making it robust to power failure. The power supplies have lots of capacitance so the voltage drop was slow so we would use a special test board that would disconnect from power and discharge fast to test it.
Re:What is the purpose of the lost+found folder in Linux and... by doublepg23 on Sunday June 07, 2026 @04:13PM (#48438099)
Thank you for your service!
Re:What is the purpose of the lost+found folder in Linux and... by lokar on Sunday June 07, 2026 @05:15PM (#48438639)
My main experience is with pre-scsi/ide systems :)
Re:What is the purpose of the lost+found folder in Linux and... by esafak on Sunday June 07, 2026 @08:59PM (#48440253)
ESDI?
Re:What is the purpose of the lost+found folder in Linux and... by lokar on Monday June 08, 2026 @11:33AM (#48446707)
SMD
Re:What is the purpose of the lost+found folder in Linux and... by ExoticPearTree on Monday June 08, 2026 @07:42AM (#48444100)
You would flush the SSD memory to "disk", right?

When you have dirty writes in the kernel that have not yet been written to disk, in the old days of ext2 (before XFS was ported to Linux) if the power would go out, or you would have a bad disk, when fsck.ext2 would run, if files could not be matched to a directory, they would placed in the /lost+found as, and hopefully my memory is intact, as inode numbers, so you would have 1232342343, 123246564 etc and then you would have to look at each file to figure out what it was and where to move it if it was salvageable.

Brought back some memories.

Re:What is the purpose of the lost+found folder in Linux and... by pkaye on Monday June 08, 2026 @10:25PM (#48455476)
The testing was at the drive level without an OS like ext2. The test was with no flush (with flush test is easy to pass). Without PLP, the pass criteria is that the data that was buffered can be either the older or newer data and not corrupted or previous data. All the other blocks on the SSD should remain unchanged. Its trickier that you think because MLC/TLC NAND could corrupt other blocks due to NAND structure and we had to deal with that. Then you also have to worry about system data in the NAND doesn't get corrupted.
Re:What is the purpose of the lost+found folder in Linux and... by marcosdumay on Sunday June 07, 2026 @03:04PM (#48437633)
And more concurrent writes.

But I think ext4 will only let things appear there if you change some default flags.

Re:What is the purpose of the lost+found folder in Linux and... by FerretFred on Sunday June 07, 2026 @02:38PM (#48437458)
Umm .. how about a Raspberry Pi Zero 2W powered by a 2000MaH " lipstick style" powerbank?
Re:What is the purpose of the lost+found folder in Linux and... by comboy on Sunday June 07, 2026 @07:26PM (#48439703)
Yeah, I think lack of any decent hardware RAID could be a prerequisite.
Re:What is the purpose of the lost+found folder in Linux and... by JdeBP on Sunday June 07, 2026 @02:33PM (#48437408)
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.
Re:What is the purpose of the lost+found folder in Linux and... by mixmastamyk on Sunday June 07, 2026 @02:32PM (#48437401)
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... by arendtio on Sunday June 07, 2026 @02:35PM (#48437433)
Same here. And I had some pretty f**ed up file systems.

At one point, I had one where the directory structure was completely broken and had circles in it (broken SSD). To be fair, in that particular case, I did not look for lost+found and just wrote a tool to extract the data manually that I was looking for.

Re:What is the purpose of the lost+found folder in Linux and... by int0x29 on Sunday June 07, 2026 @02:37PM (#48437456)
My SD cards have always had stuff in that folder. It scares me. I try not to look
Re:What is the purpose of the lost+found folder in Linux and... by cobbaut on Monday June 08, 2026 @10:11AM (#48445630)
> In a couple of decades running Linux installations of all flavours, I have never seen anything in lost+found!

I saw it often. Running fsck on a crashed/failed partition usually does put some files in there. Maybe I kept using old hardware too long...