I'm running Fedora 41 KDE and had what appeared to be an issue with the system not loading to desktop from the GUI login screen. I am getting a black screen with just the cursor and nothing else. I can get a terminal window going on TTY3-6 to reboot and doing so would load into the desktop pretty much instantly.
Turns out that there's actually a process causing total boot time from power on to exceed 6 minutes. Boot log is viewable here https://paste.centos.org/view/raw/8846c1ec
Using systemd-analyze blame
I can see that smartd.service is causing 3 minutes of that boot time. From a quick search it seems like it might be doing a full SMART test of my 3 SSDs on the first boot of the day.
Does anyone know how to disable this at boot? There doesn't appear to be a conf file in /etc/ and smartmontools isn't installed.
edit with solution
Thanks @[email protected] and @[email protected] for correctly pointing out that fedora was struggling to mount a drive.
I checked fstab and there was no entry for the drive. mtab showed that it was mounted even though the drive wasn’t listed. I tried to find a way to have the drive ignored at boot but the only results that came up involved setting udev rules and those results were more than a decade old.
In the end I found the drive listed in /dev/. Using
rm nvmeXnXpX
I deleted the two partition entries and it now boots perfectly AND the drive is now listed correctly in the desktop and accessible.
From your log, this seems to be the issue:
Then it gets into a loop between smartd and udisks2. You sure you're drives are all okay? It really looks like the disk services are bailing because there is a problem. Did you remove a drive or something recently?
could also be an issue with kf.solid.backends.udisks2
Yes, one informs the other, hence the loop. It feels like there is a mount or something in fstab which has become invalid, and the service keeps getting stuck in a segfault>kill loop with no clean exit.
Saw this in the log:
Seems you were right, there is some kind of device or connection issue.
Good eyes! I missed that completely.