Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-18-2013, 03:13 PM   #1
LQ Newbie
Registered: Dec 2012
Distribution: Ubuntu
Posts: 15

Rep: Reputation: Disabled
A purpose of the mklost+found utility

Hi there.

I've a question regarding the mklost+found utility. According to its man page:

mklost+found pre-allocates disk blocks to the lost+found directory so that when e2fsck(8) is being run to recover a filesystem, it does not need to allocate blocks in the filesystem to store a large number of unlinked files. This ensures that e2fsck will not have to allocate data blocks in the filesystem during recovery.
Out of idle curiosity: why shoudn't e2fsck allocate those data blocks during a recovery?
Old 03-18-2013, 04:19 PM   #2
Senior Member
Registered: Mar 2012
Posts: 1,491

Rep: Reputation: 390Reputation: 390Reputation: 390Reputation: 390
Because allocating new blocks potentially overwrites the unlinked files it is trying to recover.
1 members found this post helpful.
Old 03-18-2013, 04:20 PM   #3
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,707

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
Because the blocks allocated that way MAY belong to some file that has been unlinked...

Also because the free list may be incorrect, and thus unusable until the free list is rebuilt - and again some of the blocks so freed may belong to lost files..
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What is the purpose of lib64? How does it serve it's purpose? BMan8577 Linux - Newbie 2 09-20-2011 01:39 PM
Utility for Disk Usage / Treesize utility teknoratti Linux - Software 1 06-08-2011 02:53 AM
what is the purpose pradeepjeevan Linux - Newbie 7 02-10-2010 05:18 PM
What is the purpose of /lost+found? Tralce Linux - Newbie 2 12-11-2006 05:36 PM
configure: error: No ar utility found Mugatu Member Success Stories 1 01-09-2005 05:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration