0

My PC 1 originally had two operating systems on hard disk 1 (HDD1) -

  1. Windows 10 20H2
  2. Ubuntu 20.04.x

I recently attached another hard disk HDD2 from my PC2. It will remain on this machine for a few months now after which it would go back to PC2. That has two operating systems -

  1. Windows 10 1909
  2. Ubuntu 18.04.x LTS

After a recent kernel update to Ubuntu 20.04.x, the bootloader now lists all the four operating systems while booting.

Now I am hoping to update the operating systems on PC2 HDD2 to latest versions but my concerns are -

  1. Windows 10 can be updated in-place and won't disturb bootloader. How do I avoid grub update when I update Ubuntu?
  2. I learnt that if I don't install the bootloader (I plan a fresh install) during the installation process, I can use PC1 - HDD1 Ubuntu's grub but this approach means my PC2 won't boot when I attach this hard drive back.

Is there any other way so that whenever I can just plug HDD2 on PC2 everything works right away?

Chethan S.
  • 2,874

1 Answers1

0

from info manual for grub.

'GRUB_OS_PROBER_SKIP_LIST' List of space-separated FS UUIDs of filesystems to be ignored from os-prober output. For efi chainloaders it's @

I can only give you an example for Bios mode.

GRUB_OS_PROBER_SKIP_LIST='"88411b09-1aaa-4775-9fc7-f60041049d6c@/dev/sda1" "8cc02316-1cd7-4f54-bd1a-c3f174e55251@/dev/sdc1"'

It "tells" os-proper ignore my debian on /dev/sda1 and my groovy on /dev/sdc1.

nobody
  • 5,792