3

My XFS went through a failure, which I recovered from using xfs_repair -L. As a result, several of my files were corrupted and my lost+found directory had many files/directories created in it which are in the several hundreds of GB (my production system is in the order of TB's)

I have everything backed up, and have restored what was needed. Is it safe to delete the contents of lost+found? Does the OS somehow use it to reference some of my files?

  • 1
    The contents of the Lost+Found directory are for files that have lost their names in some capacity due to corruption. Since recovering them implies that we need a place to put them, they get stuffed into lost+found with unique names. They will not be linked to anything in this state, and nothing will be using them. Best to recover from backup as you did, as finding out where these files are supposed to belong and what their names are supposed to be is a job for your worst enemy. – Spooler Mar 5 '18 at 6:44
6

It is safe to delete it. lost+found is for the corrupted files, and when they were sorted, it may be deleted. It will be recreated by OS if kind of those files come around again.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.