Once in a while, when booting the device, I see on the serial console:
run-parts: /etc/update-motd.98-fsck-at-reboot exited with return code 1
Which I assume means there is a corruption on the mmc storage.
A few questions:
- How do I run force fsck at startup?
The standard methods of
tune2fs -c 1 /dev/mmcblk1don’t seem to work. Right now, fsck seems to run at startup only every N reboots, which makes it hard to detect & reproduce the problem.
- How do I fix errors manually? I don’t see a way to run fsck in the bootloader (which I could run manually)
- How do I automatically fix errors when the device encounters such a situation in the field (where manual intervention is not possible)
Thanks in advance.