Skip to main content

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.

1 vote
1 answer
76 views

Accidentally Partially Removed RAID 1 Mount Point. Is My RAID Okay?

I accidentally ran sudo rm -r on my RAID 1 mount point. I immediately realized my error, panicked, and hit CTRL+C to cancel. Some damage was already done. The lost+found directory and some of my data ...
KnuppenSasper's user avatar
0 votes
1 answer
2k views

Does rsync process the lost+found directory by default?

I updated my rsync ignore file and used the --delete-excluded flag to remove now-redundant files from the destination side. rsync can't complete the task since I have the line lost+found/ in the said ...
user598527's user avatar
0 votes
1 answer
2k views

Is there a way to automatically restore system files from lost+found

I am running Debian Buster, and out of nowhere the file system of the root partition got corrupted. I wasn't doing anything out of the ordinary, just surfing the net basically, and at some point i ...
Enter Display Name Here's user avatar
-1 votes
1 answer
2k 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 ...
jj172's user avatar
  • 313
4 votes
2 answers
7k 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 ...
xenoid's user avatar
  • 9,338
2 votes
1 answer
457 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 ...
wizzwizz4's user avatar
  • 712
2 votes
1 answer
160 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 ...
direprobs's user avatar
  • 1,064
-1 votes
1 answer
2k 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
lsbmsb's user avatar
  • 47
0 votes
2 answers
5k 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 . ...
Ruwan Ranganath Senarathne's user avatar
5 votes
1 answer
2k 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 ...
cutrightjm's user avatar
  • 5,575
1 vote
3 answers
2k 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 ...
SougataPal's user avatar
12 votes
5 answers
28k 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 ...
user avatar
3 votes
3 answers
7k 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. ...
John's user avatar
  • 133
12 votes
4 answers
2k 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+...
spuder's user avatar
  • 18.6k
3 votes
1 answer
785 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 ...
user avatar

15 30 50 per page