Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ext3 fsck after approx 30 or so bootups
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
signal11
n00b
n00b


Joined: 16 Mar 2003
Posts: 46

PostPosted: Mon Aug 31, 2009 4:44 pm    Post subject: ext3 fsck after approx 30 or so bootups Reply with quote

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
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Mon Aug 31, 2009 4:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
signal11
n00b
n00b


Joined: 16 Mar 2003
Posts: 46

PostPosted: Mon Aug 31, 2009 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23403

PostPosted: Mon Aug 31, 2009 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
signal11
n00b
n00b


Joined: 16 Mar 2003
Posts: 46

PostPosted: Tue Sep 01, 2009 3:01 am    Post subject: Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6780

PostPosted: Tue Sep 01, 2009 6:12 am    Post subject: Reply with quote

In such a case, I would suggest only time-dependent checks, e.g. once every few months.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23403

PostPosted: Wed Sep 02, 2009 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum