On Mon, 25 Aug 2008 10:06:02 GMT
silkmaze <silkmaze@no-mx.forums.opensuse.org> wrote:
>
> Every 2 months or so, when booting up my PC, I find that the boot
> sequence is very slow. When I press ESC, I see that the system is
> carrying out a hard drive check on all three of my disks. This seems to
> take forever.
>
> Can anyone tell me what is happening during this check, adn is there
> any way I can change the frequency of this check. My thought is, if this
> check has to be carried out, I’d rather have it on a monthly basis, or
> even every 2-3 weeks, thereby ensuring that it doesn’t take so long,
> at-least not as long as it would if it was done every 60-62 days.
>
> Also which program is used to carry out this check and can I start it
> manually, can I even change options/settings, assuming there are any to
> change?
>
> Thanks.
>
>
Think of the check as a VERY indepth version of chkdsk or scandisk.
As mentioned in the other posts, you can alter the frequency of the checks,
or disable them altogether, although this is not recommended.
as root:
tune2fs -i 1m /dev/sda2
would set sda2 to automatically perform a test every month. (1m), ‘-i’ is
‘interval’… it understands seconds, days, weeks and months. A value of
zero (0) turns off interval checking.
5 days: -i 5d
2 weeks: -i 2w
Once a quarter: -i 3m
tune2fs -c 5 /dev/sda2
sets sda2 to perform fsck every 5 mounts. ‘0’ or ‘-1’ disables this. (this
is mounts, not boots. You may umount/mount the filesystem for some
reason, it counts those too.
the ‘-C’ (capital C) option allows you to SET the current number of mounts
for a filesystem.
This would allow you to cause the fsck’s to be staggered.
You may set the Volume Label on a filesysem with the ‘-L’ option. Useful for
labeling your drives for easier mounting
As another poster mentioned, you may set the % of total space reserved for
root’s use with the ‘-m’ option. Very handy since drives today are vastly
larger than before, and 1% can be sizable! The Default value when a
filesystem is formatted is 5%. If your drive is > 100GB, then 1% is more
than sufficent for recovery purposes. If the drive is NOT used for logging
or system/root purposes, you should be able to get away with 0% too.
Read the man page for tune2fs for more information (man tune2fs)
There is also a reiserfs utility with comparable functions: reiserfstune
Loni
–
L R Nix
lornix@lornix.com