<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2024 at 1:05 PM Keith via ubuntu-users <<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/1/24 9:44 AM, Jerry Geis wrote:<br>
> I tried adding this to /etc/default/grub<br>
> GRUB_CMDLINE_LINUX_DEFAULT="fsck.mode=force fsck.repair=yes"<br>
> then running update-grub<br>
> rebooted<br>
> <br>
> found this in /var/log/syslog<br>
> <br>
> systemd[1]: systemd-fsck-root.service - File System Check on Root Device <br>
> was skipped because of an unmet condition check (ConditionPathExists=!/ <br>
> run/initramfs/fsck-root)<br>
> <br>
> IN fact that file is there :<br>
> ls /run/initramfs/<br>
> fsck-root  fsck.log  overlayroot.log<br>
> <br>
> How can I re-generate INITRAMFS so that file is not present - so fsck <br>
> happens on the root fs ?<br>
> <br>
<br>
Initrd usually runs fsck before mounting the actual root filesystem. It <br>
creates the /run/initramfs/fsck-root stampfile that tells <br>
systemd-fsck-root.service that the root filesystem has already been <br>
checked. The results of the check should be in the fsck.log file.<br>
<br>
-- <br>
Keith<br>
<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a></blockquote><div><br></div><div>I can remote /run/initramfs/fsck-root  and reboot - the file is re-generated. How do I disable this file ?</div><div><br></div><div>This is hte contents of the log:</div>more /run/initramfs/fsck.log <br>Log of fsck -C -f -y -V -t ext4 /dev/nvme0n1p2 <br>Fri Nov  1 17:16:11 2024<br><br>fsck from util-linux 2.39.3<br>[/usr/sbin/fsck.ext4 (1) -- /dev/nvme0n1p2] fsck.ext4 -f -y -C0 /dev/nvme0n1p2 <br>e2fsck 1.47.0 (5-Feb-2023)<br>Pass 1: Checking inodes, blocks, and sizes<br>Pass 2: Checking directory structure<br>Pass 3: Checking directory connectivity<br>Pass 4: Checking reference counts<br>Pass 5: Checking group summary information<br>/dev/nvme0n1p2: 252898/15196160 files (0.2% non-contiguous), 6418716/60773888 blocks<br><br>Fri Nov  1 17:16:12 2024<br><div><br></div><div><br></div><div><br></div><div>However I dont see it doing it on the screen - and /var/log/syslog says it was actually SKIPPED</div><div>  kernel: 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</div><div><br></div><div>Jerry</div></div></div>