[Solved] File system check on system startup

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
kajasie
Posts: 23
Joined: 2022-01-30 14:32
Been thanked: 1 time

[Solved] File system check on system startup

#1 Post by kajasie »

The message in journal is this:

Code: Select all

file system check on root device was skipped because of an unmet condition check
What is the cause of this message and is it something to aware of?
Last edited by kajasie on 2025-01-13 19:15, edited 1 time in total.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2548
Joined: 2010-06-07 16:59
Has thanked: 50 times
Been thanked: 282 times

Re: File system check on system startup

#2 Post by FreewheelinFrank »

We need to know the condition that was unmet. What is the full line? What is the output of the following?

Code: Select all

$ systemctl status systemd-fsck-root.service
On my system I have this in journalctrl:

Code: Select all

Jan 04 06:06:15 lenovo-debian-xfce 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).
And this from systemctl status systemd-fsck-root.service

Code: Select all

○ systemd-fsck-root.service - File System Check on Root Device
     Loaded: loaded (/lib/systemd/system/systemd-fsck-root.service; enabled-runtime; preset: enabled)
     Active: inactive (dead)
  Condition: start condition failed at Sat 2025-01-04 06:06:15 GMT; 1h 32min ago
             └─ ConditionPathExists=!/run/initramfs/fsck-root was not met
       Docs: man:systemd-fsck-root.service(8)
This could be the e2scrub_reap.service trying to check a LVM that doesn't exist.

https://ubuntuforums.org/showthread.php ... 925&page=2

Your condition may be different.

Another reason for the message seems to be having the btrfs file system where fsck does not work, in which case the condition would be

Code: Select all

systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/).
https://forum.manjaro.org/t/file-system ... ite/142688

So we need to know the unmet condition.

kajasie
Posts: 23
Joined: 2022-01-30 14:32
Been thanked: 1 time

Re: File system check on system startup

#3 Post by kajasie »

The output of:

Code: Select all

$ systemctl status systemd-fsck-root.service
is the same as you wrote it.

Aki
Global Moderator
Global Moderator
Posts: 4259
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 124 times
Been thanked: 576 times

Re: File system check on system startup

#4 Post by Aki »

Hello @kajasie,
kajasie wrote: 2025-01-06 12:44 The output of:

Code: Select all

$ systemctl status systemd-fsck-root.service
is the same as you wrote it.
So the unmet condition in your log is also this, isn't it ?

Code: Select all

ConditionPathExists=!/run/initramfs/fsck-root was not met
According to the "systemd.unit — Unit configuration" manual page:
ConditionPathExists=

Check for the existence of a file. If the specified absolute path name does not exist, the condition will fail. If the absolute path name passed to ConditionPathExists= is prefixed with an exclamation mark ("!"), the test is negated, and the unit is only started if the path does not exist.
According to the systemd changelog [1]:
* Skip systemd-fsckd autopkgtest if /run/initramfs/fsck-root exists, i. e. the initramfs already ran fsck.
So the systemd-fsck-root.service does not check by default the root file system if the file /run/initramfs/fsck-root exists; i.e.:

Code: Select all

$ sudo ls -la /run/initramfs/fsck-root
Password: 
-rw-r--r-- 1 root root 0  6 gen 16.51 /run/initramfs/fsck-root
The /run/initramfs/fsck-root is created by the initramfs functions (from initramfs-tools package) here: Hope this helps.

--
[1] sources / systemd / 257.1-7 / debian / changelog
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

kajasie
Posts: 23
Joined: 2022-01-30 14:32
Been thanked: 1 time

Re: File system check on system startup

#5 Post by kajasie »

As I understand it's normal behavior and there's nothing to worry about. Thank you very much.

Post Reply