Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grubx64.efi, started from rEFInd, can't find its conf?SOLVED
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
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 267
Location: Utility Muffin Research Kitchen

PostPosted: Mon Jun 01, 2020 10:45 am    Post subject: grubx64.efi, started from rEFInd, can't find its conf?SOLVED Reply with quote

I would like to boot an ISO from rEFInd. In the absence of me knowing how to do this I thought I'd travel via GRUB. That is: rEFInd -> GRUB -> SystemRescueCd.iso.

When I choose EFI/gentoo/grubx64.efi from rEFInd I end up at a GRUB prompt. It is as though EFI/gentoo/grub.conf does not exist, but it does.

At the GRUB prompt I can
Code:
grub> configfile (hd0,gpt2)/efi/gentoo/grub.conf
which returns a SystemRescue menu entry that can be selected and booted.
Code:
grub> configfile (hd0,gpt6)/grub/grub.conf
is similarly successful.

What can I do so that EFI/gentoo/grubx64.efi automatically finds its conf file?

example stanza from /boot/grub/grub.conf
Code:
menuentry "SystemRescue" {
   set isofile="sysresccd-20190617-2328.iso"
   loopback loop (hd0,gpt8)/$isofile
        linux (loop)/isolinux/rescue64 isoloop=$isofile rootpass=a setkmap=us
        initrd (loop)/isolinux/initram.igz
}


Code:
# df | tail -n 2
/dev/sda6          99150   31634     62396  34% /boot
/dev/sda2         306584  128328    178256  42% /boot/efi

Code:
 # gdisk -l /dev/sda | tail -n 11
   1            2048         1230847   600.0 MiB   2700  Basic data partition
   2         1230848         1845247   300.0 MiB   EF00  EFI system partition
   3         1845248         2107391   128.0 MiB   0C01  Microsoft reserved ...
   4       223909888       250067631   12.5 GiB    2700  Basic data partition
   5         2107392        74405887   34.5 GiB    0700  Basic data partition
   6        74405888        74610687   100.0 MiB   8300  Boot
   7        74610688       106067967   15.0 GiB    8200  Swap
   8       106067968       127039487   10.0 GiB    8300  ISOs
   9       127039488       127244287   100.0 MiB   8300  Spare
  10       127244288       131438591   2.0 GiB     8300  Nothing
  11       131438592       223909887   44.1 GiB    8E00  vg

emerge --info


Last edited by Fog_Watch on Mon Jun 01, 2020 11:25 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon Jun 01, 2020 10:52 am    Post subject: Reply with quote

Hi
it is not grub.conf.
It is rather grub.cfg
If you maybe run
Code:

grub-mkconfig -o /boot/efi/EFI/gentoo/grub.cfg

it will create the grub.cfg file to which you can append your iso entry.
Why dont you you write the iso to a usb and use the usb to boot into the iso?
:D
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6102
Location: Dallas area

PostPosted: Mon Jun 01, 2020 11:05 am    Post subject: Reply with quote

On the admin cd (which is a bios/uefi hybrid)

you have you EFI, boot and grub directories
Code:
/mnt/iso $ ls -F
EFI/  README.txt  boot/  gentoo.efimg  grub/  image.squashfs  isolinux/  livecd

and within the grub dir is grub.cfg

Code:
$ cat grub/grub.cfg
set default=0
set gfxpayload=keep
set timeout=10
insmod all_video

menuentry 'Boot LiveCD (kernel: gentoo)' --class gnu-linux --class os {
   linux /boot/gentoo root=/dev/ram0 init=/linuxrc  dokeymap looptype=squashfs loop=/image.squashfs  cdroot
   initrd /boot/gentoo.igz
}

menuentry 'Boot LiveCD (kernel: gentoo) (cached)' --class gnu-linux --class os {
   linux /boot/gentoo root=/dev/ram0 init=/linuxrc  dokeymap looptype=squashfs loop=/image.squashfs  cdroot docache
   initrd /boot/gentoo.igz
}

_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 267
Location: Utility Muffin Research Kitchen

PostPosted: Mon Jun 01, 2020 11:24 am    Post subject: Reply with quote

alamahant wrote:
Hi
it is not grub.conf.
It is rather grub.cfg

BINGO and dang.

alamahant wrote:
Why dont you you write the iso to a usb and use the usb to boot into the iso?

I don't know, other than it can sometimes be quite nice to have the recovery ISO already bootable on disk. You don't have to go fossicking for a thumb drive.

Thanks everyone.
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