SUMMARY: lost+found lost

From: Harel (hareldv@netvision.net.il)
Date: Tue Jan 09 1996 - 16:09:03 CST


Hi and thanks for the replies

My question was

> the lost+found was lost some how and I want to recreate one. I know it's
> no good to mkdir because as much as I remember lost+found has to
> allocate inode 3. What way is there besides newfs ? ( can't relay on
> backups)

Well:

 It seems that the lost+found can allocate any inode entry.

 You have to make sure the directory is big enough (8k) to be used by
 fsck so you can create 650 empty files and then delete them
 here is the script that does it.

        #!/bin/sh
        # mklost+found - shell script for recreating lost+found
directory
        file.
 
        echo "Making lost+found directory..."
        /bin/mkdir ./lost+found
        /usr/etc/chown root ./lost+found
        /bin/chgrp wheel ./lost+found
        /bin/chmod 755 ./lost+found
 
        echo "Moving into lost+found directory..."
        cd ./lost+found
                     
        echo "Creating temporary files in lost+found directory..."
        nofiles=0
        while [ "$nofiles" -le 650 ]
        do
                /bin/touch $nofiles
                nofiles=`expr $nofiles + 1`
        done
        
        echo "Deleting temporary files in lost+found directory..."
         /bin/rm ./*

And above all fsck will create lost+found for me if it isn't there. A
phenomenon that didn't happened in my case.

Sorry I failed to write a subject to the question (I could sweare I
wrote one).

Thanks alot to:
---------------
jgotobed@LPL.Arizona.EDU (Joe Gotobed)
Marc Mason <mamason@ix.netcom.com>
jeffw@triple-i.com (Jeff Wasilko)
celeste@stokely.com (Celeste Stokely)
Anatoly.Lisovsky@kamaz.kazan.su (Anatoly M. Lisovsky)
Jay Lessert <jayl@lattice.com>
sweh@mpn.com (Stephen Harris)
tim@ben.dciem.dnd.ca
Anderson McCammont <and@morgan.com>
Jens Fischer <jefi@kat.ina.de>
bern@penthesilea.uni-trier.de (Jochen Bern)
eric@xylan.com (Eric Peterson)
Stephen Schaefer <stephen.schaefer@imonics.com>
misik@alpha.dcs.fmph.uniba.sk (Andrej Misik)

-- 
Harel
---
Hareldv@netvision.net.il

\||/ ( ) _____||_____ (_____ _____) | | / \ | /\ | _/ | | \_ /___/ \___\



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:51 CDT