I am running Debian 8.1 on an SD card on a Banana PI with U-boot bootloader. I'm trying to force my system to run fsck on reboot, but no matter what I do, nothing happens. Here are what I have tried so far:Set FSCKFIX=yes inside /etc/defaults/rcStouch /forcefsck and rebootUpdate /proc/cmdline to include fsck.mode=force and fsck.repair=yes (this was done by cp the file to another location, and then mount -n --bind to itNo matter what, nothing happens. When I look at the log file (/var/logs/fsck/checkfs) there are no entries. I tried creating my own file to run on bootup that would call fsck and I looked at my own log file and all I see is fsck from util-linux 2.25.2. I changed the init script to explicitly run on the drive (i.e. fsck -yf /dev/mmcblk0p2) and then the log file said the system is aborting because the drive is already mounted. FYI, this init script is running before checkfs or checkroot run!I would really appreciate any help!!
Debian 8.1 with Uboot bootloader cannot run FSCK on reboot
linux;debian;init script;fsck;u boot