Working with a fanless Debian based machine. All filesystems are on an sd card. The /var partition is a separate ext2 fs entry in /etc/fstab.The system doesn't have an 'on/off' switch so people tend to yank the plug to power cycle it. This leads to corruption on the /var partition.I want to force the system to run e2fsck at every boot. What I've tried:Don't mount /var at boot. Add script in /etc/rc2.d to run e2fsck and then mount the drive. Problem: This gives me a system which thinks it's stuck at runlevel 6. See here.Use tune2fs to set the fsck cycle to one mount.Problem: system often hangs during boot noting that /var is already mounted and drops to maintenance shell.Set 6th bit in /etc/fstab to 2. Run touch /forcefsck.Problem: neither / both has any noticeable effect. Disk is not checked.Add noauto to /etc/fstab (see #1 above).Problem: System still mounts partition so error message still pops up.Suggestion(s) on other things to try?EDIT:Some background:We have 150+ of these systems deployed in remote locations  Systems in question do not have power on/off switches Systems are often (erroneously) put on switched power sources (wall switches or other)  Loss of power to location in question is not uncommon 
Force e2fsck on /var at every boot
debian