2009-05-02
The default configuration in Ubuntu is to perform a disk check every 35 times the hard disk is mounted. When using a laptop on the go, there are times during which it can be a great inconvenience to have to wait for a disk check at boot.
While itβs possible to change or even disable this completely, I personally find it most helpful to just have a little forewarning about when itβs going to happen.
I run the following script at startup to query how many times the disk has been mounted and notify me if a disk check will happen soon.
Two notes about the tune2fs
line:
- My Ubuntu partition is labeled
UBUNTU
. Others will probably have to change this. - As far as I know, sudo is required to get the status report via tune2fs. To enable the script to run by itself, I gave permission to my account to run the command without a password.