LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Fsck and checking drive at boot (http://www.linuxquestions.org/questions/slackware-14/fsck-and-checking-drive-at-boot-151915/)

Atmchicago 02-29-2004 02: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 /
RETVAL=$?
fi


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 03: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 04:12 PM

Sweet, thanks. Works great.


All times are GMT -5. The time now is 03:32 PM.