Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install Gentoo from Arch
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
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Sun Dec 15, 2019 6:05 pm    Post subject: Install Gentoo from Arch Reply with quote

Dear All,
I tried to install Gentoo on my computer with Archlinux+reFind. According some instructions, I can share in Gentoo with the existent system Arch the boot-loader and swap, so I created only a root partition for Gentoo (without /boot, /esp and swap) in the Gentoo. The installation seems to be successful, and I added the entry of Gentoo in /esp/EFI/Boot/refind.conf in the Arch-system before I reboot. However, when I reboot and select from the boot-list the Gentoo-partition, I have: "Erro: Not Found while loading <nul string>." Can anybody tell me if it is true that I do neither need a separate /boot or /esp partition nor do I need to install the boot-loader in the Gentoo-system? Thanks in advance.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6480

PostPosted: Sun Dec 15, 2019 7:19 pm    Post subject: Reply with quote

Gentoo doesn't need separate /boot or EFI boot partitions, you were right the first time. The only thing needed here is a correct root=PARTUUID= string. Where do you see that error?
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Mon Dec 16, 2019 10:03 am    Post subject: Reply with quote

Ant P. wrote:
Gentoo doesn't need separate /boot or EFI boot partitions, you were right the first time. The only thing needed here is a correct root=PARTUUID= string. Where do you see that error?

When I select boot from Gentoo, I see
rEFInd - Booting OS
starting <null string>
using load option "
Error: Not found while loading <null string>

I have added the lines "menuentry..." in the file /esp/EFI/Boot/refind.conf of the Arch system, it looks as follows
timeout 10
extra_kernel_version_strings linux linux-hardened,linux-lts,linux-zen,linux-git;
fold_linux_kernel false
menuentry 'Gentoo' --class arch --class gnu-linux --class gnu --class os {
set root='(hd1,msdos7)'
linux /boot/vmlinuz-4.19.86-gentoo root=/dev/sda7 ro root=PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce
}

Additional info: On the boot-screen, it says also "Boot 'Gentoo' from 246 MiB FAT volume", this is indeed the /esp partition of the Arch system, not the Gentoo kernel. Certainly something wrong in the "menuentry..." Any suggestions? Thanks in advance!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Mon Dec 16, 2019 1:25 pm    Post subject: Reply with quote

Code:
set root='(hd1,msdos7)'
linux /boot/vmlinuz-4.19.86-gentoo root=/dev/sda7 ro root=PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce

set root does not appear in refind.conf-sample -- looks like a grub line -- does your arch use grub, refind, or systemd-boot or ??? as boot manager?
the next line has 2 root= phrases, presumably 1 too many

Since starting to use UEFI in 2012 I have used rEFInd as boot manager and EFI stub kernels as boot loaders. I have only root and swap in the gentoo system. The ESP is legacy from windows 10 which I infrequently mount to /boot/efi when running gentoo and wanting to do something to the ESP.
I copy refind.conf-sample to refind.conf with no modifications. I run make && make modules_install && make install from /usr/src/linux so all my kernels (named vmlinuz), configs, and system.maps are copied to /boot with versions. The unmodified refind.conf causes refind to find all vmlinuz named stub kernels to appear in the refind graphic menu

Suggestions:
Reconfigure and recompile kernel as an efi stub kernel with a built in kernel command line. (I prefer adding cmdline override)
If refind is the only boot manager disable the refind.conf entry you created in it for gentoo.
If another boot manager is used configure it to chain load refind. Or reset your UEFI (sometimes misnamed BIOS) firmware to use rEFInd as first choice at boot time.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Mon Dec 16, 2019 1:29 pm    Post subject: Reply with quote

Try if you can boot Gentoo directly from the EFI menu. To do so you might want to have it in an appropriate subdirectory.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Mon Dec 16, 2019 4:20 pm    Post subject: Reply with quote

DONAHUE wrote:
Code:
set root='(hd1,msdos7)'
linux /boot/vmlinuz-4.19.86-gentoo root=/dev/sda7 ro root=PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce

set root does not appear in refind.conf-sample -- looks like a grub line -- does your arch use grub, refind, or systemd-boot or ??? as boot manager?
the next line has 2 root= phrases, presumably 1 too many

