View previous topic :: View next topic |
Author |
Message |
antoniovalos n00b
Joined: 24 Mar 2023 Posts: 47
|
Posted: Sat Jun 29, 2024 7:03 pm Post subject: Grub is not finding any kernel image |
|
|
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 |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1956 Location: 127.0.0.1
|
Posted: Sun Jun 30, 2024 7:26 am Post subject: Re: Grub is not finding any kernel image |
|
|
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 ?
|
|
Back to top |
|
|
antoniovalos n00b
Joined: 24 Mar 2023 Posts: 47
|
Posted: Sun Jun 30, 2024 2:00 pm Post subject: |
|
|
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 |
|
|
|