Update: It was a usb 3 hub that did not work with linux. plugging it into a usb2 port on the pc improved boot time. its now 25 sec!
Hi there!
So i build a new pc with hardware < year old and installed mint on it and it takes annoyingly long to boot, 1:50min from the output of systemd-analyze
:
Startup finished in 14.075s (firmware) + 10.681s (loader) + 51.070s (kernel) + 34.573s (userspace) = 1min 50.400s
graphical.target reached after 34.570s in userspace.
The 50sec on kernel boot seems strange to me, maybe 34sec of userspace as well.
It seems to be the systemd-usdev-settle.service
according to the output of systemd-analyze blame
:
29.451s systemd-udev-settle.service
3.254s NetworkManager-wait-online.service
948ms zfs-load-module.service
491ms NetworkManager.service
154ms blueman-mechanism.service
The output of systemctl status systemd-udev-settle.service
shows:
systemd-udev-settle.service - Wait for udev To Complete Device Initialization
Loaded: loaded (/usr/lib/systemd/system/systemd-udev-settle.service; static)
Active: active (exited) since Wed 2025-01-22 12:06:16 CET; 5min ago
Docs: man:systemd-udev-settle.service(8)
Main PID: 526 (code=exited, status=0/SUCCESS)
CPU: 2ms
Jan 22 12:05:47 tower systemd[1]: Starting systemd-udev-settle.service - Wait for udev To Complete Device Initialization...
Jan 22 12:05:47 tower udevadm[526]: systemd-udev-settle.service is deprecated. Please fix zfs-load-module.service, zfs-import-cache.service not to pull it in.
Jan 22 12:06:16 tower systemd[1]: Finished systemd-udev-settle.service - Wait for udev To Complete Device Initialization.
So i think i need to fix the zfs modules, because they slow udev down, but how?
Any other tips to improve boot time of my system? Ubuntu on my 4 yo laptop takes maybe 20-30 seconds to boot, so linux should be a lot faster. I appreciate any helpl!
i thought about that, because i dont. but on the other hand i dont want to be confused later on when i want to use zfs and it does not work
Which version of Mint did you install? The new version has zfs modules disabled by default, because they were creating long booting problems on people who were not even using zfs. I stumbled on the problem too, I had mint installed on a usb stick (full install) and on SOME computers, when booted, it would try to load zfs stuff, taking 1.30 minutes of trying to do some systemd job for it.I removed all zfs stuff and nothing got broken.
i got the latest 2 days ago, so that should not be a problem. idk, i will just disable them i guess