-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to force fsck on reboot #1801
Comments
Thanks for reporting - this is really strange... |
fsck should be triggered by systemd and I've never seen it do that. If you need a one-off, I suggest booting the system in emergency mode. You'll get to the shell before systemd remounts your root read-write. I don't think periodic fsck is supported any more. |
Ah, GTK... I was able to work around using the live desktop image on a USB, FWIW. One thing I didn't try was creating an |
One of the fields in fstab is the scan frequency. Without an fstab, you get autogenerated ones from systemd, which will probably have frequency 0. With an fstab, it'll parse and generate from your choices. |
@thiagomacieira is correct, and |
Interesting, looks like it's actually the order to check in 🤔 |
There is a systemd unit for it: systemd-fsck-root.service
I believe it is supposed to be a part of correct target, but not able to figure out which. |
Confirm at Linux 5.10.113-64.lts2020 #1 SMP Wed Apr 27 06:05:02 PDT 2022 x86_64 GNU/Linux $ sudo swupd info --verbose Distribution: Clear Linux OS |
For me changing the correct kernel line in |
I can't figure out how to run fsck on
/
. I've tried:fsck.mode=force
on the kernel command line (i.e. pressinge
before clear boots)sudo tune2fs -C 70 -c 1 /dev/sda3 && reboot
sudo tune2fs -i 1m /dev/sda3 && reboot
(the last run was over a year ago according totune2fs
)I'm on 32510.
The text was updated successfully, but these errors were encountered: