Seems I did not express my wish precisely enough:
When talking about doing an fsck on next reboot, I had in mind a one-time operation only, i.e. an fsck run only during the next reboot, not on every reboot.
I have just checked inserting the kernel parameter
fsck.mode=force into the
linux /boot/vmlinuz....
line at boot time.
It does precisely what I want.
fsck is invoked and checks the root filesystem of the LM system once, before it is started up.
When the LM splash screen appeared, I pressed ESC and was able to see fsck at work.
Once the system had come up normally thereafter, the logfile /var/log/boot.log held the log entries generated by fsck.
The test of
fsck.mode=force has been executed on LMDE 5 32-bit.
Code: Select all
karl@paulchen:~$ inxi -Sx3
System:
Host: paulchen Kernel: 5.10.0-21-686 arch: i686 bits: 32 compiler: gcc
v: 10.2.1 Desktop: Cinnamon v: 5.6.8 tk: GTK v: 3.24.24 wm: muffin vt: 7
dm: LightDM v: 1.26.0 Distro: LMDE 5 Elsie base: Debian 11.2 bullseye
What will be more interesting than my usage scenario is whether this thread has helped the thread starter
mmm to find a way of invoking fsck at startup time as well.