Page 1 of 1

Run fsck at boot

Posted: Mon Dec 04, 2017 8:44 pm
by rollebollen
Hi, I cannot seem to run fsck at boot, which is needed as my device will be in a battery environment. I have tried updating /boot/boot.cmd and generating a boot.scr containing both forcefsk and fcsk.mode=force, none of them works. I tried creating a file /forcefsck but no luck there either. Anyone know?

Re: Run fsck at boot

Posted: Tue Dec 05, 2017 2:38 am
by Maroon5
which board?

Re: Run fsck at boot

Posted: Tue Dec 05, 2017 10:24 am
by rollebollen
Sorry! NanoPI NEO, running Xenial 4.11. It also warns that fsck should be run at every boot

Re: Run fsck at boot

Posted: Wed Dec 06, 2017 9:05 am
by Maroon5

Code: Select all

Begin: Will now check root file system ... fsck from util-linux 2.27.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p2] fsck.ext4 -y -C0 /dev/mmcblk0p2
e2fsck 1.42.13 (17-May-2015)
rootfs: clean, 51987/115200 files, 295821/460800 blocks
done.

Re: Run fsck at boot

Posted: Wed Dec 06, 2017 12:33 pm
by rollebollen
Thanks, but did you not miss to include how to get that output you pasted?