Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub is not finding any kernel image
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
antoniovalos
n00b
n00b


Joined: 24 Mar 2023
Posts: 40

PostPosted: Sat Jun 29, 2024 7:03 pm    Post subject: Grub is not finding any kernel image Reply with quote

I have an old installation of gentoo in a SSD, I remove it from my computer, and installed gentoo into a new one.
Now I removed the new SSD and put back the old one, but it didnt 't boot.

Now I went back to the installation steps and typed the command to create a swap partition on /dev/sda2, and update the fstab, but I didn't make any changes on /dev/sda1 and /dev/sda3.

I reinstalled the bootloader:
Code:

(chroot) livecd / # grub-install --efi-directory=/efi
Installing for x86_64-efi platform.
Installation finished. No error reported.


But when trying to configure, the system didn't find any kernel image
Code:

(chroot) livecd / # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
done



My kernel images:
Code:

done
(chroot) livecd / # eselect kernel list
Available kernel symlink targets:
  [1]   linux-6.1.19-gentoo *


How can I solve this problem?
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1932
Location: 127.0.0.1

PostPosted: Sun Jun 30, 2024 7:26 am    Post subject: Re: Grub is not finding any kernel image Reply with quote

antoniovalos wrote:

My kernel images:
Code:

done
(chroot) livecd / # eselect kernel list
Available kernel symlink targets:
  [1]   linux-6.1.19-gentoo *


That's not kernel images. That's kernel source directories.
You must make sure that the kernel is built, then installed.
If installed, you will find kernel and related files into /boot.
Then grub-mkconfig will find them.
From your chroot, what is the content of your /boot ?
Code:

# ls -l /boot
Back to top
View user's profile Send private message
antoniovalos
n00b
n00b


Joined: 24 Mar 2023
Posts: 40

PostPosted: Sun Jun 30, 2024 2:00 pm    Post subject: Reply with quote

I solved this priblem, I moved the files on /efi to /boot and it worked.

I don't understand why the bootloader breaks only unplugging the drive, it works all the time I used UEFI GRUB bootloader.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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