Results 1 to 10 of 10

Thread: grub2 configuration for multibooting

  1. #1
    Join Date
    Aug 2019
    Beans
    8

    grub2 configuration for multibooting

    I have multiple disks disk1 boots Win10, disk 2 also Win10, disk3 that I want to make primary disk in BIOS boots Ubuntu 19.04. Since menu.lst is no longer used, how do I configure the multi-booting process. Each operating system has its own disk.

    I've read this and it's clear as mud:

    https://help.ubuntu.com/community/Grub2/Setup



    I've ran parted -l and efibootmgr.

  2. #2
    Join Date
    Jun 2014
    Beans
    5,335

    Re: grub2 configuration for multibooting

    I've ran parted -l and efibootmgr.
    Posting the output of both commands here would be useful. Are all 3 installs EFI? Do you have an EFI partition on only one drive or do you have an EFI partition on each drive?

    The standard method of getting another OS added to the Grub menu is listed at the link you posted: sudo grub-mkconfig -o /boot/grub/grub.cfg.

    Or you could just run the Ubuntu stub which does the same thing: sudo update-grub Watch the output to see if either/both windows show.

  3. #3
    Join Date
    Aug 2019
    Beans
    8

    Re: grub2 configuration for multibooting

    I cannot copy-paste, but here is the output as an attachment.

    and what is this error I get when I run parted -l?

    The primary GPT table is corrupt, but the backup appears OK, so that will be used.
    Attached Files Attached Files

  4. #4
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,190

    Re: grub2 configuration for multibooting

    You can make Ubuntu boot on startup by changing the boot order in your UEFI bios. Then on startup you will boot to Ubuntu grub menu from which you can continue booting to Ubuntu, or choose Windows.

  5. #5
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,190

    Re: grub2 configuration for multibooting

    The primary GPT table is corrupt, but the backup appears OK, so that will be used.
    You can repair the corrupted GPT partition table using the gdisk utility. Directions are here:
    https://www.rodsbooks.com/gdisk/repairing.html

  6. #6
    Join Date
    Aug 2019
    Beans
    8

    Re: grub2 configuration for multibooting

    I did just that. That solved the problem partially. I ran the grub config command and it created /boot/grub/grub.cfg file.

    Now the default grub bootloader by default boots Ubuntu 19.04 and the 2nd choice is Windows, 3rd choice is Windows 10 clone image.

    When I select Windows, I get this:

    error: no such device: F893-7893
    error: file 'efi/Microsoft/Boot/bootmgfw.efi' not found

    Press any key to continue . . .

    I then go into BIOS, go to the 2nd drive in the boot order and assign it a different bootloader value (there are 4 to chose from). Then Windows boots just fine. But once it boots, after I reboot it, the same thing repeats itself. When I select the Windows option in grub, it spits out the above error message. I have to constantly go into BIOS and assign a boot device every time Windows boots.

    This is not a Linux or Windows thing, it's not on the level of OS. The Windows disk is just fine. So is Ubuntu disk. Its EFI partitions are just fine. The problem is BCDedit or the NVRAM entries. What I don't understand is why by booting Windows, it changes something in the NVRAM with every boot so I have to fix it with every boot by hitting DEL and going into BIOS/boot.

    This is not a Win10 / Ubuntu problem, its install is just fine and boot, it's a BCDEDIT/NVRAM issue.

    I suspect I have some bogus boot entries in the NVRAM but not sure how to get rid of them.



  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: grub2 configuration for multibooting

    Do not know Windows, but there was something also it syncing BCD & UEFI firmware.

    Cannot see BCD, but this shows lots of detail on your configuration & Ubuntu boot.
    May be best to see details, use ppa version with your live installer (2nd option) or any working install, not older Boot-Repair ISO:
    Please copy & paste link to the Boot-info summary report ( do not post report), the auto fix sometimes can create more issues.
    https://help.ubuntu.com/community/Boot-Repair
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #8
    Join Date
    Aug 2019
    Beans
    8

    Re: grub2 configuration for multibooting

    I've ran this command it totally fails to build a working file. The only thing that boots is the primary OS, Ubuntu. Neither of the 2 Windows 10 installs boot. It does not find the device, does not point to the right device/EFI partition.

    grub-mkconfig -o /boot/grub/grub.cfg

  9. #9
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: grub2 configuration for multibooting

    Without more detail from Summary report we cannot really help.

    But grub only boots working Windows. So when you say Windows does not boot is that from grub menu or UEFI boot menu (f10 or f12 for most systems)?

    And if Windows is hibernated, then grub will not boot it. Fast start up sets hibernation flag & Windows updates may turn the fast start up back on.
    Fast Start up off (always on hibernation), note that Windows turns this back on with updates
    http://ubuntuforums.org/showthread.p...2#post13488472
    http://www.tenforums.com/tutorials/4...dows-10-a.html
    http://www.tenforums.com/tutorials/2...dows-10-a.html

    Directly boot Windows from UEFI boot menu, make sure fast start up is off. Then boot into Ubuntu and download Boot-Repair & run report, do not do any fixes.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  10. #10
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,190

    Re: grub2 configuration for multibooting

    grub-mkconfig -o /boot/grub/grub.cfg
    Just a tip: Most Ubuntu users don't use this syntax. The more common syntax that does the same thing and is easier to remember is sudo update-grub. Try it in the future.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •