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?
I belive it's `tune2fs -c 30`
-c is max_mount_count, argument is number of boots
`man tune2fs` for more tricks
Sweet, thanks. Works great.
|All times are GMT -5. The time now is 03:08 PM.|