Since starting to use UEFI in 2012 I have used rEFInd as boot manager and EFI stub kernels as boot loaders. I have only root and swap in the gentoo system. The ESP is legacy from windows 10 which I infrequently mount to /boot/efi when running gentoo and wanting to do something to the ESP.
I copy refind.conf-sample to refind.conf with no modifications. I run make && make modules_install && make install from /usr/src/linux so all my kernels (named vmlinuz), configs, and system.maps are copied to /boot with versions. The unmodified refind.conf causes refind to find all vmlinuz named stub kernels to appear in the refind graphic menu

Suggestions:
Reconfigure and recompile kernel as an efi stub kernel with a built in kernel command line. (I prefer adding cmdline override)
If refind is the only boot manager disable the refind.conf entry you created in it for gentoo.
If another boot manager is used configure it to chain load refind. Or reset your UEFI (sometimes misnamed BIOS) firmware to use rEFInd as first choice at boot time.

thank your for your response! My Arch uses only the refind as the bootloader. Following your suggest I reconfigured the kernel with menuconf, added root=PARTUUID=xxx.. (according to Gentoo-wiki's article about "EFI stub kernel"), compiled the kernel again, and I also removed entry for Gentoo from the reind.conf in Arch. But, then, after running "reboot", the Gentoo-boot entry disappeared from the boot menu screen, there is only one entry for Arch. In Ubuntu there is grub-update, but Arch does not have this command. If I do not give Gentoo-entry in the reind.conf, how can I update the refind in Arch? Any further suggestion?
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Mon Dec 16, 2019 4:22 pm    Post subject: Reply with quote

charles17 wrote:
Try if you can boot Gentoo directly from the EFI menu. To do so you might want to have it in an appropriate subdirectory.

Thanks. I did this, but I see no boot entry for Gentoo, as I said in my previous message.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Mon Dec 16, 2019 7:01 pm    Post subject: Reply with quote

it might help to see your refind.conf and kernel config and the output of efibootmgr and the output of ls -aR run in the EFI directory of the mounted ESP and the output of ls -a run from the boot directory of the gentoo system in a pastebin wgetpaste refers. post the url's returned here.
arch may have tailored refind to suit only their purposes

in the interim first restore the menuentry you had but without the root=/dev/sda7 phrase reboot and see if any change results
If arch provided refind.conf-sample you might want to tailor your menuentry in the direction of the arch sample replacing arch with gentoo and commenting out or editing to suit other info
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Tue Dec 17, 2019 10:54 am    Post subject: Reply with quote

DONAHUE wrote:
it might help to see your refind.conf and kernel config and the output of efibootmgr and the output of ls -aR run in the EFI directory of the mounted ESP and the output of ls -a run from the boot directory of the gentoo system in a pastebin wgetpaste refers. post the url's returned here.
arch may have tailored refind to suit only their purposes

in the interim first restore the menuentry you had but without the root=/dev/sda7 phrase reboot and see if any change results
If arch provided refind.conf-sample you might want to tailor your menuentry in the direction of the arch sample replacing arch with gentoo and commenting out or editing to suit other info

I tried to use wgetpaste, but it says: "Apparently nothing was received. Perhaps the connection failed. Enable --verbose or
--debug to get the output from wget that can help diagnose it correctly." I changed also the menuentry but with no success. It seems to me that my /dev/sda7 as the root-partition for Gentoo does not mount at all during boot, so the vmlinuz of Gentoo cannot be found. Probably I should try the normal installation by using LiveCD instead of this one. Thanks anyway!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Tue Dec 17, 2019 12:18 pm    Post subject: Reply with quote

sumati wrote:
Thanks. I did this, but I see no boot entry for Gentoo, as I said in my previous message.

How did you create the boot item? Manually or using efibootmgr?
What is your output of efibootmgr -v?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Tue Dec 17, 2019 1:06 pm    Post subject: Reply with quote

Suggestion:
boot arch
mount the ESP at /boot/efi
make a Gentoo directory on the ESP
Code:
mkdir /boot/efi/EFI/Gentoo
mount the gentoo partition at /mnt/gentoo
Code:
mount /dev/sda7 /mnt/gentoo
change directory to /mnt/gentoo/boot
Code:
cd mnt/gentoo/boot
get name of latest stub kernel
Code:
ls -l
presumably vmlinuz-4.19.86-gentoo
copy the latest efi stub kernel to the ESP
Code:
cp vmlinuz-4.19.86-gentoo /boot/efi/EFI/Gentoo/vmlinuz-4.19.86-gentoo.efi
Reboot. On the reboot you should see a new icon in the refind graphic menu. Just performed the above steps, I get a gentoo icon labeled "Boot EFI\Gentoo\vmlinuz-5.4.3-gentoo.efi from EFI System Partition". It boots. My kernel is newer, irrelavent

Discussion:
Quote:
It seems to me that my /dev/sda7 as the root-partition for Gentoo does not mount at all during boot,
Neither rEFInd nor UEFI require a file system be mounted to search it. UEFI should be able to read FAT12, FAT16, or FAT32 file systems; rEFInd ships with additional read only drivers for btrfs ext4 iso9660 reiserfs ext2 hfs ntfs. If your gentoo root partition is formatted for an unlisted filesystem driver neither UEFI nor rEFInd can read it.
Quote:
On the boot-screen, it says also "Boot 'Gentoo' from 246 MiB FAT volume", this is indeed the /esp partition of the Arch system, not the Gentoo kernel.
This means that rEFInd sees an executable file with a name starting with boot and ending in .efi in the EFI directory of the ESP. This is ptobably a fallback bootloader provided by arch.
Boot arch and run
Code:
 lsblk -i -l -o name,parttype,fstype,mountpoint | wgetpaste -t
if lsblk not installed run
Code:
 fdisk -l | wgetpaste -t
post the url returned here. If wgetpaste fails, copy the lsblk or fdisk output from the terminal and paste it here.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Tue Dec 17, 2019 2:55 pm    Post subject: Reply with quote

DONAHUE wrote:
Quote:
It seems to me that my /dev/sda7 as the root-partition for Gentoo does not mount at all during boot,
Neither rEFInd nor UEFI require a file system be mounted to search it. UEFI should be able to read FAT12, FAT16, or FAT32 file systems; rEFInd ships with additional read only drivers for btrfs ext4 iso9660 reiserfs ext2 hfs ntfs. If your gentoo root partition is formatted for an unlisted filesystem driver neither UEFI nor rEFInd can read it.
Quote:
On the boot-screen, it says also "Boot 'Gentoo' from 246 MiB FAT volume", this is indeed the /esp partition of the Arch system, not the Gentoo kernel.
This means that rEFInd sees an executable file with a name starting with boot and ending in .efi in the EFI directory of the ESP. This is ptobably a fallback bootloader provided by arch.
Boot arch and run
Code:
 lsblk -i -l -o name,parttype,fstype,mountpoint | wgetpaste -t
if lsblk not installed run
Code:
 fdisk -l | wgetpaste -t
post the url returned here. If wgetpaste fails, copy the lsblk or fdisk output from the terminal and paste it here.

In Arch, I have /dev/sda1 formated as FAT mounted in /esp.

The following is the output of lsblk in my Arch (where /dev/sda7 is not mounted in Arch, nor included in the /etc/fstab, it is the root partition of Gentoo):
Code:
Device         Start       End   Sectors   Size Type
/dev/sda1       2048    514047    512000   250M EFI System
/dev/sda2     514048  17291263  16777216     8G Linux swap
/dev/sda3   17291264  90691583  73400320    35G Linux filesystem
/dev/sda4   90691584 294021119 203329536    97G Linux filesystem
/dev/sda5  294021120 470888447 176867328  84.3G Linux filesystem
/dev/sda6  470888448 874373119 403484672 192.4G Linux filesystem
/dev/sda7  874373120 976773119 102400000  48.8G Linux filesystem

And the output of blkid:
Code:
/dev/sda1: UUID="18D2-8C50" TYPE="vfat" PARTUUID="8de1978f-3694-4253-9326-447a19669fae"
/dev/sda2: UUID="1dcef93f-d157-4928-80a7-f145a6faf2ab" TYPE="swap" PARTUUID="ada9302a-ac3c-452d-a571-208c0c11eaa3"
/dev/sda3: UUID="9d1df547-830b-4ae0-968b-c98ad1049479" TYPE="ext4" PARTUUID="03a6a759-3333-4916-ad69-a179453a8d3a"
/dev/sda4: UUID="8eac1af9-ea36-4676-b055-64d70b32aff3" TYPE="ext4" PARTUUID="893dcd3e-8374-43c9-b744-66093cdb2d11"
/dev/sda5: UUID="30905d69-e46c-4f27-91b4-93d6aa316313" TYPE="ext4" PARTUUID="d3140e9a-6253-4502-929c-ed0c27e88004"
/dev/sda6: UUID="38251aec-555a-4b68-905c-d5bd18302280" TYPE="ext4" PARTUUID="af834d78-0821-44a3-9149-913c4ad25292"
/dev/sda7: UUID="b67e13bb-8979-4c9e-84b3-bd113ded4f18" TYPE="ext4" PARTUUID="2e404fe7-aa61-4118-887a-aa73052debce"

The following is my /esp/EFI/Boot/refind.conf:
Code:
timeout 10
extra_kernel_version_strings linux linux-hardened,linux-lts,linux-zen,linux-git;
fold_linux_kernel false
menuentry "Gentoo" {
    volume   Gentoo
    loader   /boot/vmlinuz-4.19.86-gentoo
    options  "root=PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce rw add_efi_memmap"
    }

In Gentoo I have only one partition, the /etc/fstab of my Gentoo partition is as follow:
Code:
/dev/sda7   /  ext4   noatime  0 1


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Tue Dec 17, 2019 4:06 pm    Post subject: Reply with quote

DONAHUE wrote:
Suggestion:
boot arch
mount the ESP at /boot/efi
make a Gentoo directory on the ESP
Code:
mkdir /boot/efi/EFI/Gentoo
mount the gentoo partition at /mnt/gentoo
Code:
mount /dev/sda7 /mnt/gentoo
change directory to /mnt/gentoo/boot
Code:
cd mnt/gentoo/boot
get name of latest stub kernel
Code:
ls -l
presumably vmlinuz-4.19.86-gentoo
copy the latest efi stub kernel to the ESP
Code:
cp vmlinuz-4.19.86-gentoo /boot/efi/EFI/Gentoo/vmlinuz-4.19.86-gentoo.efi
Reboot. On the reboot you should see a new icon in the refind graphic menu. Just performed the above steps, I get a gentoo icon labeled "Boot EFI\Gentoo\vmlinuz-5.4.3-gentoo.efi from EFI System Partition". It boots. My kernel is newer, irrelavent

Discussion:
Quote:
It seems to me that my /dev/sda7 as the root-partition for Gentoo does not mount at all during boot,
Neither rEFInd nor UEFI require a file system be mounted to search it. UEFI should be able to read FAT12, FAT16, or FAT32 file systems; rEFInd ships with additional read only drivers for btrfs ext4 iso9660 reiserfs ext2 hfs ntfs. If your gentoo root partition is formatted for an unlisted filesystem driver neither UEFI nor rEFInd can read it.
Quote:
On the boot-screen, it says also "Boot 'Gentoo' from 246 MiB FAT volume", this is indeed the /esp partition of the Arch system, not the Gentoo kernel.
This means that rEFInd sees an executable file with a name starting with boot and ending in .efi in the EFI directory of the ESP. This is ptobably a fallback bootloader provided by arch.
Boot arch and run
Code:
 lsblk -i -l -o name,parttype,fstype,mountpoint | wgetpaste -t
if lsblk not installed run
Code:
 fdisk -l | wgetpaste -t
post the url returned here. If wgetpaste fails, copy the lsblk or fdisk output from the terminal and paste it here.


First, thanks for your suggestion! But I do not understand what you mean when you say: "mount the ESP at /boot/efi", do you the "esp" partition (in my computer it is /dev/sda1) in Arch? If so, it should mount "/dev/sda1 /boot/efi", right? But this is already mounted on /esp. I have /esp/EFI/Boot in Arch, where the refind.conf is found, and have also the /boot in Arch, where vmlinuz-linux is found. In the new system Gentoo, I have /boot, where vmlinuz-4.19.86-gentoo is found. Do you mean cp vmlinuz-4.19.86-gentoo to the Arch folder "/boot/efi/EFI/Gentoo/" when you say: "cp vmlinuz-4.19.86-gentoo /boot/efi/EFI/Gentoo/vmlinuz-4.19.86-gentoo.efi"? Excuse me for my ignorance.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Tue Dec 17, 2019 6:58 pm    Post subject: Reply with quote

/boot/efi can be replaced by /esp wherever i have written it. Sorry, I don't have arch so just picked /boot/efi as a convenient mountpoint.

Rewritten:
Suggestion:
boot arch
mount the ESP at /esp
make a Gentoo directory on the ESP
Code:
mkdir /esp/EFI/Gentoo
mount the gentoo partition at /mnt/gentoo
Code:
mount /dev/sda7 /mnt/gentoo
change directory to /mnt/gentoo/boot
Code:
cd mnt/gentoo/boot
get name of latest stub kernel
Code:
ls -l
presumably vmlinuz-4.19.86-gentoo
copy the latest efi stub kernel to the ESP
Code:
cp vmlinuz-4.19.86-gentoo /esp/EFI/Gentoo/vmlinuz-4.19.86-gentoo.efi
Reboot. On the reboot you should see a new icon in the refind graphic menu. Just performed the above steps, I get a gentoo icon labeled "Boot EFI\Gentoo\vmlinuz-5.4.3-gentoo.efi from EFI System Partition". It boots. My kernel is newer, irrelavent

Placing the kernel on the ESP and adding .efi to the kernel name should ensure that UEFI and rEFInd can both parse the file system and both can identify the file as executable.

see https://www.rodsbooks.com/refind/configfile.html#stanzas for more on writing boot menu entries. I think you need:
volume PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce instead of volume Gentoo ;
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Wed Dec 18, 2019 10:52 am    Post subject: Reply with quote

DONAHUE wrote:
/boot/efi can be replaced by /esp wherever i have written it. Sorry, I don't have arch so just picked /boot/efi as a convenient mountpoint.

Rewritten:
Suggestion:
boot arch
mount the ESP at /esp
make a Gentoo directory on the ESP
Code:
mkdir /esp/EFI/Gentoo
mount the gentoo partition at /mnt/gentoo
Code:
mount /dev/sda7 /mnt/gentoo
change directory to /mnt/gentoo/boot
Code:
cd mnt/gentoo/boot
get name of latest stub kernel
Code:
ls -l
presumably vmlinuz-4.19.86-gentoo
copy the latest efi stub kernel to the ESP
Code:
cp vmlinuz-4.19.86-gentoo /esp/EFI/Gentoo/vmlinuz-4.19.86-gentoo.efi
Reboot. On the reboot you should see a new icon in the refind graphic menu. Just performed the above steps, I get a gentoo icon labeled "Boot EFI\Gentoo\vmlinuz-5.4.3-gentoo.efi from EFI System Partition". It boots. My kernel is newer, irrelavent

Placing the kernel on the ESP and adding .efi to the kernel name should ensure that UEFI and rEFInd can both parse the file system and both can identify the file as executable.

see https://www.rodsbooks.com/refind/configfile.html#stanzas for more on writing boot menu entries. I think you need:
volume PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce instead of volume Gentoo ;

thanks! I tried again, no success. It seems to me that the root partition of Gentoo is not recognized during boot, it says:
    Starting vmlinz_linux
    using load option 'root=/dev/sda7 ro' (I replaced also the partition number the PARTUUID, the result is the same)
    Invalid loader file

Certainly I have some wrong settings in /boot/refind_linux.conf and the refind.conf. Can you kindly share with me you settings?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Wed Dec 18, 2019 11:13 am    Post subject: Reply with quote

sumati wrote:
thanks! I tried again, no success. It seems to me that the root partition of Gentoo is not recognized during boot, it says:

You never tried booting from the EFI boot menu instead from rEFInd?
This needs pressing a certain (mobo dependant) key (F12 on DELL computers) while starting the computer.
Entries in the EFI boot menu are generated using https://wiki.gentoo.org/wiki/Efibootmgr or the computer's configuration tool, see https://philipyip.files.wordpress.com/2016/07/uefi1.png.

Once booting the EFI stub kernel without rEFInd works it would be easier to solve rEFInd problems.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Wed Dec 18, 2019 2:45 pm    Post subject: Reply with quote

I run:
Code:
 wgetpaste -t /boot/efi/EFI/refind/refind.conf
and return is: Your paste can be seen here: http://dpaste.com/1K4KMKX Please note that only timeout is not a default value and that all menuentry are disabled. When I installed rEFInd I just copied refind.conf-sample to refind.conf. There was no # in front of timeout in refind.conf-sample so timeout 20 is also a default. With this refind.conf refind scans all block devices on the computer for files starting with vmlinuz or bzImage and/or ending in .efi. If the file appears to be a valid boot loader or boot manager it is presented in the refind graphical menu. Again I do not write or use a manual menuentry, refind scans for and then presents a menu of boot loaders/managers.
Rod the author of rEFInd wrote:
Note: Don't create manual boot stanzas unless you need to do so! Many people try to create them when rEFInd's auto-detection mechanisms will do the job just as well and with less hassle and chance of error. (Note that you can pass kernel options to a Linux kernel in the /boot/refind_linux.conf file; see the Methods of Booting Linux page for details.) Efforts to create manual boot stanzas when auto-detection can do the job just create pointless work for yourself!


EDIT:
IHowever, in case menuentry writing is still of interest, wrote the following; added it to the bottom of my refind.conf; rebooted; a new gentoo icons appeared in the boot menu labeled 'Boot Gentoo kernel on ESP{at /boot} from EFI System Partition', selected and entered each; successful boots
Code:
# Amateur attempt at Gentoo
extra_kernel_version_strings linux linux-hardened,linux-lts,linux-zen,linux-git;
fold_linux_kernel false
menuentry "Gentoo kernel on ESP" {
    volume  just partuuid of my ESP, without PARTUUID=,  without quotes
    loader   /EFI/Gentoo/vmlinuz-5.4.3-gentoo.efi
    options  "root=PARTUUID=partuuid_of_my_root_partition ro net.ifnames"
    }

menuentry "Gentoo kernel at /boot" {
    volume  just partuuid of my ROOT partition, without PARTUUID=,  without quotes
    loader   /EFI/Gentoo/vmlinuz-5.4.3-gentoo.efi
    options "root=PARTUUID=partuuid_of_my_root_partition ro net.ifnames"
    }


My guesses for you:
Code:
menuentry "Gentoo kernel on ESP" {
    volume 8de1978f-3694-4253-9326-447a19669fae
    loader   /EFI/Gentoo/vmlinuz-4.19.86-gentoo.efi
    options  "root=PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce ro"
    }

Code:
 menuentry "Gentoo kernel at /boot" {
    volume 2e404fe7-aa61-4118-887a-aa73052debce
    loader   /boot/vmlinuz-4.19.86-gentoo
    options  "root=PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce ro"
    }


Sumati wrote:
Starting vmlinz_linux
using load option 'root=/dev/sda7 ro' (I replaced also the partition number the PARTUUID, the result is the same)
Invalid loader file
What was the label on the menu that you actuated to achieve this result?
What were all the menu items that rEFInd presented? Post a picture?
Note that vmlinz_linux is a typo and appears related to the sample arch menuentry in refind.conf-sample (loader /boot/vmlinuz-linux) rather than to your gentoo menu entry.

"Invalid loader file" suggests that the actuated menu entry loader line directs to a file that does not exist (a follow line should say so) or the file specified exists but is not a valid boot loader -- perhaps efi stub kernel has configuration problem?
please retry: boot arch
Code:
mount  /dev/sda7 /mnt/gentoo
wgetpaste -t /mnt/gentoo/usr/src/linux/.config
mount /esp
wgetpaste -t /esp/EFI/refind/refind.conf
efibootmgr -v | wgetpaste -t
post url's returned here
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Thu Dec 19, 2019 6:13 pm    Post subject: Reply with quote

Thank you all for your quick and helpful response. I am exciting about them but have to wait till weekend to try them.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Fri Dec 20, 2019 10:55 am    Post subject: Reply with quote

Code:
mount  /dev/sda7 /mnt/gentoo
wgetpaste -t /mnt/gentoo/usr/src/linux/.config
mount /esp
wgetpaste -t /esp/EFI/refind/refind.conf
efibootmgr -v | wgetpaste -t
post url's returned here[/quote]
my /mnt/gentoo/usr/src/linux/.config is here: http://dpaste.com/1G1DRVM
/esp/EFI/Boot/refind.conf is uploaded here: http://dpaste.com/2PKT0E4
efibootmgr is here: http://dpaste.com/3ZN6A65

Following your suggestion I added the menuentry in my refind.conf, it becomes: http://dpaste.com/362GQ3V. In the first menuentry, 8de1978f-3694-4253-9326-447a19669fae is the root partition of Arch, and I copied vmlinuz-4.19.86-gentoo.efi to Arch's /boot/. It still failed. The boot entries appear: "Boot Gentoo kernel on ESP from 246 MiB FAT volume" and "Boot Gentoo kernel at /boot 48 GiB ext4 volume", however, when I click either of the two, the result is:
    Starting vmlinuz-4.19.gentoo
    Using load option ' root-PARTUUID=2e404fe7-aa61-4118-887a-aa73052debce ro'
    Invalid load file!
    Errror: Not Found while loading vmlinuz-4.19.gentoo
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Fri Dec 20, 2019 12:37 pm    Post subject: Reply with quote

Good morning, Sumati
The folks at arch have me baffled. I expected to see a boot stanza that included 'File(\EFI\REFIND\REFIND_X64.EFI' in the efibootmgr output.
Have no idea how they get refind to run if they really do run refind..
If refind does not run it will not find vmlinuz files ...
Also would expect to have seen an efibootmgr stanza for the stub kernel copied to the ESP that you wrote
Please boot arch, mount the ESP at /esp and run
Code:
ls -lR /esp/EFI | wgetpaste -t
mount /dev/sda7 /mnt/gentoo
ls -lR /mnt/gentoo/boot | wgetpaste -t
find / -name "*.efi"  | wgetpaste -t
and post the urls

Sumati wrote:
root-PARTUUID
is a typo root=PARTUUID

The http://dpaste.com/2PKT0E4 did not show the volume or loader

rEFInd? wrote:
Errror: Not Found while loading vmlinuz-4.19.gentoo
volume or loader entry is wrong , may have typos??

config looks good on quick look will diff against mine later

I made an attempt to install arch but their December 2019 CD fails to boot on my computers, curiously system rescue dvd 6.03, arch based, has no problem boots right up.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Fri Dec 20, 2019 4:43 pm    Post subject: Reply with quote

Sumati wrote:
root-PARTUUID
is a typo root=PARTUUID
The http://dpaste.com/2PKT0E4 did not show the volume or loader
rEFInd? wrote:
Errror: Not Found while loading vmlinuz-4.19.gentoo
volume or loader entry is wrong , may have typos??
[/quote]

Thanks for your being patient. Following your suggestion I added the menuentries, it looks like: http://dpaste.com/3MB2B37, and reboot, no success. I tried also delete the file /esp/EFI/Boot/refind.conf, the result is the same: Only Arch can boot.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Sat Dec 21, 2019 9:03 am    Post subject: Reply with quote

I have finally solved the problem by using Efitootmgr (https://wiki.gentoo.org/wiki/Efibootmgr). Thanks to all, especially to charles17 who asked me if I use Efitootmgr to create the boot item. The Efibootmgr created in the Arch the boot entry for Gentoo. Although this solution is for installing Gentoo on Arch, it might also be applied to other Linux systems.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Sat Dec 21, 2019 10:41 am    Post subject: Reply with quote

sumati wrote:
The Efibootmgr created in the Arch the boot entry for Gentoo. Although this solution is for installing Gentoo on Arch, it might also be applied to other Linux systems.

Efibootmgr created the boot entry for Gentoo in the computer's NVRAM.
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