07-04-2005
You won't know until fsck attempts to connect some files there. And even if that works, it may have been dangerous. The issue is available space in the directory. If there is room for another {name, inode} pair, there is no problem. mklost+found expands the directory and since directories do not shrink, it stays expanded. Most versions of fsck discard the file if there is no room.
I heard a rumor that some recent bsd fsck versions will expand the lost+found directory if needed. If that's true, I hope that it builds a list of these unconnected inodes and waits until after the free list has been rebuilt. Allocating a block from a garbled free list is not wise. And I assume it must give up if the free list is empty.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
after a crash of our SUN Server 220R on file system was corrupt
and I had run fsck getting a lost of files/dir's in the lost+found
of the file system loking like
drwxrwxr-x 2 lmxadmin DOS---- 512 Oct 31 21:04 #0007680
drwxrwxr-x 2 lammer DOS---- 512 Jan 29 09:29... (6 Replies)
Discussion started by: DPAI
6 Replies
2. UNIX for Advanced & Expert Users
Hi all
I am using SOLARIS 8 on Sun enterpris3000 server. Last night i got a file system corrupted adn some inconsistancy in the file system were shown when i run fsck -o p option.
Then i tried to fix it with fsck -F ufs -y /dev/md/rdsk/d1 option as i have given all yes response i cd not able to... (4 Replies)
Discussion started by: Prafulla
4 Replies
3. UNIX for Dummies Questions & Answers
what is the directory "lost+found" and how is it used? (2 Replies)
Discussion started by: Ben070371
2 Replies
4. UNIX for Advanced & Expert Users
hi all,
just wanted to know what is lost+found dir for?
tnx (1 Reply)
Discussion started by: bok
1 Replies
5. Solaris
If you delete your lost & found directory, how do you get it back, just do a mkdir? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
6. UNIX for Dummies Questions & Answers
Hi, upon reboot of our test solaris 9 box, I was prompted to run fsck on one of the filesystems (/var). This resulted in placing all the files in the lost+found directory. I have no backup. What are my options to place the files back to /var (from lost+found, is it possible?).
Appreciate any... (1 Reply)
Discussion started by: spricks
1 Replies
7. UNIX for Advanced & Expert Users
Does anyone have or know of a script to help sort and display a large lost+found directory? i've googled this but not much help
solaris 9
thanks (3 Replies)
Discussion started by: morrish
3 Replies
8. Shell Programming and Scripting
I need to try and sort 125gb of lost+found files and directories that look like from testing the files are good in some areas. Does anyone know of a script using strings, file, find, etc. to help sort something like this........can't find it on google.
thks:confused: (1 Reply)
Discussion started by: morrish
1 Replies
9. Red Hat
Hi All,
I am facing a problem of filesystem corruption,where i am trying to recover data with fsck -f <device name> ,now it restore the corrupted data in lost+found directory.Please let me know how to recover the data from lost+found directory.
Thanks,
Shailesh (1 Reply)
Discussion started by: sbapotikar
1 Replies
10. Red Hat
Hi,
What is lost+found in linux ?
Cheers,
snj (2 Replies)
Discussion started by: snjksh
2 Replies
LEARN ABOUT DEBIAN
virtual-filesystems
virtual-filesystems(7) Miscellaneous Information Manual virtual-filesystems(7)
NAME
virtual-filesystems - event signalling that virtual filesystems have been mounted
SYNOPSIS
virtual-filesystems [ENV]...
DESCRIPTION
The virtual-filesystems event is generated by the mountall(8) daemon after it has mounted all virtual filesystems listed in fstab(5).
mountall(8) emits this event as an informational signal, services and tasks started or stopped by this event will do so in parallel with
other activity.
This event is typically used by services that must be started in order to mount other filesystems. When this event occurs, common filesys-
tems such as /usr may not be mounted. For most normal services the filesystem(7) event is sufficient.
EXAMPLE
A service that wishes to be running once virtual filesystems are mounted might use:
start on virtual-filesystems
SEE ALSO
mounting(7) mounted(7) local-filesystems(7) remote-filesystems(7) all-swaps(7) filesystem(7)
mountall 2009-12-21 virtual-filesystems(7)