You are not logged in.
It seems like initramfs hangs, but it genuinely takes about 3-4 minutes to load to my login manager.
I don't remember what I did last, i think i did a Syu update, or something wrong happened with a pci usb adapter i tried to pass through and the system was very glitchy after that, but i cannot seem to restore it to the state it was before, where initramfs would load very quickly to my login screen.
How do i begin to debug this?
Last edited by jumperfox (2025-01-25 14:16:57)
Offline
systemd-analyze critical-chain
sudo journalctl -bIf you want to post it for review
sudo journalctl -b | curl -F 'file=@-' 0x0.stRemoving the quiet parameter might also help to see what's going on during the boot.
Offline
Hi, here is what was asked for:
critical-chain: https://pastebin.com/raw/vNz3b0AM
graphical.target @1min 34.003s
└─multi-user.target @1min 34.003s
└─libvirtd.service @1min 33.889s +112ms
└─remote-fs.target @1min 33.885s
└─smb-gamedrive.mount @1min 33.140s +742ms
└─network-online.target @1min 33.135s
└─NetworkManager-wait-online.service @1min 27.311s +5.823s
└─NetworkManager.service @1min 26.524s +781ms
└─basic.target @1min 26.522s
└─dbus-broker.service @1min 26.462s +53ms
└─dbus.socket @1min 26.453s
└─sysinit.target @1min 26.450s
└─systemd-update-utmp.service @1min 26.408s +40ms
└─systemd-tmpfiles-setup.service @1min 26.239s +163ms
└─systemd-journal-flush.service @1min 26.016s +220ms
└─systemd-journald.service @425ms +1min 25.566s
└─systemd-journald.socket @404ms
└─-.mount @351ms
└─-.slice @351msjournalctl: https://pastebin.com/raw/LHWBsByT
Last edited by jumperfox (2025-01-26 16:05:12)
Offline
Please use [code][/code] tags. Edit your post in this regard.
Stalls on IO, there're massive issues w/ the USB - detach (or in case of keyboard and mouse and if you can: replace) all external devices
This here is constantly resetting
Jan 25 13:01:52 archone kernel: usb 4-6.1.1: new full-speed USB device number 42 using xhci_hcd
Jan 25 13:01:53 archone kernel: usb 4-6.1.1: New USB device found, idVendor=0853, idProduct=0311, bcdDevice= 0.01
Jan 25 13:01:53 archone kernel: usb 4-6.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 25 13:01:53 archone kernel: usb 4-6.1.1: Product: REALFORCE R3S US FULL
Jan 25 13:01:53 archone kernel: usb 4-6.1.1: Manufacturer: Topre but this also looks like it's an external hub?
Make sure to remove that.
If that helps, monitor "dmesg -W" and attach devices until you're hitting errors again.
In the lucky most case it's a cable.
Offline
So thats my keyboard, and i dont recall seeing this issue before while using this keyboard. It might actually be my usb pci card i installed. I will remove that and check.
Though I do recall if i press the keyboard a few times initramfs seems to come up quicker. This was not an issue before.
Is there a way to see what initramfs is doing in real time while booting? I dont want to see a blank screen, i want to see all logs scrolling on boot.
Offline
Remove the quiet parameter and see https://wiki.archlinux.org/title/Genera … l_messages but there's typically no output for the initramfs being loaded into memory (though I don't think this is where you're stalling from your journal)
Offline
I removed the quiet tag and saw some kind of job running. Initramfs runs quickly, like you suspected. not the problem.
But I see this 1 minute 30 sec job run, and im not sure what it is. It reminds me of ubuntu's dhcp service thing that hangs boot if youre not connected to a network.
Any ideas?
Offline
journald - it tries to flush into /var/log - the problem is recorded in the journal you posted, the question is what causes the stall and since it's mostly IO-dependent, the usb stuff is YELLLING at you.
Did you already try to remove the new usb hub?
Offline
I did not, I will test this on the weekend. Sorry, three exams coming up soon.
Offline
I have the same issue! For me it seems to stem from the various USB and overvolt errors I get from a broken usb port on my computer on boot, but I've been unable to find a fix.
Arch Linux is love, Arch Linux is life.
Offline
Update: It is definitely the port. I shorted out to port (which is a bad idea, I just wanted to test) and it gave up trying to initialise it on boot, simply giving another over volt warning and booting just as fast as it used to. I checked dmesg and in specific it keeps repeating about every 4 seconds the same "Cannot enable. Maybe the USB cable is bad?" error over and over. Does anybody know if there is a way to blacklist the kernel from attempting to enable this port? Otherwise I can just take my computer apart and cut the wires going to the port, as it is irreparably broken anyway.
:3
Last edited by secretknowledge (2025-01-29 01:22:52)
Arch Linux is love, Arch Linux is life.
Offline
The OP doesn't have any kind of overvolt warnings.
You can hide a hub using pci-stub, but idk whether its possible at all to ignore a specific post.
There's currently nothing attached to it?
Have you tried just plugging a usb key?
But w/ "it is irreparably broken anyway" and "overvolt warnings" I'd try to fix the HW indeed to prevent the issue from spreading out (eg. by short circuits…)
Offline