fsck on boot 24.04 for root fs
Keith
keithw at caramail.com
Fri Nov 1 17:03:42 UTC 2024
On 11/1/24 9:44 AM, Jerry Geis wrote:
> I tried adding this to /etc/default/grub
> GRUB_CMDLINE_LINUX_DEFAULT="fsck.mode=force fsck.repair=yes"
> then running update-grub
> rebooted
>
> found this in /var/log/syslog
>
> systemd[1]: systemd-fsck-root.service - File System Check on Root Device
> was skipped because of an unmet condition check (ConditionPathExists=!/
> run/initramfs/fsck-root)
>
> IN fact that file is there :
> ls /run/initramfs/
> fsck-root  fsck.log  overlayroot.log
>
> How can I re-generate INITRAMFS so that file is not present - so fsck
> happens on the root fs ?
>
Initrd usually runs fsck before mounting the actual root filesystem. It
creates the /run/initramfs/fsck-root stampfile that tells
systemd-fsck-root.service that the root filesystem has already been
checked. The results of the check should be in the fsck.log file.
--
Keith
More information about the ubuntu-users
mailing list