-   Slackware (
-   -   Fsck and checking drive at boot (

Atmchicago 02-29-2004 01:49 PM

Fsck and checking drive at boot
I was wondering: in rc.S, there is the script to check the hard drive at boot for errors, and it does it every 20 times I boot. Is there a way to change this from 20 to like 30? Or some other number?

I believe the lines in question are:

if [ ! -r /etc/fastboot ]; then
echo "Checking root filesystem:"
/sbin/fsck $FORCEFSCK -C -a /

If I understand it correctly, the first line checks if /etc/fastboot exists. If it doesn't then it does fsck. It doesn't actually check it every time, though, so how does it know when to do it and when not to? Can I change that?

bnice 02-29-2004 02:02 PM

I belive it's `tune2fs -c 30`

-c is max_mount_count, argument is number of boots

`man tune2fs` for more tricks

Atmchicago 02-29-2004 03:12 PM

Sweet, thanks. Works great.

All times are GMT -5. The time now is 07:21 AM.