View previous topic :: View next topic |
Author |
Message |
signal11 n00b


Joined: 16 Mar 2003 Posts: 46
|
Posted: Mon Aug 31, 2009 4:44 pm Post subject: ext3 fsck after approx 30 or so bootups |
|
|
one thing that i have noticed is that after i have booted up my machine a (significant approx 30) number of times, fsck automagically runs on the ext3 partition. the root file-system on my machine is pretty large, and it takes forever to boot.
i see this during boot:
Code: | EXT3-fs warning: maximal mount count reached, running e2fsck is recommended |
ofcourse the question now is: "is it possible to treat only abnormal shutdowns as points where a fsck might be required ? if the machine was rebooted say with 'reboot' then don't run fsck at all..." |
|
Back to top |
|
 |
mikegpitt Advocate


Joined: 22 May 2004 Posts: 3224
|
Posted: Mon Aug 31, 2009 4:48 pm Post subject: |
|
|
You are correct, by default ext3 filesystems will run an fsck every 30 boots. I'm not sure how to make this run conditional, but I do know how to turn it off completely.
Example:
Code: | tune2fs -c 0 -i 0 /dev/sda3 |
|
|
Back to top |
|
 |
signal11 n00b


Joined: 16 Mar 2003 Posts: 46
|
Posted: Mon Aug 31, 2009 5:41 pm Post subject: |
|
|
mikegpitt wrote: | You are correct, by default ext3 filesystems will run an fsck every 30 boots. I'm not sure how to make this run conditional, but I do know how to turn it off completely.
Example:
Code: | tune2fs -c 0 -i 0 /dev/sda3 |
|
thanks ! i read the man-page for tune2fs, and the warnings there are pretty draconian...i guess, i will let the things be until it becomes too much pain to bear with. |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23403
|
Posted: Mon Aug 31, 2009 10:34 pm Post subject: |
|
|
How often are you rebooting, and why? Outside of testing development kernels, I cannot see a reason to reboot the system often enough that this would matter much. |
|
Back to top |
|
 |
signal11 n00b


Joined: 16 Mar 2003 Posts: 46
|
Posted: Tue Sep 01, 2009 3:01 am Post subject: |
|
|
Hu wrote: | How often are you rebooting, and why? Outside of testing development kernels, I cannot see a reason to reboot the system often enough that this would matter much. |
basically some kernel programming (device-drivers and such) |
|
Back to top |
|
 |
mv Watchman


Joined: 20 Apr 2005 Posts: 6780
|
Posted: Tue Sep 01, 2009 6:12 am Post subject: |
|
|
In such a case, I would suggest only time-dependent checks, e.g. once every few months. |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23403
|
Posted: Wed Sep 02, 2009 12:16 am Post subject: |
|
|
You may want to look into building your test code as a module so you can unload and reload it without rebooting the whole system.  |
|
Back to top |
|
 |
|