Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting directly into Bios after installation
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
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Sun May 26, 2024 4:37 pm    Post subject: Booting directly into Bios after installation Reply with quote

Yesterday I bought new computer and tried to install. But after installation pc directly boots into bios.

So I dont have any information what went wrong.

For installation I attached external usb cdrom with current gentoo installation cd.

Is there an option to check if uefi has any problem from live system or from chroot ?
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 102

PostPosted: Mon May 27, 2024 6:49 am    Post subject: Reply with quote

Sounds like a boot loader issue. When you press the boot option hotkey while booting, is there an entry for your boot loader? If yes, does selecting it work? If not, then there is probably an issue with GRUB.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Mon May 27, 2024 9:10 am    Post subject: Reply with quote

SlowMotion,

Welcome to Gentoo.

Are you EFI or Compatibility (BIOS) booting?
Several things can go wrong in setting up your BIOS.

Lets assume the BIOS is in EFI mode. Compatibility mode may well be broken.
Secureboot must be disabled. The BIOS checks the signature of the code that its about to load.
If its not Windows, that fails, so you go straight to BIOS.

With seceureboot disabled, the next step is to load whatever is pointed to by the efivars. if anything.
Boot some live media and run efibootmgr
Code:
efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001,0002,0003,0004
...
That should have been set up when you installed grub.

Its also passible to choose from the BIOS boot menu, as xgivolari said.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Mon May 27, 2024 6:44 pm    Post subject: Reply with quote

Sorry that I forgot to give more informations.

Yes I try to use EFI.
I already deacticvated secure boot, was also needed to boot by live cd of gentoo.

Calling efibootmgr brings

Quote:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001
Boot0001* UEFI: MATSHITADVD-RAM UJ892 SB01, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(7,0)/CDROM(1,0x8d,0x1680)/HD(1,MBR,0x0,0x0,0x1680)0000424f


If I understand that correct, it didnt find any additional boot option :?

Is there an option to start from the grub menu from live cd the hard disc ?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5094
Location: Bavaria

PostPosted: Mon May 27, 2024 7:47 pm    Post subject: Reply with quote

SlowMotion,

please check if you have done every step in this chapter (only this chapter; please do only checking; this article is meant for booting a manually configured kernel directly, but it should give you all requirements for grub to boot):
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Boot_kernel_via_UEFI#Prerequisites_for_an_UEFI_boot
Do you know how to reach / chroot into your Gentoo installation ? If not, this will help you:
https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo#Pause_during_Installation
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Mon May 27, 2024 8:36 pm    Post subject: Reply with quote

I normally use fdisk but installed parted to be able to check the partition layout

