2010-09-21

Increase fsck fequency at startup

Totally disable forced fsck at startup is a bad idea. But it takes more than 5 minutes to scanning a huge disk for every 24 times boot. Why not just change the fequency of forced fsck? The solution is using tune2fs.

1) Check your disk.
>df
/dev/sda1              7850996   5316724   2135460  72% /
tmpfs                   257324         0    257324   0% /lib/init/rw
udev                    252876       144    252732   1% /dev
tmpfs                   257324         0    257324   0% /dev/shm

So, my disk is /dev/sda1
2) Configure the fequency of forced fsck.
  • sudo tune2fs -c 100 /dev/sda1 (100 boot)
  • sudo tune2fs -i 365d /dev/sda1 (365 day)

Reference:
http://ubuntuforums.org/archive/index.php/t-1066069.html

    No comments:

    Post a Comment