[Pkg-sysvinit-devel] Bug#392059: checkroot.sh: Differentiate between /forcefsck for all fs and for only the root fs

Petter Reinholdtsen pere at hungry.com
Wed Jan 2 19:16:30 UTC 2008


[Carsten Otto]
> I'd like to see some extension for the "/forcefsck" trigger, that
> only scans the root fs. In my special case I'd like the server to be
> up again as soon as possible, but with a fsck on the root fs. Doing
> a fsck on the remaining ~1 TB on other fs is not a good idea in this
> case.
> 
> My suggestion:
> - use /forcefsck in checkfs.sh
> - use /forcerootfsck (and not /forcefsck) in checkroot.sh

I have a different suggestion.  If you do not want to fsck the
remaining 1 TB file system, modify /etc/fstab and set 0 in the sixth
field (fs_passno) to disable automatic fsck for that file system.
There is as far as I can see, no need to extend checkfs.sh and
checkroot.sh to avoid having to fsck file systems at boot time.

Any reason why this would not work for you?

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list