I had multiple disks in my PC, one with Windows and one with Linux. The drive with Linux had the boot record I guess; I removed and replaced that one with a new disk and again installed Linux on it (so the Windows disk has been the same the while time), but I can no longer log into Windows while this new disk is installed and the old disk is removed. I can log into Linux while the new disk is installed, and if I swap back to the old disk I can log into Windows.

How do I fix things so I can not into Windows or new Linux while the new disk is installed? I don’t mind reinstalling my Linux OS, but I really don’t want to reinstall Windows.

  • CaptainBasculin@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    11 months ago

    While both disks are installed, boot prioritise the disk with Linux from BIOS Settings. After it boots to Linux, you can fix GRUB (the default bootloader that comes with Linux) with mounting the partition that has Windows (If you can see the files from Windows in your file manager, it’s mounted.) and running sudo os-prober, and sudo update-grub

    After fixing the bootloader, you can reboot to see both operating systems on GRUB menu.

    If you think that GRUB looks lame, feel free to install another bootloader later.

    • Glome@feddit.nl
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      If you think that GRUB looks lame, feel free to install another bootloader later.

      Shameless rEFInd plug