Bruce Dubbs wrote:
> Ken Moffat wrote:
>
>> Experimentation shows that the checkfs script now writes to
>> /dev/null during fsck (line 82):
>> fsck ${options} -a -A -C -T >/dev/null
>
> Yes, I did that in November. I can't recall the details why I did that.
> I think it had to do with the formatting of the boot script output,
> especially when no detailed check is indicated.
>
> I'll take another look at it.
For me, I get things like the following for each partition.
e2fsck 1.41.14 (22-Dec-2010)
/dev/sdb1: clean, 13/1310720 files, 2629636/5242880 blocks
or
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: 13/1310720 files (0.0% non-contiguous), 2629636/5242880 blocks
in the boot screen. There are different printouts for other
filesystems. I think what we really want to know is if there will be
some time consuming operation and, if appropriate, that operation's
progress, otherwise, clean can be assumed. I really don't want to see
the e2fsck program's header either. The header would be different for
each fs type.
I suppose the easiest would be to remove the >/dev/null, but would
prefer a better solution.
A flag in the rc.site file could selectively add/not use the redirection
to the fsck command, but that doesn't seem very elegant.
We could possibly use something like:
fsck ${options} -a -A -C -T | egrep -v "fsck|clean"
But that interferes with the -C progress output. About the only other
thing I can think of is to parse fstab and run the fsck for each
partition one or two times, once with a -n option to see if fixes are
needed and a second with full output if they are needed.
I'm open to suggestions.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page