Install Ubuntu - "Device for bootloader installation"

by Livy   Last Updated July 12, 2019 10:02 AM - source

From my understanding, the Grub2 bootloader can be installed any EFI System Partition (ESP), specifically under \EFI\ubuntu.

I have 2 SSDs - with 3 ESP on each of them (for testing purpose):

  • /dev/sda has sda1, sda3, sda5 as ESP
  • /dev/sdb has sdb1, sdb3, sdb5 as ESP

I wasted my time last night only to test the following scenarios for this bootloader installation option:

  • Mount a /dev/sda2 as root / and select the same device, eg: /dev/sda for bootloader installation
  • Mount a /dev/sda2 as root / and select the ESP on the same device, eg: /dev/sda1, /dev/sda3, /dev/sda5 for bootloader installation
  • Mount /dev/sda2 as root / and select a different device, eg: /dev/sdb for bootloader installation
  • Mount a /dev/sda2 as root / and select the ESP on a different device, eg: /dev/sdb1, /dev/sdb3, /dev/sdb5 for bootloader installation

image for illustration purpose, not my real test case

No matter what I select, the bootloader (\EFI\ubuntu) is always installed on the first ESP of /dev/sda drive - the same drive whose partition I mount as root. I'm tired and haven't tried mounting /dev/sdb2 as root, but I guess it will use /dev/sdb1 for bootloader in that case.

What is the point of this option if it always choose the first ESP partition of the same drive with root?



Related Questions