You are not logged in.
Yesterday, I was booting my computer and in that thing that starts printing text while it boots said:
[FAILED] Failed to mount /boot/efi.
See 'systemctl status boot-efi.mount' for details.
[DEPEND] Dependency failed for Local File Systems.
I tried searching for fixes, and I ended up on a live Arch Linux iso. After mounting my root partition and chrooting in, I ran pacman -Syu. After that, when I try to boot it gets stuck at a black screen that says "Loading Linux linux" after selecting the entry in the GRUB menu.
Also, when I try to install the kernel it gives me an error:
==> ERROR: '/lib/modules/6.11.5-arch1-1' is not a valid kernel module directory.
Last edited by guasap209 (2024-11-05 17:10:19)
Offline
When you try to install the kernel from where? The rescue target?
Can you boot the system when commenting the /boot/efi entry in fstab?
The general symptoms suggest that you're booting an old kernel, either because you forgot/failed to mount the /boot partition before the update or because youre mounting one but are actually booting from the root partition.
Boot the install iso, mount the root partition to /mnt and get the journal from a recent boot:
Please post your complete system journal for the boot:
sudo journalctl -D /mnt/var/log/journal -b -1 | curl -F 'file=@-' 0x0.st
You can also mount the boot partition into place*, chroot into the system and re-install the kernel to fix this.
*If the journal from the installed system shows that you're loading "/boot/vmlinuz-linux" rather than "/vmlinuz-linux" you're not booting from any dedicated partition but the root partition and the kernel has to go into the /boot directory on that, so don't mount anything there.
Online
The journal:
http://0x0.st/XGBi.txt
When you try to install the kernel from where?
From the install iso.
Can you boot the system when commenting the /boot/efi entry in fstab?
I was able to when it didn't get stuck loading the kernel, but without sound or internet working.
Offline
6.11.4-arch1-1
…BOOT_IMAGE=/boot/vmlinuz-linux
You're booting a dated kernel from the root partition.
From the install iso, mount the system into /mnt, don't mount anything into /mnt/boot, arch-chroot into the system and re-install the kernel.
Online
After chrooting, when I run
pacman -S linux
it gives me an error. It says:
==> ERROR: '/lib/modules/6.11.5-arch1-1' is not a valid kernel module directory
Offline
ls -la /lib/modules/6.11.5-arch1-1
Online
ls -la /lib/modules/6.11.5-arch1-1
ls: cannot access '/lib/modules/6.11.5-arch1-1': No such file or directory
Offline
ls /lib/modules
Also when and how exactly do you get the error?
pacman -S linux 2>&1 | tee /tmp/pacman.log
cat /tmp/pacman.log | curl -F 'file=@-' 0x0.st
Can you install the kernel from the install iso (w/o chrooting)
pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -S linux
Online
ls /lib/modules
Doesn't output anything.
pacman -S linux 2>&1 | tee /tmp/pacman.log cat /tmp/pacman.log | curl -F 'file=@-' 0x0.st
Can you install the kernel from the install iso
pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -S linux
outputs the same but without everything thet starts with "==>" or "->". It also throws an error it didn't throw before:
/usr/share/libalpm/scripts/mkinitcpio: line 74: /dev/fd/63: No such file or directory
Offline
From the chroot
stat /lib/modules
realpath /lib/modules
line 74: /dev/fd/63: No such file or directory
Don't chroot into the system for that. Resp. exit any previous chroot.
Online
stat /lib/modules
File: /lib/modules
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 8,3 Inode: 7879686 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/. root)
Access: 2024-11-01 11:48:11.237245775 +0100
Modify: 2024-11-01 11:45:10.451800039 +0100
Change: 2024-11-01 11:45:10.451900039 +0100
Birth: 2024-11-01 11:45:10.451800039
.
realpath /lib/modules
/lib/modules
Don't chroot into the system for that
To install the kernel? I didn't.
Offline
/lib/modules is supposed to be equivalent to /usr/lib/modueles, something probably killed that symlink.
stat /lib* /usr/lib/*
Edit: also
ls -l /lib
Last edited by seth (2024-11-02 15:18:55)
Online
stat /lib*/usr/lib/*
ls -l /lib
outputs
total 8
drwxr-xr-x 2 root root 4096 Nov 1 11:45 modules
drwxr-xr-x 3 root root 4096 Aug 15 19:39 udev
Offline
What's inside /lib/udev? It's probably the cause of this.
The blank between "/lib*" and "/usr/lib/*" wa deliberate, I'm not interested of the stat of every single file.
What's /usr/lib/hamsterporn.so?
Online
The blank between "/lib*" and "/usr/lib/*" was deliberate
Sorry, I misspelled it when writing the post. When I typed the command I wrote the space.
What's inside /lib/udev?
ls /lib/udev
outputs
rules.d
Offline
Ok, look down the entire directory tree…
Sorry, actually I introduced a bogus slash
stat /lib* /usr/lib*
But most likely only /lib is affected.
Figure what's in there and then make sure to return /lib to being a symlink to usr/lib
Online
Figure what's in there
There's nothing
make sure to return /lib to being a symlink to usr/lib
so I just run
ln /lib /usr/lib
right?
Offline
Okay, I have deleted /lib, ran
ln /usr/lib / -s
and tried to install the kernel. This time it installed without any errors, but when I reboot it still gets stuck in the same spot.
Offline
Comment /boot/efi in the fstab, can you boot the system now?
Can you post teh journal of that boot?
Resp. if not: what kernel are you booting? 6.11.5 or 6.11.4?
Online
Comment /boot/efi in the fstab, can you boot the system now?
No.
Can you post teh journal of that boot?
I think not but I'm not sure how that works.
what kernel are you booting?
I installed the 6.11.6.
Offline
No.
And what is the new error?
I installed the 6.11.6.
That does not answer the question which kernel you're *booting*
not sure how that works.
In doubt like https://bbs.archlinux.org/viewtopic.php … 4#p2205944
Online
And what is the new error?
Nothing new. I get past the bootloader, the scrren turns black and it says at the top "Loading Linux linux".
That does not answer the question which kernel you're *booting*
I'm not sure then, I guessed it would boot the last one installed. If I ls /usr/lib/modules there are 3: 6.10.5-arch1-1, 6.11.6-arch1-1 and 6.11.6-zen1-1-zen. The zen kernel is there because I installed it to see if the problem was just with the regular one.
If I ls 6.10.5-arch1-1 there's just one file named "modules.weakdep". If I ls the other 2 there are a couple files instead of just one. I don't know of that's related.
like https://bbs.archlinux.org/viewtopic.php … 4#p2205944
http://0x0.st/XGp_.txt
I think the journal is the same as the last time I sent it, thought. I ran the command to see what I was going to upload and it looked the same as the last time; that's why I was confused.
Offline
the journal is the same as the last time I sent it
I get past the bootloader, the scrren turns black and it says at the top "Loading Linux linux".
Ah.
[FAILED] Failed to mount /boot/efi.
See 'systemctl status boot-efi.mount' for details.
[DEPEND] Dependency failed for Local File Systems.I tried searching for fixes, and I ended up on a live Arch Linux iso. After mounting my root partition and chrooting in, I ran pacman -Syu. After that, when I try to boot it gets stuck at a black screen that says "Loading Linux linux" after selecting the entry in the GRUB menu.
The problem had shifted away from a mere module lack.
Boot the install iso, chroot into the system, mount /boot/efi, re-install the system.
Online
After mounting my boot partition to /boot/efi and running pacman -S linux, I reboot and the exact same happens: it can't load linux.
Offline
You don't have a boot partition in that sense.
From the iso, w/o chrooting:
ls -lR /mnt/boot
LC_ALL=C pacman --root /mnt -Qkk | grep -v ', 0 altered files' | grep -v backup
Then https://wiki.archlinux.org/title/Genera … l_messages - next to those remove the quiet parameter and also add "nomodeset".
Online