Mandrake Linux Archives: cooker@mandrivalinux.org

Mandrake Linux: cooker@mandrivalinux.org


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

  • From: Claudio Matsuoka
  • Subject: Re: [Cooker] Cooker filesystem vs FHS 2.3
  • Date: 24 May 2005 21:40:36 -0000

On Tue, 24 May 2005, Luca Berra wrote:

> >Well, lost+found is created when it is needed by fsck.
> >
> i tought it had to be created before to prevent fsck allocating data
> blocks on a 'possibly' corrupt filesystem

Correct. The e2fsck 1.13 changelog says: "E2fsck will create a
/lost+found directory if there isn't one in the filesystem, since it's
safer to create the lost+found directory before it's needed."

And it does that:

# e2fsck -f /dev/vg00/test
e2fsck 1.38-WIP (09-May-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found.  Create<y>?

I checked e2fsck source code and it tries to find a free block and inode
to use when creating lost+found. I don't know if there are corner cases
where the creation fails or overwrites an used inode or block, so it would
be safer to leave the lost+found directories in each filesystem.




Date Index | Thread Index

Search the archive:



To (un)subscribe from/to the lists:

Sympa mailing lists server.





Fund the Mandriva Linux project

Looking for a job?