Quote:
(chroot) livecd / # parted -l
Modell: KINGSTON SNV2S2000G (nvme)
Festplatte /dev/nvme0n1: 2000GB
Sektorgr��e (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags:

Nummer Anfang Ende Gr��e Dateisystem Name Flags
1 1049kB 1075MB 1074MB fat32 boot, esp
2 1075MB 276GB 275GB linux-swap(v1) swap
3 276GB 1375GB 1100GB ext4


I checked for efi folder but there were only the mount point efi (with the mounted vfat) as I understood the manual that the efi is the name of the mount point (confusing :/)

But I use a distribution kernel, so I copied the kernel from /usr/src/linux-6.6.30-gentoo-dist/arch/x86/boot/bzImage (hope that is correct)

Now the other entries appear in efibootmgr.


Tried erbooting :(

Again booted into bios

Started via live cd and chroot'ed

efibootmgr is down to one entry again :(

but the files apear in /efi/efi/backup/bzImage.efi and /efi/efi/secure/bzImage.efi
----

Will try other steps tomorrow, as I need to go now. Thanks for helping :)[/quote]

----

Searched in the installation handbook for the efi directory but only found the directory to create to mount the vfat file system to, but no instruction to create an additional efi folder within :/
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5094
Location: Bavaria

PostPosted: Mon May 27, 2024 10:26 pm    Post subject: Reply with quote

SlowMotion,

maybe you miss some information/knowledge about a kernel, an initramfs and booting with or without a bootloader/bootmanager.

You must know that our distribution kernel has an associated initramfs. This must be loaded also ... either from a bootloader/bootmanager OR from UEFI. The whole configuration for this is done from installkernel.

So you have two ways to go:

1. Install according our AMD64 handbook the distribution kernel AND install (=emerge) also installkernel. Choose a bootloader/bootmanager and let them do all the automagic stuff.

2. Do a completely manually installation ... IF you know what you need.

I suggest to read some stuff in our wiki:

Start with: https://wiki.gentoo.org/wiki/PC_Boot_Process
(initrd was the first solution and is outdated today; the successor is initramfs; some people say initrd when they actually mean initramfs)

Decide which initsystem you want (and tell us): OpenRC or systemd

Depending on this decision, I recommend different boot managers:
https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo
(of course you can use also systemd-boot for an OpenRC installation; and you can use grub for systemd; but it is not so easy to configure installkernel correctly: https://wiki.gentoo.org/wiki/Installkernel )

This is the easyiest way to install the kernel:
https://wiki.gentoo.org/wiki/User:Pietinger/Draft/Quick_Installation_OpenRC_for_an_UEFI_System#Kernel
As said before: Our dist-kernel use an initramfs ... but you dont need to configure anything ... it is done completely automatically. So, with this you dont need: https://wiki.gentoo.org/wiki/Dracut

Later you can read also: https://wiki.gentoo.org/wiki/Project:Distribution_Kernel

LATER - if you want - you can switch from your used bootmanager to an UEFI boot of your kernel, but it is not so easy.

Read before:
https://wiki.gentoo.org/wiki/Efivarfs
https://wiki.gentoo.org/wiki/Efibootmgr
https://wiki.gentoo.org/wiki/EFI_stub
and especially the chapter:
https://wiki.gentoo.org/wiki/EFI_stub#Optional:_Kernel_with_initramfs
(because our dist-kernel has/needs an initramfs)
Many things can go wrong ... this is a thread where I tried to help:
https://forums.gentoo.org/viewtopic-p-8805827.html#8805827

LATER - if you want - you can try to configure your kernel manually. I really suggest to start here:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Tue May 28, 2024 5:44 pm    Post subject: Reply with quote

I tried to do installation with the recommendations from the handbook.

* OpenRC
* Grub
* Distribution kernel


I installed in installkernel (thought I had installed before but seems it was missing)

I also unmerged the kernel I had installed (sys-kernel/gentoo-kernel) and installed the packages you recommended.

I followed the instructions of
https://wiki.gentoo.org/wiki/User:Pietinger/Draft/Quick_Installation_OpenRC_for_an_UEFI_System#Kernel
but after rebooting same problem.

So I am confused which steps do I need to do manual and which should (normally) appear automatically when following the installation.

Additional to the manual added kernels (as you mentioned yesterday) in /efi/efi/backup and /efi/efi/secure (around 15 MB big)
now also in /efi/efi/gentoo a file grubx64.efi appeared (around 140 KB)

----

Does this "So, with this you dont need: https://wiki.gentoo.org/wiki/Dracut" mean I should unmerge that ?


According handbook it was mentioned (if I understand correct) to install dracut for distribution kernel

Quote:
Installing a distribution kernel
Before installing the kernel package the dracut USE flag needs to be added for the package sys-kernel/installkernel in /etc/portage/package.use:


----

Did I broke something or what is the problem in my system ?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5094
Location: Bavaria

PostPosted: Tue May 28, 2024 8:09 pm    Post subject: Reply with quote

SlowMotion wrote:
Additional to the manual added kernels (as you mentioned yesterday) in /efi/efi/backup and /efi/efi/secure (around 15 MB big)
now also in /efi/efi/gentoo a file grubx64.efi appeared (around 140 KB)

This is good ... this is exactly what we need ... now the only question is why your UEFI dont start the bootmanager grub. Here we need the output of "efibootmgr" (it is on our GentooLiveCD; so do it BEFORE chrooting into your system; other way would be to simply "emerge efibootmgr").

(At the moment you dont need /efi/efi/backup and /secure ... I suspect that you copied it incorrectly anyway (=without initramfs) and therefore it would not start anyway.)

SlowMotion wrote:
Does this "So, with this you dont need: https://wiki.gentoo.org/wiki/Dracut" mean I should unmerge that ?

Please no (you will need it for the next kernel update) ... Sorry, I have meant: reading

SlowMotion wrote:
Did I broke something or what is the problem in my system ?

I dont think you have something broken ... you said it is a new computer ... please tell us which one (there exists some computers with a faulty UEFI).

Please chroot then into your installation and give us the output of "lsblk" and "blkid" and "emerge info" ... Maybe it is too soon, but maybe we must check also your /boot/grub/grub.cfg ... best is to do all together.


BTW: Your swap partition is ... really ... too big :lol:
See also: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-swapspace
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Tue May 28, 2024 8:25 pm    Post subject: Reply with quote

PC

CPU : Intel i7-13700 (16x 1.5 - 5.2 GHz) Hexadeca-Core Processor

Mainboard : MSI B760M-P DDR4

Grafic : V PCI AMD Sapphire Pulse RX6600



efibootmgr in livecd

Quote:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001
Boot0001* UEFI: MATSHITADVD-RAM UJ892 SB01, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(7,0)/CDROM(1,0x8d,0x1680)/HD(1,MBR,0x0,0x0,0x1680)0000424f


efibootmgr in chroot

Quote:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001
Boot0001* UEFI: MATSHITADVD-RAM UJ892 SB01, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(7,0)/CDROM(1,0x8d,0x1680)/HD(1,MBR,0x0,0x0,0x1680)0000424f


lsblk in chroot

Quote:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 480,2M 1 loop
sr0 11:0 1 527,9M 0 rom
zram0 253:0 0 0B 0 disk
nvme0n1 259:0 0 1,8T 0 disk
|-nvme0n1p1 259:1 0 1G 0 part /efi
|-nvme0n1p2 259:2 0 256G 0 part
`-nvme0n1p3 259:3 0 1T 0 part /


blkid in chroot

Quote:
/dev/nvme0n1p3: UUID="2ce4ff80-a9ae-420b-a029-086951118f16" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="1393bbb7-d721-48d4-b3c6-47260633d83a"
/dev/nvme0n1p1: UUID="A04E-7085" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="9983de03-eb2d-4b6c-a1f6-a27d7bbe7821"
/dev/nvme0n1p2: UUID="47663083-ed87-487e-83c3-a39006df08ba" TYPE="swap" PARTUUID="b3539ca4-4fce-4454-8bfe-9740129e7b59"
/dev/sr0: BLOCK_SIZE="2048" UUID="2024-05-19-18-07-50-00" LABEL="Gentoo amd64 20240519T170355Z" TYPE="iso9660" PTTYPE="PMBR"
/dev/loop0: BLOCK_SIZE="131072" TYPE="squashfs"


emerge info

installs 69 programs

calling it again shows this

Quote:
emerge info
Calculating dependencies... done!
Dependency resolution took 0.41 s (backtrack: 0/20).


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-vim/info-1.7-r3::gentoo
* info-1.7.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking info-1.7.tar.bz2 to /var/tmp/portage/app-vim/info-1.7-r3/work
>>> Source unpacked in /var/tmp/portage/app-vim/info-1.7-r3/work
>>> Preparing source in /var/tmp/portage/app-vim/info-1.7-r3/work/info-1.7 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-vim/info-1.7-r3/work/info-1.7 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-vim/info-1.7-r3/work/info-1.7 ...
>>> Source compiled.
>>> Test phase [not enabled]: app-vim/info-1.7-r3

>>> Install app-vim/info-1.7-r3 into /var/tmp/portage/app-vim/info-1.7-r3/image
>>> Completed installing app-vim/info-1.7-r3 into /var/tmp/portage/app-vim/info-1.7-r3/image

* Final size of build directory: 24 KiB
* Final size of installed tree: 36 KiB


>>> Installing (1 of 1) app-vim/info-1.7-r3::gentoo
* Updating documentation tags in /usr/share/vim/vim90
* Updating documentation tags in /usr/share/vim/vim90

>>> Completed (1 of 1) app-vim/info-1.7-r3::gentoo

* GNU info directory index is up-to-date.




grub.cfg

Quote:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 2ce4ff80-a9ae-420b-a029-086951118f16
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=de_DE@euro
insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### 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-2ce4ff80-a9ae-420b-a029-086951118f16' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 2ce4ff80-a9ae-420b-a029-086951118f16
echo 'Linux 6.6.30-gentoo-dist wird geladen ...'
linux /boot/vmlinuz-6.6.30-gentoo-dist root=UUID=2ce4ff80-a9ae-420b-a029-086951118f16 ro
echo 'Initiale Ramdisk wird geladen ...'
initrd /boot/initramfs-6.6.30-gentoo-dist.img
}
submenu 'Erweiterte Optionen f�r Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-2ce4ff80-a9ae-420b-a029-086951118f16' {
menuentry 'Gentoo GNU/Linux, mit Linux 6.6.30-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.30-gentoo-dist-advanced-2ce4ff80-a9ae-420b-a029-086951118f16' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 2ce4ff80-a9ae-420b-a029-086951118f16
echo 'Linux 6.6.30-gentoo-dist wird geladen ...'
linux /boot/vmlinuz-6.6.30-gentoo-dist root=UUID=2ce4ff80-a9ae-420b-a029-086951118f16 ro
echo 'Initiale Ramdisk wird geladen ...'
initrd /boot/initramfs-6.6.30-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, mit Linux 6.6.30-gentoo-dist (Wiederherstellungsmodus)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.30-gentoo-dist-recovery-2ce4ff80-a9ae-420
b-a029-086951118f16' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 2ce4ff80-a9ae-420b-a029-086951118f16
echo 'Linux 6.6.30-gentoo-dist wird geladen ...'
linux /boot/vmlinuz-6.6.30-gentoo-dist root=UUID=2ce4ff80-a9ae-420b-a029-086951118f16 ro single
echo 'Initiale Ramdisk wird geladen ...'
initrd /boot/initramfs-6.6.30-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, mit Linux 6.6.30-gentoo-dist.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.30-gentoo-dist.old-advanced-2ce4ff80-a9ae-420b-a029-086951118f1
6' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 2ce4ff80-a9ae-420b-a029-086951118f16
echo 'Linux 6.6.30-gentoo-dist.old wird geladen ...'
linux /boot/vmlinuz-6.6.30-gentoo-dist.old root=UUID=2ce4ff80-a9ae-420b-a029-086951118f16 ro
echo 'Initiale Ramdisk wird geladen ...'
initrd /boot/initramfs-6.6.30-gentoo-dist.img.old
}
menuentry 'Gentoo GNU/Linux, mit Linux 6.6.30-gentoo-dist.old (Wiederherstellungsmodus)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.30-gentoo-dist.old-recovery-2ce4ff80-
a9ae-420b-a029-086951118f16' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 2ce4ff80-a9ae-420b-a029-086951118f16
echo 'Linux 6.6.30-gentoo-dist.old wird geladen ...'
linux /boot/vmlinuz-6.6.30-gentoo-dist.old root=UUID=2ce4ff80-a9ae-420b-a029-086951118f16 ro single
echo 'Initiale Ramdisk wird geladen ...'
initrd /boot/initramfs-6.6.30-gentoo-dist.img.old
}
}

### 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 ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###


According my swap :

I plan to extend the system in near future to 128 GB and swap should have double size (at least I mean to remember this factor) :)
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5094
Location: Bavaria

PostPosted: Tue May 28, 2024 10:44 pm    Post subject: Reply with quote

First of all: Sorry ... my bad ... :oops: ... I have meant "emerge --info" (stupid typo from me) ... okay ... but the real problem is:

There is no entry for grub in UEFI (grub.cfg is perfect correct). There exists some possible reasons:

1. You have CSM mode active in your UEFI(-"BIOS"). Some BIOS call it "legacy". Please check it. If it was enabled, please disable it and boot with our GentooLiveCD. Chroot into your system (dont forget to mount your ESP) and install grub again (+ config) ->
Code:
# check if access to UEFI is possible: check if /sys/firmware/efi exists:
# ls /sys/firmware
# another check is with:
# mount
-> must have: "efivarfs on /sys/firmware/efi/efivars type efivarfs ..."
# grub-install --efi-directory=/efi
# grub-mkconfig -o /boot/grub/grub.cfg
# check with:
# efibootmgr
# reboot


2. You had forgotten to mount your ESP (to /efi) and did a "grub-install --efi-directory=/efi" ... usually you must have gotten an error then ... (do the same as 1)

3. You had forgotten to do a grub-install (do the same as 1)

4. You have a bad UEFI not allowing to create some UEFI entries (this is a clear violation of the uefi specifications) ... we had some mainboards ... :evil:

In this case you must do:

-> boot with our GentooLiveCD. Chroot into your system (dont forget to mount your ESP) and do:
Code:
# grub-install --efi-directory=/efi --removable
# grub-mkconfig -o /boot/grub/grub.cfg
# reboot


This will rename the grub to "bootx64.efi" (instead the normal name: "grubx64.efi) and it will be copied into /efi/efi/boot automatically (you might check it with: ls /efi/efi/boot)

"bootx64.efi" is a hard-coded filename EVERY UEFI must recognize and find (it is normally used to boot from CD or USB ... WITHOUT having to make an extra UEFI entry; the grub on your GentooCD has also this name, so UEFI can find it and boot). See more in the last Note of this chapter: https://wiki.gentoo.org/wiki/GRUB#Installing_GRUB_for_EFI
_________________
https://wiki.gentoo.org/wiki/User:Pietinger


Last edited by pietinger on Tue May 28, 2024 10:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5094
Location: Bavaria

PostPosted: Tue May 28, 2024 10:49 pm    Post subject: Reply with quote

P.S.:
SlowMotion wrote:
I plan to extend the system in near future to 128 GB and swap should have double size (at least I mean to remember this factor) :)

Hibernation is not recommended with 128 GB RAM ... ;-) (see my link to RedHat)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Wed May 29, 2024 5:31 pm    Post subject: Reply with quote


    * Checked that BIOS is set to UEFI
    * Started with GentooLiveCD
    * Set passwd
    * Started sshd deamon (next steps via ssh)
    * mount /mnt/gentoo
    * mount /mnt/gentoo/efi
    * efibootmgr
    Quote:

    BootCurrent: 0001
    Timeout: 0 seconds
    BootOrder: 0001
    Boot0001* UEFI: MATSHITADVD-RAM UJ892 SB01, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(7,0)/CDROM(1,0x8d,0x1680)/HD(1,MBR,0x0,0x0,0x1680)0000424f

    * ls /sys/firmware/
    Quote:
    acpi dmi efi memmap

    * mount
    Quote:
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    none on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=10240k,nr_inodes=8203830,mode=755)
    devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on / type tmpfs (rw,relatime)
    /dev/sr0 on /mnt/cdrom type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
    /mnt/cdrom/image.squashfs on /mnt/livecd type squashfs (ro,relatime,errors=continue)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
    efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
    none on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
    mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
    /dev/nvme0n1p3 on /mnt/gentoo type ext4 (rw,relatime)
    /dev/nvme0n1p1 on /mnt/gentoo/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

    * umount /mnt/gentoo/efi
    * arch-chroot /mnt/gentoo/ (entering chroot)
    * source /etc/profile
    * mount /dev/nvme0n1p1 /efi
    * mount
    Quote:
    /dev/nvme0n1p3 on / type ext4 (rw,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sys on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
    efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=8203830,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
    run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    tmp on /tmp type tmpfs (rw,nosuid,nodev)
    tmpfs on /etc/resolv.conf type tmpfs (rw,relatime)
    /dev/nvme0n1p1 on /efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

    * grub-install --efi-directory=/efi
    Quote:
    x86_64-efi wird f�r Ihre Plattform installiert.
    Installation beendet. Keine Fehler aufgetreten.

    * grub-mkconfig -o /boot/grub/grub.cfg
    Quote:
    GRUB-Konfigurationsdatei wird erstellt ...
    Linux-Abbild gefunden: /boot/vmlinuz-6.6.30-gentoo-dist
    Initrd-Abbild gefunden: /boot/initramfs-6.6.30-gentoo-dist.img
    Linux-Abbild gefunden: /boot/vmlinuz-6.6.30-gentoo-dist.old
    Initrd-Abbild gefunden: /boot/initramfs-6.6.30-gentoo-dist.img.old
    Warnung: Zur Erkennung anderer bootf�higer Partitionen wird os-prober nicht ausgef�hrt.
    Die darauf befindlichen Systeme werden nicht zur GRUB-Bootkonfiguration hinzugef�gt.
    Schauen Sie in den Dokumentationseintrag GRUB_DISABLE_OS_PROBER.
    Bootmen�-Eintrag f�r UEFI-Firmware-Einstellungen wird hinzugef�gt ...

    * efibootmgr
    Quote:
    BootCurrent: 0001
    Timeout: 0 seconds
    BootOrder: 0000,0001
    Boot0000* gentoo HD(1,GPT,9983de03-eb2d-4b6c-a1f6-a27d7bbe7821,0x800,0x200000)/File(\EFI\gentoo\grubx64.efi)
    Boot0001* UEFI: MATSHITADVD-RAM UJ892 SB01, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(7,0)/CDROM(1,0x8d,0x1680)/HD(1,MBR,0x0,0x0,0x1680)0000424f

    * emerge --info
    Quote:
    Portage 3.0.63 (python 3.11.9-final-0, default/linux/amd64/23.0/desktop, gcc-13, glibc-2.39-r6, 6.6.30-gentoo-x86_64 x86_64)
    =================================================================
    System uname: Linux-6.6.30-gentoo-x86_64-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-13700-with-glibc2.39
    KiB Mem: 65642188 total, 64894316 free
    KiB Swap: 0 total, 0 free
    Timestamp of repository gentoo: Sun, 26 May 2024 15:30:00 +0000
    Head commit of repository gentoo: 2e6d759cf2afb066f0ffa8113176455563f8785b
    sh bash 5.1_p16-r6
    ld GNU ld (Gentoo 2.42 p3) 2.42.0
    app-misc/pax-utils: 1.3.7::gentoo
    app-shells/bash: 5.1_p16-r6::gentoo
    dev-build/autoconf: 2.71-r7::gentoo
    dev-build/automake: 1.16.5-r2::gentoo
    dev-build/cmake: 3.28.5::gentoo
    dev-build/libtool: 2.4.7-r4::gentoo
    dev-build/make: 4.4.1-r1::gentoo
    dev-build/meson: 1.4.0-r1::gentoo
    dev-lang/perl: 5.38.2-r3::gentoo
    dev-lang/python: 3.11.9::gentoo, 3.12.3::gentoo
    dev-lang/rust-bin: 1.77.1::gentoo
    sys-apps/baselayout: 2.15::gentoo
    sys-apps/openrc: 0.54::gentoo
    sys-apps/sandbox: 2.38::gentoo
    sys-devel/binutils: 2.42-r1::gentoo
    sys-devel/binutils-config: 5.5::gentoo
    sys-devel/gcc: 13.2.1_p20240210::gentoo
    sys-devel/gcc-config: 2.11::gentoo
    sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
    sys-libs/glibc: 2.39-r6::gentoo
    Repositories:

    gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

    Binary Repositories:

    gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

    ACCEPT_KEYWORDS="amd64"
    ACCEPT_LICENSE="@FREE"
    CBUILD="x86_64-pc-linux-gnu"
    CFLAGS="-march=native -O2 -pipe"
    CHOST="x86_64-pc-linux-gnu"
    CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
    CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
    CXXFLAGS="-march=native -O2 -pipe"
    DISTDIR="/var/cache/distfiles"
    ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
    FCFLAGS="-march=native -O2 -pipe"
    FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
    FFLAGS="-march=native -O2 -pipe"
    GENTOO_MIRRORS="http://distfiles.gentoo.org"
    LANG="de_DE@euro"
    LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
    LEX="flex"
    MAKEOPTS="-j8"
    PKGDIR="/var/cache/binpkgs"
    PORTAGE_CONFIGROOT="/"
    PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
    PORTAGE_TMPDIR="/var/tmp"
    SHELL="/bin/bash"
    USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gui iconv icu ipv6 jpeg kde lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
    Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


    * exit
    * umount -R /mnt/gentoo
    * reboot
    * => Booting into BIOS

    * Started with GentooLiveCD
    * Set passwd
    * Started sshd deamon (next steps via ssh)
    * mount /mnt/gentoo
    * arch-chroot /mnt/gentoo/ (entering chroot)
    * source /etc/profile
    * mount /dev/nvme0n1p1 /efi
    * grub-install --efi-directory=/efi --removable
    Quote:
    x86_64-efi wird f�r Ihre Plattform installiert.
    Installation beendet. Keine Fehler aufgetreten.

    * grub-mkconfig -o /boot/grub/grub.cfg
    Quote:
    GRUB-Konfigurationsdatei wird erstellt ...
    Linux-Abbild gefunden: /boot/vmlinuz-6.6.30-gentoo-dist
    Initrd-Abbild gefunden: /boot/initramfs-6.6.30-gentoo-dist.img
    Linux-Abbild gefunden: /boot/vmlinuz-6.6.30-gentoo-dist.old
    Initrd-Abbild gefunden: /boot/initramfs-6.6.30-gentoo-dist.img.old
    Warnung: Zur Erkennung anderer bootf�higer Partitionen wird os-prober nicht ausgef�hrt.
    Die darauf befindlichen Systeme werden nicht zur GRUB-Bootkonfiguration hinzugef�gt.
    Schauen Sie in den Dokumentationseintrag GRUB_DISABLE_OS_PROBER.
    Bootmen�-Eintrag f�r UEFI-Firmware-Einstellungen wird hinzugef�gt ...
    abgeschlossen

    * efibootmgr
    Quote:
    BootCurrent: 0001
    Timeout: 0 seconds
    BootOrder: 0001
    Boot0001* UEFI: MATSHITADVD-RAM UJ892 SB01, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(7,0)/CDROM(1,0x8d,0x1680)/HD(1,MBR,0x0,0x0,0x1680)0000424f

    * umount /efi
    * exit
    * umount -R /mnt/gentoo/
    * reboot
    * Booting into Gentoo :D :D :D


But eth0 is not coming up.
Is the distribution kernel not bringing the modules on installation ?

Should I start new topic or can you help me with this also ?

Quote:
* Bringing up interface eth0
* Caching network module dependencies
* ERROR: interface eth0 does not exist
* Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.eth0 failed to start
* ERROR: cannot start netmount as net.eth0 would not start
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5094
Location: Bavaria

PostPosted: Wed May 29, 2024 6:10 pm    Post subject: Reply with quote

SlowMotion wrote:
Booting into Gentoo :D :D :D

Yes, you have a faulty UEFI.

SlowMotion wrote:
But eth0 is not coming up.
Is the distribution kernel not bringing the modules on installation ?

No, all required kernel modules are present. I assume you wanted to configure a static ip address and therefore did not install the DHCP. But your ethernet interface is probably NOT called eth0 but something with “enp...”. You can query it with “ip a”. In my case it is called: “enp2s0" and I have:
Code:
/etc/conf.d # more net
config_enp2s0=“192.168.2.9/24”
routes_enp2s0=“default via 192.168.2.1”

/etc/conf.d # ls -al /etc/init.d/net.*
lrwxrwxrwx 1 root root 6 May 19, 2023 /etc/init.d/net.enp2s0 -> net.lo
-rwxr-xr-x 1 root root 20017 23 Mar 19:55 /etc/init.d/net.lo

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Wed May 29, 2024 6:25 pm    Post subject: Reply with quote

Thanks, in parallel I was just able to find the correct module (r8169) and configured that it will get loaded automatically

Also I configured network manually to be able to do ssh.

With your information I was able to configure it to come up full configured (enp6s0)

:D :D :D :D :D

But on reboot it does not shut down completely it stops after

Quote:
* Remounting remaining filesystems read-only ...
* Remounting / read only ...
[ 167.736781] ECT4-fs (nvme0n1p3): remounted 2ce4ff80-a9ae-420b-a029-086951118f16 ro. Quota mode: none. [ok]


Need to hard shut down PC.

Is this related to UEFI or an independent problem ?

At least I can start the system up :) :) :)


According the faulty UEFI :
Is there any database to store such faulty UEFI's ?
Should I give some special information that others can detect / prevent it ?
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Thu May 30, 2024 7:58 pm    Post subject: Reply with quote

Slowly I hit additional problems on the system (not sure which is caused possibly by the faulty uefi). Possibly you can just give me hint, which is independent to that (=> New ticket) and which are related


  • System is not shutting down
  • Tried to install kde with sddm (switched profile without explicit building before but built immediately afterwards)

    • But sometimes complete screen flickers (between textual and graphical ?) till i stopped the sddm
    • Xorg.0.log seems to not finding my Radeon graphic card

  • At least once system didnt configured network => Needed to start services manually
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5094
Location: Bavaria

PostPosted: Thu May 30, 2024 11:28 pm    Post subject: Reply with quote

Yes, please do a new thread ... and give us the output of "rc-update" + all 3 files mentionend here (after a fresh system start):
https://wiki.gentoo.org/wiki/User:Pietinger/Overview_of_System_Information
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Fri May 31, 2024 3:19 am    Post subject: Reply with quote

One new thread for all or per problem ?

Dont know which are related
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5094
Location: Bavaria

PostPosted: Fri May 31, 2024 7:50 am    Post subject: Reply with quote

SlowMotion wrote:
One new thread for all or per problem ?

Only one thread. ;-)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
SlowMotion
n00b
n00b


Joined: 26 May 2024
Posts: 36

PostPosted: Fri May 31, 2024 3:07 pm    Post subject: Reply with quote

Starting new thread with remaining problems (https://forums.gentoo.org/viewtopic-t-1169185.html)

Thanks again for the big help :D
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