Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
force filesystem check on boot (Solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
juniper
l33t
l33t


Joined: 22 Oct 2004
Posts: 943
Location: we the north

PostPosted: Wed Apr 08, 2009 6:44 pm    Post subject: force filesystem check on boot (Solved) Reply with quote

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


Joined: 08 Jul 2007
Posts: 326
Location: Virginia, USA

PostPosted: Wed Apr 08, 2009 6:57 pm    Post subject: Reply with quote

You might look at sys-fs/e2fsprogs and the tune2fs command
_________________
jfp
Back to top
View user's profile Send private message
Ghost Raccoon
n00b
n00b


Joined: 13 Mar 2009
Posts: 24
Location: Freiburg, Germany

PostPosted: Wed Apr 08, 2009 7:04 pm    Post subject: Reply with quote

I think you could use tune2fs to set the check interval for a specific partition.
Code:
tune2fs -i

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(8)
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
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Apr 08, 2009 7:53 pm    Post subject: Reply with quote

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


Joined: 22 Oct 2004
Posts: 943
Location: we the north

PostPosted: Thu Apr 09, 2009 10:39 am    Post subject: Reply with quote

tune2fs did the trick. I thought there was a fstab way to do this, but tune2fs was pretty painless.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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