Nadhor n00b
Joined: 03 Feb 2003 Posts: 58 Location: Germany
|
Posted: Sun Feb 18, 2018 2:28 pm Post subject: chainloading grub on mbr from uefi grub |
|
|
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. |
|