[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chainload grub to grub?

From: Goh Lip
Subject: Re: Chainload grub to grub?
Date: Tue, 7 Mar 2023 00:40:04 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 3/6/23 17:11, Michael Peters wrote:
Hi. I'm trying to figure out how to chainload one grub to another.

bios boot, not UEFI.
grub 2.06 built from source.

Is chainloading grub from one physical drive to grub on another physical
drive possible?

How is it done?

Yes, try multiboot commands to core.img in menuentries of this sort...

menuentry "Other OS 1"  {
               search --no-floppy --fs-uuid --set=xxxxxxxxxxxxxxxxx
               multiboot /boot/grub/i386-pc/core.img

> That attempt based on Windows 7 example I saw.

Use ntldr command for windows.

menuentry  "Windows" {
  insmod part_msdos
  insmod ntfs
  search --no-floppy --fs-uuid --set=xxxxxxxxxxxxxxx
  ntldr /bootmgr

*But* I think the problem is the OS you are trying to boot up is in a GPT disk, not a msdos disk as shown by your entries you gave using PARTUUID which can only apply to GPT disks.

# filesystem root=/dev/sda2
menuentry "GNU/Linux, Linux 6.1.15-lfs-11.3" {
   linux /vmlinuz-6.1.15-lfs-11.3 root=PARTUUID=d92d2b64-02 ro
menuentry "GNU/Linux, Linux 6.1.14-lfs-11.3" {
   linux /vmlinuz-6.1.14-lfs-11.3 root=PARTUUID=d92d2b64-02 ro

Unless you have set up your GPT disk to have a *flagged* BIOS Boot partition, booting in bios-legacy will be a problem.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]