Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 and os-prober not detect os
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Marcofras
n00b
n00b


Joined: 29 May 2023
Posts: 8

PostPosted: Fri Oct 18, 2024 7:10 pm    Post subject: Grub2 and os-prober not detect os Reply with quote

Im installing new os no multilib amd64 and grub-mkconfig no prompt the lines with directory of vmlinuz i have in boot directory.
I installed os-prober too with mount and /etc/default/grub line.
My bios is uefi bios and grub screen shows only one choose with firmware uefi that bring me in the uefi bios screen.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4983
Location: Bavaria

PostPosted: Fri Oct 18, 2024 7:22 pm    Post subject: Re: Grub2 and os-prober not detect os Reply with quote

Marcofras wrote:
Im installing new os no multilib amd64 and grub-mkconfig no prompt the lines with directory of vmlinuz i have in boot directory.

Your manually built kernel must have a specific name schema for beeing detected by grub-mkconfig.
Try:
Code:
cp /usr/src/linux/arch/x86/boot/bzImage /boot/vmlinuz-X.Y.Z-gentoo

(and then of course a grub-mkconfig again)

( See also: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Cheat_Sheets )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Marcofras
n00b
n00b


Joined: 29 May 2023
Posts: 8

PostPosted: Sun Oct 20, 2024 11:41 am    Post subject: Reply with quote

I will try soon.
Again i read about efibootmgr, does it need grub for write efi partition anyway?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4983
Location: Bavaria

PostPosted: Sun Oct 20, 2024 1:45 pm    Post subject: Reply with quote

Marcofras wrote:
[...] does it need grub for write efi partition anyway?

No. You will need access to your ESP for grub only when you install grub (with grub-install) because the first part of grub will be copied to \efi\gentoo\grubx64.efi (the 2nd part of grub will be in /boot/grub/..). So, if you do a "grub-mkconfig" grub needs only acces to /boot/grub/grub.cfg.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Marcofras
n00b
n00b


Joined: 29 May 2023
Posts: 8

PostPosted: Sun Oct 20, 2024 3:17 pm    Post subject: Reply with quote

Ok, i read the guide efibootmgr and it use the files in efi partition if i dont have grub where find it that files?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4983
Location: Bavaria

PostPosted: Sun Oct 20, 2024 3:47 pm    Post subject: Reply with quote

Marcofras wrote:
Ok, i read the guide efibootmgr and it use the files in efi partition if i dont have grub where find it that files?

You have in your ESP either a binary which is a bootloader/bootmanager (like grubx64.efi) OR you have a (stub)-kernel which will be started bei UEFI directly. Maybe read:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Boot_kernel_via_UEFI
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum