I lost my 'lost+found' directory!

I lost my 'lost+found' directory!

Post by Jyi-Jiin L » Wed, 14 Dec 1994 11:33:28



Somehow(don't ask me how, i already lose track of it) i lost my
'lost+found' directory of my root file system. The system seems to be
working fine without it. But i wish to be able to get it back but don't
know how. Hopefully somebody can answer my questions:

1. What does 'lost+found' do?

2. Is it a terrible thing to lose 'lost+found'?

3. How do i creat 'lost+found'? Can i just mkdir it?

Luo

Northwestern University

 
 
 

I lost my 'lost+found' directory!

Post by Sergei Vizny » Wed, 14 Dec 1994 14:01:32



>Somehow(don't ask me how, i already lose track of it) i lost my
>'lost+found' directory of my root file system. The system seems to be
>working fine without it. But i wish to be able to get it back but don't
>know how. Hopefully somebody can answer my questions:

>1. What does 'lost+found' do?

>2. Is it a terrible thing to lose 'lost+found'?

Interesting question.
I'm running Linux for 1.5 years without any "lost+found"
directory and never thought there maybe a need for one..
Indeed what is it for?

Quote:>3. How do i creat 'lost+found'? Can i just mkdir it?

thereis special mklost+found command

Good Luck
Serge

>Luo

>Northwestern University



 
 
 

I lost my 'lost+found' directory!

Post by Daniel Quinl » Wed, 14 Dec 1994 14:23:36



> Somehow(don't ask me how, i already lose track of it) i lost my
> 'lost+found' directory of my root file system. The system seems to
> be working fine without it. But i wish to be able to get it back but
> don't know how. Hopefully somebody can answer my questions:
> 1. What does 'lost+found' do?

It is where "lost and found" files end up after damage is fixed via
fsck.

Quote:> 2. Is it a terrible thing to lose 'lost+found'?

Only if something you lost was still in it.

Quote:> 3. How do i creat 'lost+found'? Can i just mkdir it?

Type `mklost+found' as root (for ext2 filesystems).

Dan
--

 
 
 

I lost my 'lost+found' directory!

Post by Karl Key » Thu, 15 Dec 1994 20:39:30



Quote:>Somehow(don't ask me how, i already lose track of it) i lost my
>'lost+found' directory of my root file system. The system seems to be
>working fine without it. But i wish to be able to get it back but don't
>know how. Hopefully somebody can answer my questions:

>1. What does 'lost+found' do?

It collects all the stuff that was trashed from a crash - lost files & clusters.

Quote:>2. Is it a terrible thing to lose 'lost+found'?

Not really - depends what was in it!  :-)

Quote:>3. How do i creat 'lost+found'? Can i just mkdir it?

Check out 'mklost+found'

Karl

-------------------------------------------------------------------------
Vitrociset S.p.A.                               Tel   : +(49) 6151 902041
European Space Agency                           Fax   : +(49) 6151 904041

 
 
 

I lost my 'lost+found' directory!

Post by Raj Math » Wed, 21 Dec 1994 20:46:14





    >> Somehow(don't ask me how, i already lose track of it) i lost my
    >> 'lost+found' directory of my root file system. The system seems
    >> to be working fine without it. But i wish to be able to get it
    >> back but don't know how. Hopefully somebody can answer my
    >> questions:
    >>
    >> 1. What does 'lost+found' do?
    >>
    >> 2. Is it a terrible thing to lose 'lost+found'?

    Sergei> Interesting question.  I'm running Linux for 1.5 years
    Sergei> without any "lost+found" directory and never thought there
    Sergei> maybe a need for one..  Indeed what is it for?

Caveat: The following is based on what I remember from AT&T Version 7
and System III UNIX. Possibly Linux does some or all of these things
differently.

As you know, filenames in Linux (or any UNIX) are just that -- names.
The actual information about the file (size, disk block addresses,
dates and times, etc.) is stored in something called an inode, and the
name in the directory just points to the inode. Inodes reside in an
(what else?) inode table, near the beginning of each filesystem on
your disk.

Now what happens when an inode contains some information but there is
no directory entry pointing to it? It's a valid file without a name,
an orphan if you'd like to call it that. When fsck checks your disk,
one of the things it does is look for these orphaned inodes and
reconnect them to a special directory under some non-intuitive name.
(Actually it uses the inode number as the name.) The special directory
is called lost+found, and there needs to be one in the root directory
of every filesystem (roughly equivalent to disk partition) on your
disk(s).

Why? Why not just reconnect the orphaned inodes to any old directory?
Two reasons I can think of: 1. It's simpler to find lost files in a
well-known place rather than hunt around the whole filesystem. 2. Most
important: the filesystem is (potentially) unstable while fsck is
running, so fsck needs an existing directory _with_free_slots_ to
connect orphaned inodes to. AFAIK mklost+found does not do anything
special: it just creates the lost+found directory, creates lots of
empty files in it and then deletes those files, leaving those slots in
the directory free for fsck's use. You can do it manually if you want.

Hope this helps :-)
--
---
Raj Mathur                      Senior Manager (Information Services)
                                The Times of India Group
                                Times House, 7 Bahadurshah Zafar Marg
                                New Delhi - 110 002, India
Phone:  +91-11-3719425, 3718844, 3312277 extn 507, 583

 
 
 

1. URGENT: lost 'rsh', 'smb', and 'cd ~'

I have, in a matter of twenty minutes, lost the ability to 'cd' to my home
directory, no matter what user I'm logged in as. Also, I lost 'rsh' and all
Samba access. I have no idea what's going on! The only thing I did was
change settings for one user in Linuxconf.

I have 'xhost +hostname' for every host that needs to use rexec. Plus, I
have a .rhosts file in my user directory with all hosts I might start a
remote X session from. When I log in on SSH or at the command line, I get
"bash: /home/user/.bashrc: Permission denied", but I can still log in. I
can't 'cd' to the home directory, but I can 'cd' to any other directory
owned by that user.

I use rsh to login from XWin32. That quit working. I use Samba to map Linux
home directories on my Win98 box. That quit working.

I'm LOST! Please help!

Dean.
--
morpheus [at] directlink [dot] net
http://www.Apt7.com

2. inn : how to get all the articles of an old inn server

3. 43P/v4.2.1 HANGS on '# ls -R /u1/lost+found'

4. Is there a way to create a 'false' socket descriptor for select()?

5. LOST LOST LOST

6. GoldStar 17 inch Monitor & X

7. fsck'd and lost my top directory

8. NVidia tnt2 install problem

9. Why have I lost 12MB to lost+found ?

10. What's lost+found

11. can't delete items in lost+found

12. can't remove files from lost+found

13. Run away "rmdir /mnt/lost+found/#3423" won't die !