> You didn't say what make/model/kind of system it is.
I built my desktop workstation computer myself. The only relevant info I can think of to answer this is in my sig.
> Whatever UEFI/BIOS defines as first drive.
The first drive to boot is defined in UEFI/BIOS as my 22.04 nvme1 Jammy Jellyfish.
> Do you have separate ESP on each drive or just the one?
I have an ESP on each of the three drives.
> In ESP will be a 3 line grub.cfg that uses UUID of install.
Code:
--> cat /boot/efi/EFI/grub/grub.cfg
search.fs_uuid 3bcf9a37-e310-4945-87a8-dac0932a16cb root set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
(The above identical file -- with same UUID number -- is also in /boot/efi/EFI/ubuntu/grub.cfg)
> Boot into preferred install and manually do a sudo grub-install to reset that to default boot.
Before I do that, I will lay out some likely relevant general info here:
Code:
--> sudo efibootmgr -v
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0000,0002,0006
Boot0000* 20.04__Focal-Fossa HD(1,GPT,337ce8d2-65a0-4051-8c12-55cc22666e7e,0x4000,0xc9000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* 22.04_NVMe1__Jammy-Jellyfish HD(1,GPT,90af4214-eca8-4265-8e5f-9c2e3301bba9,0x4000,0xc939a)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0002* 20.04_SSD____Focal-Fossa HD(1,GPT,684141f2-20c3-41be-b2c4-7058d9488896,0x4000,0x113229)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0006* grub HD(1,GPT,684141f2-20c3-41be-b2c4-7058d9488896,0x4000,0x113229)/File(\EFI\GRUB\SHIMX64.EFI)
Code:
--> lsblk -e 7 -o name,fstype,size,fsused,label,partlabel,mountpoint,uuid,partuuid
NAME FSTYPE SIZE FSUSED LABEL PARTLABEL MOUNTPOINT UUID PARTUUID
sda 894.3G
├─sda1 vfat 550.3M SSD_ESP SSD_EFI-system-partition 6DE5-0FF8 684141f2-20c3-41be-b2c4-7058d9488896
└─sda2 ext4 893.7G 20.04_SSD UbuntuMATE-20.04_SSD 21697ef7-83e3-4414-a859-91841f61dce8 7cc6f822-eb23-4829-9039-6d09e6e0ca55
sdb 894.3G
└─sdb1 ext4 894.3G WeirdBeard WeirdBeard_data 70e15e24-a75c-4115-9c83-29cb585676f6 5ab70820-78e7-466e-9c0f-101054d5df9b
nvme0n1 931.5G
├─nvme0n1p1 vfat 402M NVME0_ESP nvme0_EFI-system-partition 2BD2-4199 337ce8d2-65a0-4051-8c12-55cc22666e7e
└─nvme0n1p2 ext4 931.1G 20.04_NVMe0 UbuntuMATE-20.04 07041e0f-1cde-4caf-9b1d-86851e9601ed 0657b873-53c2-4a40-9e60-3b26c891fd1b
nvme1n1 931.5G
├─nvme1n1p1 vfat 402.5M 10.3M NVME1_ESP nvme1_EFI-system-partition /boot/efi E23B-29C2 90af4214-eca8-4265-8e5f-9c2e3301bba9
└─nvme1n1p2 ext4 931.1G 53G 22.04_NVMe1 UbuntuMATE-22.04_nvme1 / 3bcf9a37-e310-4945-87a8-dac0932a16cb 77706804-715d-4276-9824-a184ed00df4f
Also, and this may be important here (though I think this file is correct and has been serving me well for months),
I have an /etc/grub.d/06_custom file.
(It's 258 lines; ignore all the "*......." - they're invisible characters denoting spaces; same for "____" which denotes a line-continuation).
That file is on pastebin at https://paste.ubuntu.com/p/tQhsBzDpWr/
Thanks for looking at this info.
Bookmarks