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: 27

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: 5128
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: 27

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: 5128
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: 27

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: 5128
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
Marcofras
n00b
n00b


Joined: 29 May 2023
Posts: 27

PostPosted: Wed Oct 23, 2024 7:10 pm    Post subject: Reply with quote

In grub menu now appear the chose correct but after press enter the system freeze with a line loading linux-64O2, the capslock button blinking i disabled fast boot and secureboot too
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5128
Location: Bavaria

PostPosted: Thu Oct 24, 2024 12:41 pm    Post subject: Reply with quote

To be able to help you, we would need a lot more information, in particular what you have done. Have a look at this thread:
https://forums.gentoo.org/viewtopic-t-1171433.html
Here @nxe9 has documented all his steps (in 3rd post). This enabled us to narrow down the problem.

If there is a problem with your manually configured kernel, please read the articles I have given.
_________________
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: 27

PostPosted: Thu Oct 24, 2024 9:50 pm    Post subject: Reply with quote

I made better the situation now caps lock no blink and ctrl alt canc restart properly
I actived a lot of options in .config but the main problem remain
I have no others information to add
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5128
Location: Bavaria

PostPosted: Fri Oct 25, 2024 12:43 am    Post subject: Reply with quote

Marcofras wrote:
[...] I have no others information to add

If you can no longer remember what you have installed (and don't have a log of it), then there is still the possibility to show us your current system:

1. Chroot into your system by booting with our GentooLiveCD and then doing this:
https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo#Pause_during_Installation

2. Give us all 3 files mentioned here:
https://wiki.gentoo.org/wiki/User:Pietinger/Overview_of_System_Information
(note the reference to wgetpaste for your "dmesg"-output)

3. Give us also your current kernel .config (also with wgetpaste)

4. Do these queries (and paste it into your post):
- efibootmgr
- blkid
- lsblk
- fdisk -l
- cat /etc/fstab
- cat /boot/grub/grub.cfg (also with wgetpaste)
- ls -l /boot
- ls -l /boot/EFI -OR- ls -l /boot/efi -OR- ls -l /efi (depending where you mount your ESP)
_________________
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: 27

PostPosted: Sat Oct 26, 2024 1:17 pm    Post subject: Reply with quote

i just tried disable split lock with no effect
you can find all the files requested at this address:
http://212.227.87.63/risp.txt
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5128
Location: Bavaria

PostPosted: Sat Oct 26, 2024 1:59 pm    Post subject: Reply with quote

Marcofras,

yes, you have in your kernel configuration these:
Code:
# CONFIG_DRM_FBDEV_EMULATION is not set
# CONFIG_FRAMEBUFFER_CONSOLE is not set

but you need them. Have a look here:
https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Framebuffer_Device_and_Console
You have also enabled CONFIG_DRM_I915=y statically ... please read:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware
(maybe read the whole article and then start again here: number 2 of https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Before_you_start )

BTW: 2 MB for your ESP is very little, 1 GB is now recommended (although 256 MB is also sufficient in my opinion).
_________________
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: 27

PostPosted: Wed Oct 30, 2024 10:06 am    Post subject: Reply with quote

Ok now it works. But thereisnt that voice in the guide configuring kernel manually.
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