Score:0

Dual Boot Windows/Linux—Same setup on Two Drives—Boot in Grub for all Four?

in flag

I have an old HDD (GPT) with Win 10 and Ubuntu 20.04. I added an SSD (GPT) with Windows 10 and Ubuntu 22.04. I unplugged the old HDD before I installed the SSD. What do I need to do to safely get Grub2 on the SSD to show all four boot options? No UEFI available. I boot in MBR mode (bios only) and load the OSs in GPT through Grub2. In case you ask, I use USBs to boot the Windows GPT partitions, and Grub2 finds them fine.

In summary:

  • HDD (GPT) dual-boot with Win 10 and Ubuntu 20.04 LTS
  • SSD (GPT) dual-boot with Win 10 and Ubuntu 22.04 LTS
  • Bios Only mobo
  • USBs that boot both Windows 10 OSs in GPT, and they get found by Grub2 on each disk
  • Removed HDD, installed dual-boot on SSD
  • HDD still not plugged in
  • SSD boots Win 10 and Ubuntu 22.04 fine.
oldfred avatar
cn flag
Did you run `sudo update-grub` with os-prober on. Grub 2.06 may turn os-prober off and you should turn it off once it runs and manually add boot stanzas to 40_custom. Some security issue with os-prober opening every partition looking for installs. BIOS only with Windows 10 & GPT unusual. Please copy & paste the pastebin link to the BootInfo summary report ( do not post report), do not run the auto fix till reviewed. Use often updated ppa version over somewhat older ISO with your USB installer or any working install. https://help.ubuntu.com/community/Boot-Repair
salmmus avatar
in flag
"...manually add boot stanzas to 40_custom?" Not sure what you mean—Grub would detect the stanzas, right? Second, Do you want the HDD Pastebin or the SSD Pastebin? I haven't reconnected the old HDD yet.
oldfred avatar
cn flag
Better with both, but if duplicate UUIDs that will not work. First thing I do is backup grub.cfg, and turn off os-prober. Then add whatever boot stanzas I want into grub's 40_custom. You then can rename an entry if desired, so you can tell which Ubuntu you are booting. I have multiple installs and have to do that and have old installs, not yet deleted that I do not want in grub menu. And without os-prober scanning all my partitions, updated to grub.cfg are a lot faster. http://askubuntu.com/questions/659528/grub-menu-with-windows-10-and-ubuntu-14-04/659910#659910
salmmus avatar
in flag
Here's the [HDD Pastebin](https://paste.ubuntu.com/p/YQdWJNx2kD). I figure we need to fix this first. It shows Grub2 detected the actual Windows 10 OS on the HDD and the Windows 10 boot USB. But selecting the HDD option causes a boot loop because it can't boot from GPT, which is where the USB booting comes into play.
salmmus avatar
in flag
Pastebin: "BIOS/UEFI firmware: V17.17(8.15) from American Megatrends Inc. The firmware is EFI-compatible, but this installed-session is in Legacy/BIOS/CSM mode (not in EFI mode)." Not sure why it says that because there are no UEFI options in bios. Just FYI.
oldfred avatar
cn flag
You have UEFI. You show typically UEFI boot entries in sda2 for Windows, Ubuntu, deepin & Debian. If you previous had those other installs, they do not automatically get erased in UEFI and ESP - efi system partition. Windows only installs in UEFI boot mode to gpt partitioned drives and sda is gpt. What brand/model system? Have you updated UEFI firmware? Many vendors call UEFI still as BIOS, but Microsoft required UEFI/gpt since 2012, so if newer than that it really is UEFI.
salmmus avatar
in flag
**Mobo:** [MSI 760GM-P23(FX)](http://https://www.msi.com/Motherboard/760GM-P23-FX/Specification) (MS-7641) (Version 3.0), **Bios Version:** v17.17 (04-22-15) (HH0) [the latest available], **System Configuration:** AMIBIOS v08.00.15, ACHI Bios: v0001.0078 (2007 AMD, Inc.), CPUID/MicroCode: 0F20/81C, **Sata:** SATA 1~6 support RAID 0, 1, 10 or JBOD mode by AMD® SB710
oldfred avatar
cn flag
Not familiar with AMD based systems, but it does look older. Not sure how you have UEFI boot entries.
salmmus avatar
in flag
I read that Linux can boot UEFI from a bios-only machine but Windows can't.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.