Am Dienstag, 5. Dezember 2023, 21:07:00 CET schrieb [email protected]: > On 12/5/23 12:35, Michael wrote: > > On Tuesday, 5 December 2023 18:11:14 GMT [email protected] wrote: > >> On 12/5/23 10:16, Cara Salter wrote: > >>> On 12/5/23 12:05, [email protected] wrote: > >>>> It has been some time since I installed Gentoo. > >>>> After partitioning, and installing the system after reboot I get kernel > >>>> selection from grub and hitting enter, I don't see any text scrolling > >>>> on > >>>> the screen, and I don't see the login screen. > >>>> > >>>> I think I install grub in a wrong way. > >>>> When I mount "boot" content of /boot: > >>>> ls /boot/ > >>>> EFI > >>> > >>> Is your EFI directory /efi or /boot? If it's /efi, then your mountpoint > >>> should be in /boot as is in your /etc/fstab.> > >>> > >>>> When I unmount "boot" content of /boot: > >>>> ls /boot/ > >>>> System.map-6.1.57-gentoo config-6.1.57-gentoo grub > >>>> vmlinuz-6.1.57-gentoo > >> > >> The /efi directory was empty > >> I moved /boot to /boot_backup crated /boot directory again > >> mount /dev/nvme0n1p1 /boot > >> run: > >> grub-install --target=x86_64-efi --efi-directory=/boot > >> > >> installed kernel by running "make install" by default it install to boot > >> ( I think). Change fstab from /eft to /boot: > >> #/dev/nvme0n1p1 /efi vfat noauto,noatime 1 2 > >> /dev/nvme0n1p1 /boot vfat noauto,noatime 1 2 > >> but now when system boot it can not find any kernel, it just display > >> "grub" > >> command on the screen > > > > Please read the necessary documentation: > > > > https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader > > > > Your boot partition is /dev/nvme0n1p1 and its mountpoint is /boot. You > > must create this partition with the appropriate EFI System type (in gdisk > > use EF00). > > > > The /efi directory must be at the top of the /boot partition filesystem, > > accessible via /boot/efi. > > I'm kind of confused at this point. > Where the kernel files should be copied? /boot or /efi directory > - System.map-6.1.57-gentoo > - config-6.1.57-gentoo > - vmlinuz-6.1.57-gentoo > > In fstab I have: > /dev/nvme0n1p1 /efi vfat noauto,noatime 1 2 > > If /efi is a boot partition I assume the kernel files should be there as > well; but somehow it doesn't work. > > The link you provided instruct user to run: > grub-mkconfig -o /boot/grub/grub.cfg > > When "/dev/nvme0n1p1 is mounted on /efi" > shouldn't it be: > grub-mkconfig -o /efi/grub/grub.cfg
No ... anything is alright here: With grub-install --target=x86_64-efi --efi-directory=/efi you will installe the first part of grub (grubx64.efi) INTO the ESP: \efi\gentoo\grubx64.efi <==> /efi/efi/gentoo/grubx64.efi when you have mounted your ESP to /efi. (see more with "efibootmgr) With grub-mkconfig -o /boot/grub/grub.cfg you configure grub - residing IN / boot/grub = THIS is the second part of grub !! Maybe read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/ Boot_kernel_via_UEFI#Prerequisites_for_an_UEFI_boot (only this chapter; not the next chapter, because it is a guide for installing a stub kernel)

