MY RECOMMENDATION: WHO CARES IF THE NAS IS DOING A AUTOMATIC REBOOT AT SUNDAY 3 o’CLOCK IN THE MORNING AND CHECKING 2-3TB OF EXT3 FILESYSTEM? NO ONE!

SO WHO CARES ABOUT THE FILESYSTEM CHECK DELAY ON BOOT, IF IN RETURN, YOU WILL HAVE A RELIABLE FILESYSTEM.

RELIABILITY SHOULD BE THE TOP1 PRIORITY OF ANY FILESYSTEM.

MAYBE SPEED CAN BE SECOND, UNLESS YOU DO NOT CARE ABOUT DATA-LOSS. (temporary storage… but believe me… even a temporary storage contains important files that users feel very angry about if lost)

I believe regular automatic filesystem checks (also of the root filesystem) are a pretty good idea.

So what you SHOULD do is:

/scripts/reboot.sh

# fill it with:

#!/bin/bash
echo $(date) >> /scripts/reboot_last.txt; # record time of last reboot to check if its working
touch /forcefsck; # force filesystem check on every boot
shutdown -r +0; # reboot immediately

make a new cronjob:

crontab -e
# at the very end of the file add this:
00 09 * * 7 [ $(date +\%d) -le 07 ] && /scripts/reboot.sh # first sunday of every month reboot, check filessytem etc.
admin