how can one configure e2fsck to run periodically let's say every 30 mounts at boot?
…and no it doesn't run at every boot:
[root@MyBookWorld init.d]# cd /
[root@MyBookWorld /]# ls
bin etc lib lost+found mnt opt root shares tftpboot usr
dev home linuxrc man none proc sbin sys tmp var
[root@MyBookWorld /]# dd if=/dev/zero of=/swapfile bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 82.5144 seconds, 12.7 MB/s
[root@MyBookWorld /]# mkswap /swapfile
Setting up swapspace version 1, size = 1048571904 bytes
[root@MyBookWorld /]# swapon /swapfile
[root@MyBookWorld /]# umount /dev/md4
[root@MyBookWorld /]# e2fsck /dev/md4
e2fsck 1.38 (30-Jun-2005)
/dev/md4 has been mounted 259 times without being checked, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/md4: 101609/60555264 files (2.9% non-contiguous), 67206949/121081888 blocks
[root@MyBookWorld /]#
e2fsck periodically at book