Thanks, Samuel and Jonathan. In fact, Jonathan is right: I installed Fedora with a Live Fedora disk. No, I do not want a fsck at every boot. Meanwhile, I did the following: tune2fs -c 100 -i 2m /dev/mapper/fedora_localhost--live-home In this way, a fsck will take place at the 100th boot or after 2 months. Have a nice weekend, Paul On Sat, Oct 17, 2020 at 12:29 AM Jonathan Billings <billings@xxxxxxxxxx> wrote: > > On Oct 16, 2020, at 17:14, Paul Smith <phhs80@xxxxxxxxx> 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@xxxxxxxxxxxxx > > 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@xxxxxxxxxx> > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > 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@xxxxxxxxxxxxxxxxxxxxxxx _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxx