Lost+found directory

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
488
Reaction score
416
Credits
2,000
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
623
Reaction score
558
Credits
4,377
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
6,876
Reaction score
5,666
Credits
21,602
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!


Top