Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chainloading grub on mbr from uefi grub
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
Nadhor
n00b
n00b


Joined: 03 Feb 2003
Posts: 58
Location: Germany

PostPosted: Sun Feb 18, 2018 2:28 pm    Post subject: chainloading grub on mbr from uefi grub Reply with quote

Hello,
until now I was always starting my gentoo box via grub2 installed in the mbr.
I now got myself a new nvme drive and read somewhere that to boot from nvme UEFI is needed. So I installed grub2 on the EFI partition of the nvme drive and when booting the computer GRUB is properly started. But I would like to boot (at least for a little while) my old system too.
Is there anyway to chainload the GRUB installed on the MBR from the GRUB installed on the UEFI Partition? I manually added the following code to /etc/grub.d/40_custom:
Code:
menuentry "MBR Grub Bootloader" {
        load_video
        insmod part_msdos
        insmod ext2
        insmod gzio
        insmod chain
        set root=(hd0,msdos3)
        chainloader +1
}

I also tried with root=(hd0) and root=(hd0,1) but always get the info:
Quote:
Invalid EFI file path

My boot partition is on sda3, the root partition is on sda5 and the partition scheme is old msdos partition system, from before gpt was the way to go.
Booting the old system directly via the following code works, but leaves me without any text-console. Only X11:
Code:
menuentry "OLD_LINUX" {
        load_video
        insmod part_msdos
        insmod gzio
        insmod chain
        insmod ext2
        set root=(hd0,msdos3)
        linux   /kernel-genkernel-x86_64-4.14.18-gentoo root=UUID=9df438cb-4144-4ec8-8b83-c8861e6e4aec ro
        initrd  /initramfs-genkernel-x86_64-4.14.18-gentoo
}


I would be thankful for any tips on how to chainload an GRUB on the MBR via the GRUB that runs on UEFI. Grub version is 2.02.
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