Subject: Re: LFS problems
To: Mihai CHELARU <kefren@netbsd.ro>
From: Konrad Schroder <perseant@hhhh.org>
List: current-users
Date: 05/17/2005 13:14:46
On Tue, 17 May 2005, Mihai CHELARU wrote:
> I'm using lfs_vfsops.c 1.178 but most probably I've been using < 1.178. Is
> there any way to clean fs ? fsck_lfs doesn't do it.
No, fsck doesn't pay attention to the segment headers (except during roll
forward, and then only very new ones). This is really only a problem for
the cleaner and for roll-forward. An up-to-date kernel takes care of roll
forward, so if the cleaner can work around it there will be no problem.
I've hacked the not-quite-ready new cleaner into a tool to fix this
problem. Get
ftp://ftp.hhhh.org/pub/perseant/lfs/lfs_cleanerd.new.tgz
and unpack it in /usr/src/libexec , parallel to the existing cleaner
source dir. Build it (but don't install it!) Unmount your filesystem.
Invoke the cleaner with -d and specifying the raw disk device as the
filesystem to clean:
./lfs_cleanerd -d /dev/rwd0g
It will give you lots of messages like
lfs_cleanerd[1231]: fixing short FINFO at 4ad8 (seg 74)
After this the regular cleaner should be happier.
Take care,
Konrad Schroder
perseant@hhhh.org