Recently I upgraded my SSD to an nvme drive (I am a really later adopter). I choose this as a good moment to drop Ubuntu, and switch back, after two decades, to OpenSuse. Although the experience has been great, there is one annoying problem: my boot times are really long, like minutes. After I choose OpenSuse in GRUB, I can look at thee green dots for over a minute.
To dive straight into what I have done so far:
systemd-analyze gives me
$ systemd-analyze
Startup finished in 33.501s (firmware) + 9.068s (loader) + 570ms (kernel) + 1min 3.106s (initrd) + 8.266s (userspace) = 1min 54.513s
I have tried systemd-analyze blame, but the output is not very usable to me:
$systemd-analyze blame
1min 3.819s sys-module-configfs.device
1min 3.762s dev-disk-by\x2did-nvme\x2dLexar_SSD_NQ790_2TB_PLG611R006087P220Q_1\x2dpart2.device
1min 3.762s sys-devices-pci0000:00-0000:00:02.1-0000:01:00.0-0000:02:08.0-0000:0a:00.0-nvme-nvme0-nvme0n1-nvme0n1p2.device
1min 3.762s dev-nvme0n1p2.device
...
this goes on for a while, with many devices taking over 1 minute. As far as I understand this, it has something to do with them all being blocked by the same issue.
The first thing I tried was to disconnect my card reader. When this did not help, I disconnected the USB 3 ports from the PC’s case. This seemed to help, but only for a while and now the problem is back. I have disabled the TPM module as well, because I don’t use it anyway and it also showed up in systemd-analyze blame, but that did not change much either.
There are two issues that caught my attention, and may or may not have to do anything with the problem. When I start up, before going to the three green dots (which I think is firmware loading) it shows error -19:
hub 0-0:1.0: config failed, hub doesn't have any ports! (
err -19)
The second thing is, I have a lot of (virtual) serial ports:
/dev/tty /dev/tty12 /dev/tty17 /dev/tty21 /dev/tty26 /dev/tty30 /dev/tty35 /dev/tty4 /dev/tty44 /dev/tty49 /dev/tty53 /dev/tty58 /dev/tty62
/dev/tty0 /dev/tty13 /dev/tty18 /dev/tty22 /dev/tty27 /dev/tty31 /dev/tty36 /dev/tty40 /dev/tty45 /dev/tty5 /dev/tty54 /dev/tty59 /dev/tty63
/dev/tty1 /dev/tty14 /dev/tty19 /dev/tty23 /dev/tty28 /dev/tty32 /dev/tty37 /dev/tty41 /dev/tty46 /dev/tty50 /dev/tty55 /dev/tty6 /dev/tty7
/dev/tty10 /dev/tty15 /dev/tty2 /dev/tty24 /dev/tty29 /dev/tty33 /dev/tty38 /dev/tty42 /dev/tty47 /dev/tty51 /dev/tty56 /dev/tty60 /dev/tty8
/dev/tty11 /dev/tty16 /dev/tty20 /dev/tty25 /dev/tty3 /dev/tty34 /dev/tty39 /dev/tty43 /dev/tty48 /dev/tty52 /dev/tty57 /dev/tty61 /dev/tty9
but no physical serial ports. I could see this message in dmesg:
[ 0.415783] [ T1] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
So I tried to disable this using grub:
8250.nr_uarts=0
The message is gone, but the serial ports still show up in /dev
I have no idea how to continue. I do consider distro hopping, but I don’t want to go trough configuring the system again.