View previous topic :: View next topic |
Author |
Message |
juniper l33t
Joined: 22 Oct 2004 Posts: 944 Location: we the north
|
Posted: Wed Apr 08, 2009 6:44 pm Post subject: force filesystem check on boot (Solved) |
|
|
I would like to perform a fs check every boot for a particular partition. how to do that?
Last edited by juniper on Thu Apr 09, 2009 10:40 am; edited 1 time in total |
|
Back to top |
|
|
jfp Guru
Joined: 08 Jul 2007 Posts: 326 Location: Virginia, USA
|
Posted: Wed Apr 08, 2009 6:57 pm Post subject: |
|
|
You might look at sys-fs/e2fsprogs and the tune2fs command _________________ jfp |
|
Back to top |
|
|
Ghost Raccoon n00b
Joined: 13 Mar 2009 Posts: 24 Location: Freiburg, Germany
|
Posted: Wed Apr 08, 2009 7:04 pm Post subject: |
|
|
I think you could use tune2fs to set the check interval for a specific partition.
from man tune2fs:
Quote: | -i interval-between-checks[d|m|w]
Adjust the maximal time between two filesystem checks. No postfix or d result in days, m in months, and w in weeks. A value of zero will dis‐
able the time-dependent checking.
It is strongly recommended that either -c (mount-count-dependent) or -i (time-dependent) checking be enabled to force periodic full e2fsck(
checking of the filesystem. Failure to do so may lead to filesystem corruption (due to bad disks, cables, memory, or kernel bugs) going unno‐
ticed, ultimately resulting in data loss or corruption. |
So you should be careful when changing the check intervals. For more information have a look at the man page. _________________ Ghost Raccoon iz in ur fridge, eatin' ur foodz. |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Wed Apr 08, 2009 7:53 pm Post subject: |
|
|
Moved from Kernel & Hardware to Other Things Gentoo. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
juniper l33t
Joined: 22 Oct 2004 Posts: 944 Location: we the north
|
Posted: Thu Apr 09, 2009 10:39 am Post subject: |
|
|
tune2fs did the trick. I thought there was a fstab way to do this, but tune2fs was pretty painless. |
|
Back to top |
|
|
|