Lost+found directory

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
528
Reaction score
451
Credits
2,408
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
976
Reaction score
824
Credits
6,955
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,202
Reaction score
6,107
Credits
24,168
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

No members online now.

Top