You are not logged in.

#1 2024-11-01 11:51:56

guasap209
Member
Registered: 2024-11-01
Posts: 25

[SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#2 2024-11-01 17:00:54

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#3 2024-11-01 20:05:38

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#4 2024-11-01 21:06:29

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#5 2024-11-01 21:29:17

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#6 2024-11-01 21:33:44

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

ls -la  /lib/modules/6.11.5-arch1-1

Online

#7 2024-11-01 21:47:08

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#8 2024-11-01 21:51:43

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#9 2024-11-01 22:18:40

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

http://0x0.st/XGMu.txt


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

#10 2024-11-02 08:11:16

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#11 2024-11-02 09:25:38

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#12 2024-11-02 15:18:33

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

/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

#13 2024-11-02 15:50:22

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

stat /lib*/usr/lib/*

http://0x0.st/XG2r.txt


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

#14 2024-11-02 16:00:29

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#15 2024-11-02 16:10:22

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#16 2024-11-02 16:34:46

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#17 2024-11-02 16:52:16

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#18 2024-11-02 18:43:59

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#19 2024-11-02 20:45:18

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#20 2024-11-02 21:06:50

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#21 2024-11-02 21:13:27

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#22 2024-11-02 22:02:29

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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.


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

#23 2024-11-02 22:21:00

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#24 2024-11-02 22:38:42

guasap209
Member
Registered: 2024-11-01
Posts: 25

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

#25 2024-11-02 22:47:44

seth
Member
Registered: 2012-09-03
Posts: 59,003

Re: [SOLVED] System stuck at boot 'Loading Linux linux ...'

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

Board footer

Powered by FluxBB