Solved

Where can I find GOOD on-line doc that explains lost+found?

Posted on 2001-08-16
8
227 Views
Last Modified: 2010-04-21
Please refer to the title. If you can't point me to documentation, can you tell me what you know about lost+found on Solaris? Specifically, I have a mounted nfs filesystem that I expected to find a lost+found directory ... but didn't. Why isn't there? If there's some good doc on this subject (on-line), I'd sure like to know about it.

Thanks!
Marty
0
Comment
Question by:pzxkys
8 Comments
 
LVL 6

Expert Comment

by:bira
ID: 6394059
Hi
  You can create a directory lost+found with the
command mklost+found, just firing this command where
you want to create the dir.

Description

The mklost+found command creates a lost and found directory in the
current directory. A number of empty files are created within the
lost and found directory and then removed so that there are empty
slots for the fsck command. The fsck command reconnects any orphaned
files and directories by placing them in the lost and found directory
with an assigned i-node number. The mklost+found command is not normally
needed, since the fsck command automatically creates the lost and
found directory when a new file system is created.

Examples

To make a lost+found directory for the fsck command, enter:

mklost+found

   Regards
0
 

Author Comment

by:pzxkys
ID: 6394310
I don't see mklost+found in the Solaris man pages. Are you sure it's a valid command for Solaris? Any reason why the lost+found directory might have disappeared after I mounted the nfs filesystem that I'm dealing with?
0
 
LVL 6

Expert Comment

by:bira
ID: 6394373
0
 
LVL 6

Expert Comment

by:bira
ID: 6394376

 In fact my OS is AIX.
  I think there must be something similar in Solaris,
  but i really dont know.

  Perhaps you should put this question in the Solaris topic.

         Good Luck
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:prashant_n_mhatre
ID: 6395073
lost+found is a directory used by the /etc/fsck program; fsck is the Unix/Linux equivalent of Windows scandisk.  Both fsck and scandisk attempt to fix disk corruption problems.  Sometimes, they find data that cannot
accurately be associated with other files.  Rather than remove this potentially valuable data, they save it.  Scandisk produces files like FILE0001.CHK, and fsck produces files like 293823 in the lost+found directory
that should exist on each of the hard drives you have in your system.

If your system is running properly, lost+found may seem like an unnecessary directory, but if you crash, lose power or otherwise encounter an event that corrupts your disk, fsck may need lost+found in order to save data.
0
 

Author Comment

by:pzxkys
ID: 6396760
Thank you Prashant. Any idea why a lost+found directory would be missing from a newly mounted nfs filesystem?
Bira: sorry ... I missed the fact that there actually was a Solaris topic in expert's exchange. Thanks for pointing it out. In the future, I'll use it.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 6396965
Assuming that by 'newly mounted nfs filesystem' you mean a volume mounted via nfs on a client, then it is normal and correct to not see a lost+found directory when the export isn't at the top of a file system. Consider the case where the exports on the Solaris server looks like:

share -F nfs -d "whole fs" /nfs0
share -F nfs -d "only subdir" /nfs1/some-dir

When those are nfs mounted on a client like:

mount server:/nfs0 /mnt-whole
mount server:/nfs1/some-dir /mnt-subdir

There will be a lost+found dir visible on /mnt-whole, but you won't see a lost+found on /mnt-subdir. Of couse the reason that you don't see a lost+found dir on /mnt-subdir is that the export was not done at the top of the file system. And that's fine because a lost+found fir only makes sense on a file system that can be fsck's, which isn't possible for an nfs mounted volume. You can only run fsck on a UFS file system where access to the home blocks is available.

0
 

Author Comment

by:pzxkys
ID: 6398581
Prashant offered a good answer but I have to give the points to jlevie for an even better answer. Thanks to all of you!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
nodeip 9 75
linux  centos   virtualization network quetion 6 75
Unistall fileset without dependecies on AIX 3 60
help pulling data string using Awk 9 63
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now