K
krabs
Guest
Use this script for checking your partions with fsck at boot after a desired number of reboots
Check maximum mount with tune2fs -l /dev/partion
Change to your desired value with tune2fs -c value /dev/partion
Create a pre-mount script.
https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts
Check maximum mount with tune2fs -l /dev/partion
Change to your desired value with tune2fs -c value /dev/partion
Create a pre-mount script.
https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts
Code:
#!/bin/sh
MOUNTS=$(tune2fs -l /dev/PARTION | awk '/^Mount count/ {print $3}')
if [ $MOUNTS -gt YOUR VALUE ]
then
fsck.ext2/3 -vfcy /dev/PARTION
fi