You are not logged in.

#1 2024-11-11 12:23:51

Nucleo
Member
Registered: 2024-11-11
Posts: 13

[SOLVED] Arch not found by GRUB

I freshly installed arch but grub does not find Arch.

My fstab shows 2 entries for my /mnt, but I am not sure if I should change anything. It has the appropriate /boot partition.

My lsblk -f does not show any label for the root partition l, is that a problem?


EDIT: I had forgotten the
    mkinitcpio -P
command

Last edited by Nucleo (2024-11-12 05:31:40)

Offline

#2 2024-11-11 12:42:27

cryptearth
Member
Registered: 2024-02-03
Posts: 1,010

Re: [SOLVED] Arch not found by GRUB

have you generated a config with grub-mkconfig after installing grub with grub-install?

Offline

#3 2024-11-11 12:46:19

Nucleo
Member
Registered: 2024-11-11
Posts: 13

Re: [SOLVED] Arch not found by GRUB

cryptearth wrote:

have you generated a config with grub-mkconfig after installing grub with grub-install?

Yep realised I didn't do it the first time, rebooted into live iso and made the config
Installed os-prober and everything

Offline

#4 2024-11-11 12:47:29

cryptearth
Member
Registered: 2024-02-03
Posts: 1,010

Re: [SOLVED] Arch not found by GRUB

and - does it work now?

Offline

#5 2024-11-11 12:57:29

Nucleo
Member
Registered: 2024-11-11
Posts: 13

Re: [SOLVED] Arch not found by GRUB

cryptearth wrote:

and - does it work now?

No, I was saying that before posting I did it, but still no arch.

Offline

#6 2024-11-11 13:56:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,116

Re: [SOLVED] Arch not found by GRUB

Which kernel did you install? Is the image for it at /boot?

Online

#7 2024-11-11 13:59:16

Nucleo
Member
Registered: 2024-11-11
Posts: 13

Re: [SOLVED] Arch not found by GRUB

Scimmia wrote:

Which kernel did you install? Is the image for it at /boot?


Don't know rn, I am reinstalling arch from scratch, if the problem remains will tell.
For future reference, how to find out kernel?

Offline

#8 2024-11-11 14:05:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,116

Re: [SOLVED] Arch not found by GRUB

Well you chose it and told pacstrap to install it, so you should know it.

Online

#9 2024-11-11 15:36:18

cryptearth
Member
Registered: 2024-02-03
Posts: 1,010

Re: [SOLVED] Arch not found by GRUB

Nucleo wrote:

I am reinstalling arch from scratch,

although this is a valid option I used for years to fix broken windows installs is difficult to help fixing a boot issue if you trash the system
also: for me your reply read as you hadn't generated a config before my reply and did so after it - I misunderstood you meant you alread had done - in whoch case my next reply would had been: does the generated config list a section for arch?

Offline

#10 2024-11-12 05:28:22

Nucleo
Member
Registered: 2024-11-11
Posts: 13

Re: [SOLVED] Arch not found by GRUB

cryptearth wrote:
Nucleo wrote:

I am reinstalling arch from scratch,

although this is a valid option I used for years to fix broken windows installs is difficult to help fixing a boot issue if you trash the system
also: for me your reply read as you hadn't generated a config before my reply and did so after it - I misunderstood you meant you alread had done - in whoch case my next reply would had been: does the generated config list a section for arch?

I had forgotten the mkinitcpio command last time, that does in fact copy the iso to /boot, the first time, only realised it after reinstalling and encountering the step. i will mark as solved after editing.

Offline

#11 2024-11-12 05:29:25

Nucleo
Member
Registered: 2024-11-11
Posts: 13

Re: [SOLVED] Arch not found by GRUB

Scimmia wrote:

Well you chose it and told pacstrap to install it, so you should know it.

i did the normal

pacstrap -K base linux-firmware

as suggested by the docs.

Offline

#12 2024-11-12 06:39:57

cryptearth
Member
Registered: 2024-02-03
Posts: 1,010

Re: [SOLVED] Arch not found by GRUB

you should read more carefully:

Use the pacstrap(8) script to install the base package, Linux kernel and firmware for common hardware:

pacstrap -K /mnt base linux linux-firmware

[...]
Creating a new initramfs is usually not required, because mkinitcpio was run on installation of the kernel package with pacstrap.

so the actual mistake was not you hadn't run mkinitcpio but not listing a kernel in the pacstrap command

Offline

#13 2024-11-12 08:07:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,116

Re: [SOLVED] Arch not found by GRUB

Nucleo wrote:

pacstrap -K base linux-firmware

as suggested by the docs.

What docs say that?

Nucleo wrote:

I had forgotten the mkinitcpio command last time, that does in fact copy the iso to /boot, the first time, only realised it after reinstalling and encountering the step. i will mark as solved after editing.

No, it doesn't. Nothing copies the iso to /boot at all, and a hook copies the kernel image there, not running mkinitcpio.

Online

Board footer

Powered by FluxBB