On Fri, 4 Mar 2005, Iain Buchanan wrote:

> however, while looking into this, (because I noticed I haven't ever seen
> the filesystem check when I shutdown uncleanly) I found
> in /etc/init.d/checkfs:
>
> fsck -C -T -R -A -a
>
> now I'm happy with all of that except the -R, according to man fsck:
>
> -R     When checking all file systems with the -A flag, skip  the  root
>               file system (in case it's already mounted read-write).
>
> Am I right when I read this as "don't even bother to try to check the
> root fs"?  Shouldn't it be rather "try to check the root fs unless its
> mounted read-write"?

Think about this - if the checkfs script is running then root must already
be mounted. You shouldn't (can't?) fsck a mounted fs. Also if you look at the
startup scripts you will see that checkroot runs BEFORE checkfs so the
root file system has already been fsck'ed at that point by the checkroot
script.


-- 
AK
--
[email protected] mailing list

Reply via email to