Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lost+found missing

Status
Not open for further replies.

maista

IS-IT--Management
Jan 19, 2005
6
US
hello all,

i dont know wy this dir. is missing.
how to create the lost+found dir. on solaris 9?
regards

maista
 
hello,

thanks but thats not so easy.
mkdir lost+found creates a 512 kb dir.
lost+found directories have round about 8912 kb.


regards

edgar
 
Edgar, not necessarily. All directories start at 512 kb, and grow dynamically if they're used (but I'll check this when I get to work!). I'd say it's unusual for lost+found to be > 512 kb and have only experienced that scenario when an application or other sub-system has been misbehaving.
 
hello ken,

thanks for your answer.
i'm talking about a e25k sun server with solaris 9
new installed and all lost+found directories are empty but 8192 sized.

regards

edgar
 
Hmm. Strange, I wouldn't have expected that but perhaps someone else has the reason?
 
Maista,
lost+found is created by newfs... It is a root access only directory that holds lost inodes. Are you sure the disk partition is mounted to the mount point where you expect to see the lost+found directory.
 
hello,

yes, mount -a.

the problem caused by this:
for in in oitper oitder oitger
do
mkdir $ "< i forgot the variable i>"
done

after this lost+found was deleted.

 
AIX rises above Solaris again:

mklost+found

I soooo miss AIX :(
 
you are right on linux ore aix i would not have this problem.
"mklost+found"
but on solaris i do not know how to solve this problem cause this command do not work on solaris.

any unix guru outhere with an idea?

regards

edgar
 
All mklost+found does (so far as I can see) is:

mkdir lost+found
chmod/chown as appropriate
populate the lost+found directory with a few files to make it 'large' enough for fsck's use and;
delete the files it's created to leave it empty.

Or maybe I'm wrong?
 
This is the AIX 5.2 version:

# (#)mklost+found.sh 5.1 (Berkeley) 5/28/85
#
PATH=/usr/bin:/usr/sbin:/etc
mkdir lost+found
cd lost+found
echo creating slots...
for i in 1 2 3 4 5 6 7 8 9 0 a b c d e f
do
cat </dev/null >$iXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
done
echo removing dummy files...
for i in 1 2 3 4 5 6 7 8 9 0 a b c d e f
do
rm $iX*
done
cd ..
echo done
ls -ld `pwd`/lost+found

As I thought. haven't tested it with Solaris though!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top