View previous topic :: View next topic |
Author |
Message |
pabloblo n00b
Joined: 24 Jan 2024 Posts: 44
|
Posted: Tue May 07, 2024 3:32 pm Post subject: installation error |
|
|
hello everyone, I can't install gentoo, at home I have no problem but I used genkernel, on the other hand my brother wants me to install gentoo for him by compiling the sources myself, but when I follow the tutorial, in the /boot, I have vmlinuz System.map EFI Initramfs-6.6.30-gentoo-pablo.img and grub, it does not work, I looked on my computer which works fine, in the /boot there are custom files, Initramfs-6.6.30-gentoo-pablo.img, System.map-6.6.30-gentoo-pablo, vmlinuz-6.6.30-gentoo-pablo, they are custom, I install with systemd |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54409 Location: 56N 3W
|
Posted: Tue May 07, 2024 4:02 pm Post subject: |
|
|
pabloblo,
Quote: | in the /boot, I have vmlinuz System.map EFI Initramfs-6.6.30-gentoo-pablo.img and grub, ... |
Here your kernel binary is called vmlinuz, on your working system its called vmlinuz-6.6.30-gentoo-pablo
When grub writes its cfg file, does it find vmlinuz or is there an error message?
Look in /boot/grub/grub.cfg and check that the menuitems contain both a kernel entry and initrd entry.
Code: | #6.2.1-gentoo
menuentry 'Gentoo GNU/Linux 6.2.1-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-94a801cf-1a1b-443a-9dc9-348ed75d4f9a' {
set gfxpayload=text
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root C33C-80D1
echo 'Loading Linux 6.2.1-gentoo ...'
linux /6.2.1-gentoo root=/dev/vda2 ro net.ifnames=0 earlyprintk console=AMA0 console=ttyAMA0,115200n8 rcutree.use_softirq=0
... initrd entry follows. |
This example is a virtual machine. It doesn't have an initrd as its not required. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4350 Location: Bavaria
|
Posted: Tue May 07, 2024 5:23 pm Post subject: |
|
|
pabloblo,
IF you have your vmlinuz-6.6.30-gentoo-pablo in /boot/grub/grub.cfg ... then watch carefully to the grub menu you will get after a reboot, because grub sorts alphabetically ... so it is possble you will see another version as first entry ... press ESC and check which entries grub presents. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
pabloblo n00b
Joined: 24 Jan 2024 Posts: 44
|
Posted: Tue May 07, 2024 9:12 pm Post subject: |
|
|
hello, thank you for your answers, I followed the advice, there is indeed a problem, on my personal computer, (genkernel), in the /boot I have this:
Code: | EFI
System.map-6.6.30-gentoo-x86_64
grub
initramfs-6.6.30-gentoo-x86_64.img
vmlinuz-6.6.30-gentoo-x86_64 |
and in the grub.cfg file :
Code: | ### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-edddcfce-a2f7-40>
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 edddcfce-a2f7-402a->
else
search --no-floppy --fs-uuid --set=root edddcfce-a2f7-402a-b3f2-60936ddf929d
fi
echo 'Loading Linux 6.6.30-gentoo-x86_64 ...'
linux /boot/vmlinuz-6.6.30-gentoo-x86_64 root=UUID=edddcfce-a2f7-402a-b3f2-60936ddf929d ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.30-gentoo-x86_64.img |
the computer works perfectly
but when I compile the sources myself, in /boot I have this :
Code: | EFI
System.map
grub
initramfs-6.6.30-gentoo.img
vmlinuz |
and in the grub.cfg file :
Code: | ### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
### END /etc/grub.d/30_uefi-firmware ### |
There's nothing, that's why it doesn't work but why didn't he want to do it?
when I executed the command : grub-mkconfig -o /boot/grub/grub.cfg
I got this result :
Code: | Generating grub configuration file ...
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done |
[Moderator edit: added [code] tags to preserve output layout. -- pietinger] |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4350 Location: Bavaria
|
|
Back to top |
|
|
pabloblo n00b
Joined: 24 Jan 2024 Posts: 44
|
Posted: Tue May 07, 2024 10:48 pm Post subject: |
|
|
oh thx!!!!! i will try it immediatly |
|
Back to top |
|
|
|
|
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
|
|