You are not logged in.

#1 2008-06-07 23:38:30

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Change boot-up filesystem checks frequency[SOLVED]

Currently, my root fs is checked every 31 boot-ups. Can I increase the interval?

Last edited by Raccoon1400 (2008-06-08 17:26:16)


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#2 2008-06-08 00:17:33

dlb
Member
Registered: 2006-04-07
Posts: 10

Re: Change boot-up filesystem checks frequency[SOLVED]

hi
i think, you can change the interval with tune2fs
i never did, so I can't give you better instructions...

Offline

#3 2008-06-08 03:37:36

slide_rule
Member
From: loglogdecalog
Registered: 2007-09-16
Posts: 33

Re: Change boot-up filesystem checks frequency[SOLVED]

You're looking for the tune2fs -c and -i options.  FYI, mke2fs prints a message about this when you make a new ext2 file system.

Offline

#4 2008-06-08 14:06:04

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Change boot-up filesystem checks frequency[SOLVED]

slide_rule wrote:

You're looking for the tune2fs -c and -i options.  FYI, mke2fs prints a message about this when you make a new ext2 file system.

So what do I type into the terminal?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#5 2008-06-08 14:45:00

liquibyte
Member
Registered: 2007-11-11
Posts: 91
Website

Re: Change boot-up filesystem checks frequency[SOLVED]

From the manpage: tune2fs -C mount-count.

Offline

#6 2008-06-08 15:04:35

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Change boot-up filesystem checks frequency[SOLVED]

liquibyte wrote:

From the manpage: tune2fs -C mount-count.

Then I get this

[root@duncan-arch duncan]# tune2fs -C mount-count
tune2fs 1.40.8 (13-Mar-2008)
tune2fs: bad mounts count - mount-count
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
    [-i interval[d|m|w]] [-j] [-J journal_options] [-l]
    [-m reserved_blocks_percent] [-o [^]mount_options[,...]] 
    [-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label]
    [-M last_mounted_dir] [-O [^]feature[,...]]
    [-E extended-option[,...]] [-T last_check_time] [-U UUID] device
[root@duncan-arch duncan]# tune2fs -C mount_count
tune2fs 1.40.8 (13-Mar-2008)

Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#7 2008-06-08 15:45:52

dlb
Member
Registered: 2006-04-07
Posts: 10

Re: Change boot-up filesystem checks frequency[SOLVED]

c'mon
we gave you the name of the tool and the hint to read the man page
anyone can do that...

sooo, maybe mount_count should be a number? wink

Offline

#8 2008-06-08 16:10:56

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Change boot-up filesystem checks frequency[SOLVED]

I have read the man page.

When I use a number, I get this. I am not sure if it is changing any settings. Can I check without rebooting 51 times?

[root@duncan-arch duncan]# tune2fs -c 51
tune2fs 1.40.8 (13-Mar-2008)
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
    [-i interval[d|m|w]] [-j] [-J journal_options] [-l]
    [-m reserved_blocks_percent] [-o [^]mount_options[,...]] 
    [-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label]
    [-M last_mounted_dir] [-O [^]feature[,...]]
    [-E extended-option[,...]] [-T last_check_time] [-U UUID] device
[root@duncan-arch duncan]#

Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#9 2008-06-08 16:14:13

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Change boot-up filesystem checks frequency[SOLVED]

it should be tune2fs -c number /dev/sdX

Last edited by moljac024 (2008-06-08 16:14:34)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#10 2008-06-08 16:24:12

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Change boot-up filesystem checks frequency[SOLVED]

Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
    [-i interval[d|m|w]] [-j] [-J journal_options] [-l]
    [-m reserved_blocks_percent] [-o [^]mount_options[,...]] 
    [-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label]
    [-M last_mounted_dir] [-O [^]feature[,...]]
    [-E extended-option[,...]] [-T last_check_time] [-U UUID] device

This tells u how to use it, anything in [] is an option, so for your case...

Usage: tune2fs [-c max_mounts_count]  device

which translates too...

tune2fs -c number /dev/sdX

as moljac024 said.

Offline

#11 2008-06-08 17:22:41

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Change boot-up filesystem checks frequency[SOLVED]

[root@duncan-arch duncan]# tune2fs -c 51 /dev/sda6
tune2fs 1.40.8 (13-Mar-2008)
Setting maximal mount count to 51
[root@duncan-arch duncan]#


Thanks. Now I think it did what I wanted it to.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

Board footer

Powered by FluxBB