Re: folder lost+found missing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Hongwei Li <hongwei@xxxxxxxxx>:

> > fre 2005-03-04 klockan 12:57 -0600 skrev Hongwei Li:
> >> Hi,
> >>
> >> The folder lost+found in the partition /tmp of my fc3 system is missing.
> >> All other partitions have it.  What is the usage of lost+found folder?
> >> Do
> >> I need to create it for /tmp?  If yes, just run mkdir ...?  Do I need to
> >> do anything special for it?
> >
> > Hmm... According to https://bugzilla.redhat.com/143526 it is not the
> > case that tmpwatch (the program that regularly cleans /tmp) may
> > accidentally remove /tmp/lost+found. So I can't explain that.
> >
> > /abo
>
> But my question is: do I need to create it and do something special?  It
> was there when I first setup this fc3 system.  Also, why does the system
> need it?

If /tmp is actually a separate partition, then you should have a lost+found
directory.  The key is that it needs to be grown to the needed size before
hand, because fsck cannot grow it during a reboot.

Here is a quick script;

# mkdir lost+found
# chown root:root lost+found
# chmod 700 lost+found
# cd lost+found
# pwd
/scratch/lost+found <-- make sure you are in the right place
# nofiles=0
# while [ "$nofiles" -le 650 ]
> do
> /usr/ucb/touch $nofiles
> nofiles=`expr $nofiles + 1`
> done
# ls
[snip] <--- see that you have 650 files
# rm ./* <--- delete those files
# cd ..
# ls -ld lost+found
drwx------ 2 root root 8192 Feb 11 15:44 lost+found

> Thanks a lot!
>
> Hongwei

I hope that helps.
Sakshale

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux