You are not logged in.

#1 2024-12-12 00:10:52

gompo
Member
Registered: 2024-12-11
Posts: 3

[SOLVED]/vmlinuz-linux not found

Hi there! It's my first time installing Arch and i'm having trouble on the first boot, after installing.
I tried reinstalling 3 times, following carefuly the steps of Arch's instalation guide, but always ended up having the same result:

When I finish installing the packages with packstrap, I install GRUB, unmount, reboot and i always end up with the grub prompt " GRUB> " If I try to pass boot It will tell me that first i need to load the kernel
I've tried searching online how to solve this, and tried (if I don't recall badly):

grub> insmod linux
grub> linux /boot/vmlinuz-linux root=/dev/sda5

and got as a result '/vmlinuz-linux' not found

The steps i took regarding GRUB install were(other steps were taking in between, but i'll only explain the ones i feel related to GRUB, please ask if needed):

* i've set up a fat 32 partition for boot, as stated on the installation guide (500mb size), with the following command
# mkfs.fat -F 32 /dev/sda6

*then # mount --mkdir /dev/sda6 /mnt/boot

*i downloaded the needed packages with pacman: grub, grub-install, efibootmgr, grub-mkconfig

*installed grub using grub-install with the command grub-install --target=x86_64-efi --efi-directory=/boot ==bootloader-id=GRUB (i can't remember if it was --efi-directory=/boot or --efi-directory=/boot/efi. either way, one of those worked and let me install grub, the other didn't

If more info is needed, please let me know!
Thanks for reading this topic (L)

Last edited by gompo (2024-12-12 01:15:52)

Offline

#2 2024-12-12 00:18:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,204

Re: [SOLVED]/vmlinuz-linux not found

Did you chroot after the mount? Also the device node you mention as having created the FAT FS on sda6 and the device you're actually mounting to /boot sda5 don't match in this excerpt of yours.

I'd say to assess the situation, boot into the live system, mount the partitions like you think they are correct, do a chroot and post the outputs of

mount
lsblk -f 
pacman -Q linux
ls -l /boot

you can use https://wiki.archlinux.org/title/List_o … n_services to paste from the cmdline assuming you can set up a network connection.

Offline

#3 2024-12-12 00:24:58

gompo
Member
Registered: 2024-12-11
Posts: 3

Re: [SOLVED]/vmlinuz-linux not found

V1del wrote:

Did you chroot after the mount? Also the device node you mention as having created the FAT FS on sda6 and the device you're actually mounting to /boot sda5 don't match in this excerpt of yours.

I'd say to assess the situation, boot into the live system, mount the partitions like you think they are correct, do a chroot and post the outputs of

mount
lsblk -f 
pacman -Q linux
ls -l /boot

you can use https://wiki.archlinux.org/title/List_o … n_services to paste from the cmdline assuming you can set up a network connection.

Sorry! That was a typo.I mounted /dev/sda6 to /mnt/boot, then I did chroot

On the GRUB prompt i typed grub> linux /boot/vmlinuz-linux root=/dev/sda5 because i tought that I had to target the root partition, is that ok?

I'll do what you ask and come back

Thanks!

Offline

#4 2024-12-12 00:36:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,204

Re: [SOLVED]/vmlinuz-linux not found

It depends on what you installed where. If you indeed made a separate VFAT partition that you mounted to /boot and installed grub as well as the kernel there, the correct grub lines would be

linux /vmlinuz-linux root=/dev/sda5 
initrd /initramfs-linux.img

since the paths need to be relative to the root of the partition which would be /vmlinuz-linux directly (without the /boot, since that's part of the root partition but you're booting from the VFAT partition directly)

FWIW symptoms sound like you might simply have forgotten to run grub-mkconfig -o /boot/grub/grub.cfg to generate a menu entry.

Offline

#5 2024-12-12 00:49:49

gompo
Member
Registered: 2024-12-11
Posts: 3

Re: [SOLVED]/vmlinuz-linux not found

V1del wrote:

It depends on what you installed where. If you indeed made a separate VFAT partition that you mounted to /boot and installed grub as well as the kernel there, the correct grub lines would be

linux /vmlinuz-linux root=/dev/sda5 
initrd /initramfs-linux.img

since the paths need to be relative to the root of the partition which would be /vmlinuz-linux directly (without the /boot, since that's part of the root partition but you're booting from the VFAT partition directly)

FWIW symptoms sound like you might simply have forgotten to run grub-mkconfig -o /boot/grub/grub.cfg to generate a menu entry.

I was about to post the output of the console, but then I've read your reply and try to run grub-mkconfig. I think that when i was finishing the install i havent executed that command properly, and my imput was just "grub-mkconfig" ??

Now is working! Thank you so much!

Last edited by gompo (2024-12-12 01:15:25)

Offline

Board footer

Powered by FluxBB