LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-18-2013, 04:13 PM   #1
moraxu
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:

Quote:
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, 05:19 PM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,385

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

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
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.
  


Reply


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 02:39 PM
Utility for Disk Usage / Treesize utility teknoratti Linux - Software 1 06-08-2011 03:53 AM
what is the purpose pradeepjeevan Linux - Newbie 7 02-10-2010 06:18 PM
What is the purpose of /lost+found? Tralce Linux - Newbie 2 12-11-2006 06:36 PM
configure: error: No ar utility found Mugatu LinuxQuestions.org Member Success Stories 1 01-09-2005 06:15 PM


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

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