I have FSCKFIX=yes
in /etc/default/rcS
, however, when I drove down to the site and connected a monitor to this server today, I saw this:
I ran fsck.ext4 -fy /dev/sda1
and rebooted and now the server is back up and running.
I understand there are situations where just blindly running fsck -fy
is dangerous and can lead to data loss. However, in my case, this is a physically inaccessible server and all the data is backed up in the cloud. It is paramount that Ubuntu does any and all steps possible to try to get it online.
Is there any way to force Ubuntu to always run fsck -fy
, even if there are any "UNEXPECTED INCONSISTENCY" problems?
preen
is enough. But as you can see in the screenshot, it detects problems than are not considered safe to automagically repair and specifically states that running it inauto
orpreen
mode would result in the same warning and abort. Theyes
part overwrites this and tries to fix it anyway. So you will not be stuck on busybox on boot - if the inconsistencies can be repaired by one (manual or forced) fsck run. – Robert Riedl Dec 04 '20 at 09:23