Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lost-found]

The “lost+found” directory at the root of a filesystem is where the filesystem repair command, “fsck” puts chunks of data that do not belong to any file. Use this tag for questions relating to this directory and/or how it’s used by the filesystem repair process. Do not use this tag for questions about files or directories that are somehow missing from the filesystem.

0
votes
1answer
47 views

If a directory is put in lost+found after running fsck, will it contain all of the original contents?

Let's say I have the following directory structure, in an ext4 filesystem: a/b/{1..9} (in other words, a/b/1, a/b/2, ... a/b/9) Suppose I am writing to a/b, and then I lose power. fsck runs and ...
1
vote
2answers
371 views

Should lost+found directories always be owned by root?

I'm using a script that creates file systems for specific users. One of the last operations of the script is a chown -R of the mount point to the user. This has the side effect to make the user the ...
2
votes
1answer
84 views

/var/lib/dpkg/ disappeared after fsck

All apt-like commands failed to create the lock file, because /var/lib/dpkg/ doesn't exist. Also, /lost+found/ has contents: pi@pi-top:~ $ sudo ls -al /lost+found/ total 102456 drwx------ 11 root ...
2
votes
1answer
93 views

What are the conditions that qualify a file as lost and found?

For files that fsck places in lost+found directory, under what circumstances does fsck consider a file to be lost, I have the following in my mind: For regular files: 1) If the inode links count is ...
-1
votes
1answer
710 views

What is inode number of lost + found directory in Linux?

I used this to find the inodes, but can't locate lost + found in it find . -printf '%i\n' | sort -u | wc -l
0
votes
2answers
1k views

lost folder from /mnt and recovering

I'm running Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-48-generic x86_64) on Amazon AWS. I had a folder "foo" in the /mnt and after few modification I had to recover to previous backup of the instance . ...
5
votes
1answer
475 views

Why is the directory /lost+found 16K instead of 4K bytes?

I was in the root direction, /, and I did ls -lah for whatever reason and looked at the folder sizes. I noticed that the folder lost+found has a size of 16K, while all of the other directories has a ...
1
vote
3answers
769 views

Where are my saved files in home folder?

I reinstalled my UBUNTU 12.04 after facing some crashing issues with my software. I have separate partitions for / and /home. Output of df -h: root@sougata-SATELLITE-L750:/home# df -h Filesystem ...
7
votes
5answers
11k views

Restore from lost+found

There was a problem on an EXT4 FS/memorycard and after and fsck all the files were put in the lost+found. Question: how can I restore the old filename/hierarchy from the lost+found? Or it is ...
2
votes
3answers
4k views

File missing after fsck

Recently, my HDD crashed and I had to run a fsck command. Many files were moved to the lost+found folder and I've retrieved the important ones using find and grep, but I can't find my SQL databases. ...
10
votes
4answers
913 views

Can you have multiple lost and found directories?

I was unaware of the mklost+found command until I read this question. The mklost+found command will make a new lost+found directory in the pwd. Why would you ever need to run this command? The lost+...
3
votes
1answer
653 views

Busybox NAS appliance

I have a NAS appliance that crashed last weekend. The IT guys apparently / maybe didn't recover it in the right way? There's about 50,000 directories in a "lost+found" directory each with a numeric ...
618
votes
3answers
277k views

What is the purpose of the lost+found folder in Linux and Unix?

There is a folder at the root of Linux and Unix operating systems called /lost+found/ What is it for? Under what circumstances would I interact with it? How would I interact with it?