Wikia

How To Wiki

How to set the filesystem checking interval with tune2fs

1,794pages on
this wiki
Talk0


This howto describes how to set the interval which a journaled filesystem like ext3.

Template:RateOS

Programs usedEdit


StepsEdit

  • Find the drive and partition you want to configure
    i.e. Find the device name
    example: /dev/hda1 (a=first drive 1=first partition
  • List the drives settings
    Execute: dumpe2fs -h [device name]
    Example: dumpe2fs -h /dev/hda4
    Output:
dumpe2fs 1.38 (30-Jun-2005)
Filesystem volume name:   /1
Last mounted on:          <not available>
Filesystem UUID:          xxxxxxxxxxxxxxxxx
Filesystem magic number:  0xEE11
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal filetype needs_recovery sparse_super
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              1557504
Block count:              3114601
Reserved block count:     155730
Free blocks:              225872
Free inodes:              1065559
First block:              0
Block size:               4096
Fragment size:            4096
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         16224
Inode blocks per group:   507
Filesystem created:       Mon Nov  3 09:35:40 2003
Last mount time:          Sat Apr 22 23:06:30 2006
Last write time:          Sat Apr 22 23:41:40 2006
Mount count:              1
''Maximum mount count:      14''
Last checked:             Sat Apr 22 23:04:11 2006
Check interval:           0 (<none>)
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128
Journal inode:            8
Default directory hash:   tea
Directory Hash Seed:      xxxxxxxxxxxxxxxxxxxx
Journal backup:           inode blocks
  • Change setting:
    Execute: tune2fs -c 14 /dev/hda4
From HowTo Wiki, a Wikia wiki.