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/rcS
touch /forcefsck
andreboot
- Update
/proc/cmdline
to includefsck.mode=force
andfsck.repair=yes
(this was done bycp
the file to another location, and thenmount -n --bind
to it
No 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!!