Fsck at shutdown instead of startup

Michael Schwendt mschwendt at gmail.com
Tue Sep 29 11:30:08 UTC 2009


On Tue, 29 Sep 2009 12:02:02 +0200, Gijs wrote:

> >> Today I once again had to wait 30 minutes for fsck to finish checking my
> >> 1TB disk and I'm getting a bit fed up with it.

> It was one of the default checks, performed every 32 mounts. I could 
> disable it, but if I did, I'd probably never run a full check again, 
> since I'd never want to spend time on doing it. 

The problem is that if the fsck finds something, you need to spend time on
it, watching the report, and you may need to answer questions with y/n for
it to proceed.

> And the check is good 
> for something I presume, otherwise it wouldn't have been implemented in 
> the first place.

Sure, hardware damage that corrupts the file system in a place where
it isn't recognised at run-time. Only a periodic fsck will detect
that. And hopefully it doesn't come too late.

> Since I don't really mind having a forced fsck on 
> shutdown, I wanted to go with that instead of disabling it all together.
 
Depending on your partitioning scheme, it would be possible to keep the
automatic fsck intervals for your "small" system partitions (and tune them
so they are not checked at once) and run a shell script for checking
huge data partitions during shutdown (aftering unmounting them in the
script).




More information about the users mailing list