You are not logged in.

#1 2023-08-15 12:13:35

Sewn_thrytwo
Member
Registered: 2023-06-28
Posts: 18

[SOLVED] difficulty to load kernel and boot on grub shell menu

hello,

to follow my first post, I have now a bit of difficulties to load my kernel and boot from the grub menu.

As for now I have read the grub documentation and tried the given commands  (in normal and not normal mode).

The comand returned me that the file '/vmlinuz' doesn't exist, the partition path seems to be ok (grub uses something like (hd0,msdos1) but /dev/sdx format doesn't seem to affect anything, even badly written)..

So I tried with insmod instead :

grub> insmod linux

, and it seems to load the linux kernel (I was expecting 'base', but OK), because no error message, the second step should be to do :

grub> intird /initrd

but it says

grub> intird /initrd
error: you need to load the kernel first

I'm a bit lost, what and where should be my kernel file ? Is it not under /boot/grub/i386-pc as: linux.img file ? And that's it right ?

Also , I know that on my previous try outs, I didn't rightfully edit/save the locale and vconsole and hostname .conf files while installing on the live media, but this time it should be right, but still don't have the right keyboard map loaded. Is there maybe a relation. I have a bit of issues rebooting from the live media when exiting, but doesn't seem to be serious.

Last edited by Sewn_thrytwo (2023-09-25 13:19:01)

Offline

#2 2023-08-16 21:09:29

Sewn_thrytwo
Member
Registered: 2023-06-28
Posts: 18

Re: [SOLVED] difficulty to load kernel and boot on grub shell menu

I found my own answers

I'll put it here for archives and will delete it if asked.

First i found the files with

grub> ls boot

Then did

grub> linux /boot/vmlinuz-linux root=/dev/sda1
grub>initrd /boot/initramfs-linux.img
grub>boot

root login works, and vconsole.conf is loaded, I'm good to go for installation now !

If anyone is interested in explaining me a little bit what the initramfs-linux-fallback.img file is smile

Last edited by Sewn_thrytwo (2023-08-16 21:11:17)

Offline

#3 2023-08-19 15:50:05

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,033
Website

Re: [SOLVED] difficulty to load kernel and boot on grub shell menu

The Arch32 fallback initramdisk serves the same purpose as the upstream fallback
initramdisk: it's basically a fallback in case you mess up /etc/mkinitcpio.conf and
end up in a non-working default ramdisk. Or - if in rare cases - you have non-working
modules in the ramdisk, you can at least boot the fallback one.

There is no such thing on Archlinux (and Arch32) as a fallback kernel, this would
sometimes be handy if you mess ub /boot/vmllinux (or if it breaks). But usually it's
as easy to boot from a rescue stick/CD/whatever and just recover the old kernel
(and also redo the mkinitcpio with correct customization).

Offline

Board footer

Powered by FluxBB