- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lost+found directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:13 AM
тАО01-17-2006 09:13 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:19 AM
тАО01-17-2006 09:19 AM
SolutionYou are correct. One use of the 'lost+found' directory is by 'fsck' to place files (or fragments thereof) that cannot be otherwise recovered.
Another use is by Online JFS. A file named '.fsadm' is written to this directory to serve as a lock for JFS processes like defragmention and file resizes.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:19 AM
тАО01-17-2006 09:19 AM
Re: lost+found directory
files located there are usually created by the fsck command. The files that have no valid links are copied into this directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:21 AM
тАО01-17-2006 09:21 AM
Re: lost+found directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:28 AM
тАО01-17-2006 09:28 AM
Re: lost+found directory
If you ever see a file in there it means something bad has happened.
fsck will probably not recover them. Believe it or not, I've never seen a file there in 10 years. If I found one, I'd look at it and figure out if its useful and move it out of there.
You do mention one of the probable causes.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:38 AM
тАО01-17-2006 09:38 AM
Re: lost+found directory
When files are recovered after any sort of problem or failure,they are placed in the lost+found directory, if the kernel cannot ascertain the proper location in the system.
I dont think fsck can recover those files, but we can check and try to figure it out, if we need to move them and can use in the proper place.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 11:35 AM
тАО01-17-2006 11:35 AM
Re: lost+found directory
To see what these files might have been, you use the file command and possibly the strings command, something like this:
file \#123456
strings \#123456 | more
Note the use of \ in front of the # to escape it's special meaning to the shell as a comment. If the file is needed , just rename (mv) the filename. Most of the files I've seen there have been temp files.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 12:18 PM
тАО01-17-2006 12:18 PM
Re: lost+found directory
One additional comment. Normally the lost+found directory is built whenever a filesystem is created. Should you ever remove it, you can recreate it with:
# cd mydirectory
# mklost+found
Have a look at the manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 02:48 PM
тАО01-17-2006 02:48 PM
Re: lost+found directory
"lost+found" is created when you try to create a new File system. It is used when you perform a "fsck" on any FS.
If you want to create "lost+found" on your own, you can use "mklost+found "
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 04:27 PM
тАО01-17-2006 04:27 PM
Re: lost+found directory
In the lost+found Directory
When files are recovered after any sort of problem or failure,they are placed in the lost + found directory, if the kernel cannot ascertain the proper location in the system.(no links !)
It is normally poppulated during a fsck after a filesystem corruption.
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 04:34 PM
тАО01-17-2006 04:34 PM
Re: lost+found directory
http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/lostfound.html
http://www.isu.edu/departments/comcom/unix/workshop/fstour.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 04:40 PM
тАО01-17-2006 04:40 PM
Re: lost+found directory
Yes, lost+found is used to put the files which are not closed properly due to improper file system unmount. This can be used to receover files in someway if the you know the contents of the files but this will only be a rare hit.
HTH,
Devender