On Oct 16, 2020, at 17:14, Paul Smith <phh...@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-f...@.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 <billi...@negate.org>
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to