Lost+found directory

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
518
Reaction score
447
Credits
2,304
What is the lost+found directory on an ext4 used for? Is it used at all and if it's not, is it OK if I delete it? Yesterday I migrated almost all of my partitions to ext4 and noticed that all ext4's have this empty directory.
 


kc1di

Well-Known Member
Joined
May 14, 2021
Messages
910
Reaction score
769
Credits
6,478
This page may also help your understanding. I would not delete those directories. They take up very little space and may be vital in recovery of important files at some point.
 

TheBearAK

New Member
Joined
Nov 17, 2021
Messages
10
Reaction score
5
Credits
100
My experience is that you delete them they just come right back. Debian and ext4.
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,117
Reaction score
5,994
Credits
23,565
Can't stop long now as about to head off for my evening meal DownUnder.

You can in fact delete them, once you have established that either there is nothing in them, or nothing of value.

Code:
sudo rm -rf lost+found

Cheers

Wiz
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top