You are not logged in.

#1 2024-04-02 15:55:27

Undied
Member
Registered: 2024-04-02
Posts: 17

[SOLVED] Grub does not find /vmlinuz_linux after system update

I did a system update and after a reboot I wasn't able to boot, getting an error loading vmlinuz-linux not found.
Then I booted arch from a USB

I tried
```
mount /dev/sda1 /mnt
mount /dev/sda6 /mnt/boot
arch-chroot /mnt
```
But I got chroot: failed to run command ‘/bin/bash’: No such file or directory
I tried running pacstrap and all but it failed while downloading one of those utilities, please help me

Last edited by Undied (2024-04-08 16:15:01)

Offline

#2 2024-04-02 15:56:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

What's actually on sda1?

Offline

#3 2024-04-03 00:58:04

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

/dev/sda1 contains my boot/EFI partition which is 260MB
/dev/sda6 contains the old arch data

Offline

#4 2024-04-03 01:21:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

...then why would you mount sda1 at /mnt? Maybe see https://wiki.archlinux.org/title/Instal … le_systems ?

Offline

#5 2024-04-03 02:05:50

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Now I get zstd no space left error when trying pacman -S linux even though I tried deleting a lot of files using chroot

Last edited by Undied (2024-04-03 02:19:00)

Offline

#6 2024-04-03 02:20:20

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

@Scimmia this probably happened because of my last unsuccessful attempt, my boot folder now has bash BOOT dev EFI etc proc run sys tmp var vmlinuz-linux folders, which one are to be removed? And should they be removed with rm -rf?

Offline

#7 2024-04-03 02:24:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

you're getting the no space error because of when you tried to run pacstrap on that partition, it filled it up completely. Keep the EFI dir, delete the other dirs but not files.

Offline

#8 2024-04-03 02:26:18

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

@Scimmia delete every other folder than EFI using rm - rf? Also could you please confirm by doing ls on your EFI sda

Last edited by Undied (2024-04-03 02:32:55)

Offline

#9 2024-04-03 03:13:25

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Scimmia wrote:

you're getting the no space error because of when you tried to run pacstrap on that partition, it filled it up completely. Keep the EFI dir, delete the other dirs but not files.

A few folders were mounted by me with
$ mount -t proc proc /mnt/proc
$ mount -t sysfs sys /mnt sys
$ mount -o bind /dev /mnt/dev
$ mount -t devpts pts /mnt/dev/pts

How would I unmount those?

Offline

#10 2024-04-03 04:50:57

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

@Scimmia a small update, the initcpio image successfully generated by running pacman -S linux but when I boot grub still cannot find `/vmlinuz-linux`

Here is a full sequence of what I did

mount /dev/sda6 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt
pacman -S linux

Result: Initcpio: image generation successful

EDIT: I find that pacman -S linux created a /boot/vmlinuz-linux but grub searches for /vmlinuz-linux how can I fix that?

Last edited by Undied (2024-04-03 11:32:03)

Offline

#11 2024-04-04 01:58:14

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Hello, anyone??

Offline

#12 2024-04-04 09:02:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,789

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Don't do that: https://wiki.archlinux.org/title/Genera … es#Bumping

GRUB looking for a /vmlinuz-linux would be correct assuming it's properly installed and also looking for images that are present on the ESP (the path is from  the "root" of the partition, which would be /vmlinuz-linux if everything is installed to the ESP partition). Post your /boot/grub/grub.cfg (and for completeness sake, unmount /boot afterwards and check the contents of /boot

ls -lR /boot

Last edited by V1del (2024-04-04 09:03:22)

Offline

#13 2024-04-04 10:13:08

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

@V1del it looks like I had a grub update and after that update grub told me to re run grub-install and make a new config file which I apparently missed, I redid that and grub now found /boot/vmlinuz-linux but even after that grub tells me the kernel is not loaded

Offline

#14 2024-04-04 10:34:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,789

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

That will have broken things in the other direction. Make up your mind on where you want your kernel images to live. If on the ESP mount the ESP to /boot and then reinstall GRUB and regenerate the config and make sure to add the ESP to the fstab so it keeps getting mounted to /boot.

Last edited by V1del (2024-04-04 10:35:40)

Offline

#15 2024-04-04 10:41:25

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

I did reinstall grub to /boot when I ran the grub-install, there's no worry about that, should I reinstall the kernel?

Last edited by Undied (2024-04-04 11:06:50)

Offline

#16 2024-04-04 12:15:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,789

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Probably/maybe post that ls command I asked for earlier as well as 

file /boot/vmlinuz-linux

Offline

#17 2024-04-04 15:20:24

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

@V1del the reason I had to reinstall grub was because there was no /boot/grub/grub.cfg which I believe broke with my grub v2 update so the config should be the raw one generated by running grub mk config and here are the images you requested

ls -lR boot
https://media.discordapp.net/attachment … 72c5f456d&

https://media.discordapp.net/attachment … 1b25a8886&

And the file output
https://media.discordapp.net/attachment … 84e0e4d64&

https://media.discordapp.net/attachment … cf3522881&

Last edited by Undied (2024-04-04 15:21:41)

Offline

#18 2024-04-04 17:18:05

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Please also share the content of /boot/grub/grub.cfg — use a pastebin client to share text. Don't link to pictures of text.

Offline

#19 2024-04-05 08:27:44

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Head_on_a_Stick wrote:

Please also share the content of /boot/grub/grub.cfg — use a pastebin client to share text. Don't link to pictures of text.

Here is the pastebin of grub config:
https://sprunge.us/vp612r

Offline

#20 2024-04-05 09:05:29

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

@Head_on_a_Stick I reran pacman -S linux and even though initcpio generates image successfully checking a bit up I see zstd-compressed cannot write because no space is left in /dev/sda1 here are the contents, which should be deleted?
Here are the contents in /boot
http://sprunge.us/0GxskN

Offline

#21 2024-04-05 22:43:12

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Well you certainly don't need /boot/BOOT/. Also remove "$RECYCLE.BIN", "System Volume Information" & initramfs-linux.img.tmp.

Offline

#22 2024-04-06 00:56:28

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Head_on_a_Stick wrote:

Well you certainly don't need /boot/BOOT/. Also remove "$RECYCLE.BIN", "System Volume Information" & initramfs-linux.img.tmp.

Ah no lol I panicked a bit the first time around and did a pacstrap on /dev/sda1 which I first mounted at boot, that's what broke everything and iirc /boot/BOOT contains BOOT.sdi and rest may be needed by windows so I won't be touching them

Any idea on what files pacstrap actually creates so that I can delete them?

Last edited by Undied (2024-04-06 03:39:31)

Offline

#23 2024-04-06 14:53:24

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

The pacstrap command installs whichever packages are passed to it as arguments.

Doesn't look like any are installed though. Have you tried https://archlinux.org/packages/extra/x86_64/ncdu/ to see what is taking the space? Use it from a live ISO on a mounted partition.

Offline

#24 2024-04-07 15:55:20

Undied
Member
Registered: 2024-04-02
Posts: 17

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

@Head_on_a_Stick looks like the fallback image takes up a lot of space, what do I do?

https://media.discordapp.net/attachment … c8fa3af3d&

Offline

#25 2024-04-07 18:01:58

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: [SOLVED] Grub does not find /vmlinuz_linux after system update

Either remove the fallback preset from /etc/mkinitcpio.d/linux.preset (and delete the fallback image itself) or remove the kms hook and instead add your video driver(s) to the MODULES array (and regenerate the initramfs).

Offline

Board footer

Powered by FluxBB