On Oct 16, 2020, at 17:14, Paul Smith <phhs80(a)gmail.com> wrote:
Dear All,
I would like to run
fsck /dev/mapper/fedora_localhost--live-home
on reboot. How can I accomplish this?
According to this:
https://www.freedesktop.org/software/systemd/man/systemd-fsck@.service.html
You can append fsck.mode=force to force a fsck on the next boot for all file systems.
You could also use tune2fs to set the max mount count to 1, assuming ext4, and it’ll fsck
it next time it tries to mount it. Not sure if there is an equivalent XFS setting.
--
Jonathan Billings <billings(a)negate.org>