Thanks for your reply, it's very much appreciated and I must say this is a very well written answer
Or you can set the same identifier (UUID, LABEL, PARTUUID or PARTLABEL) to both EFI partitions and use this identifier in the fstab entry (even though these identifiers are usually supposed to be unique).
Do I just need to set one of the above, so changing the UUID will do?
Setting the UUID on the second disk I basically straight forward and I've tested it alread with an USB stick..
Code: Select all
# UUID="1234-ABCD"
# printf "\x${UUID:7:2}\x${UUID:5:2}\x${UUID:2:2}\x${UUID:0:2}" \
| dd bs=1 seek=67 count=4 conv=notrunc of=/dev/sdd1
As both UUID's are the same now, so one entry in /etc/fstab is OK.
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/md0 during installation
UUID=d2c78252-cc96-4e19-a8fc-426038c3465a / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
# Used to boot from sda1 or sdb1 as both have the same UUID
UUID=0E24-AF68 /boot/efi vfat nofail umask=0077 0 1
The following entries where listed:
Code: Select all
# efibootmgr -v
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0000,0002,0001
Boot0000* debian HD(1,GPT,9ea62a12-52cd-4dea-b4e0-4ee63b65f1b4,0x800,0x1dc800)/File(\EFI\debian\shimx64.efi)
Boot0001* ubuntu HD(1,GPT,c714fc4d-3b27-4576-9529-4a330d61e35c,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* ubuntu HD(1,GPT,cc78b180-faf4-4a0b-9369-b0a82aa5c0fa,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi)
Boot0080* PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,0,0)/HD(1,GPT,fbb8e9c7-869a-4bf6-8dfe-eb56718c1a6c,0x40,0x1fc0)/File(\EFI\BOOT\BOOTX64.efi)
BootFFFF* PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,0,0)/HD(1,GPT,fbb8e9c7-869a-4bf6-8dfe-eb56718c1a6c,0x40,0x1fc0)/File(\EFI\BOOT\BOOTX64.efi)
I think Boot0001 and Boot0002 are not needed anymore, as I'm back on Debian, so I deleted them already
Code: Select all
# # efibootmgr -v
BootCurrent: 0000
Timeout: 5 seconds
Boot0000* debian HD(1,GPT,9ea62a12-52cd-4dea-b4e0-4ee63b65f1b4,0x800,0x1dc800)/File(\EFI\debian\shimx64.efi)
Boot0080* PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,0,0)/HD(1,GPT,fbb8e9c7-869a-4bf6-8dfe-eb56718c1a6c,0x40,0x1fc0)/File(\EFI\BOOT\BOOTX64.efi)
BootFFFF* PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,0,0)/HD(1,GPT,fbb8e9c7-869a-4bf6-8dfe-eb56718c1a6c,0x40,0x1fc0)/File(\EFI\BOOT\BOOTX64.efi)
What I don't get is for what are the entries
Boot0080 and
BootFFFF for?
Could they be leftovers from previous installed disk and hence those entries can be deleted as well?
Code: Select all
lsblk -o +UUID,FSTYPE,PARTLABEL,PARTUUID /dev/sda1 /dev/sdb1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT UUID FSTYPE PARTLABEL PARTUUID
sda1 8:1 0 953M 0 part 0E20-1E4F vfat 2b8d99be-e716-4fa0-84fb-f7a01fc1da5b
sdb1 8:17 0 953M 0 part /boot/efi 0E24-AF68 vfat EFI System Partition 9ea62a12-52cd-4dea-b4e0-4ee63b65f1b4
So I now added a new entry using:
# efibootmgr --create --disk=/dev/sda --part=1 --label="debian" --loader='\EFI\debian\shimx64.efi'
Code: Select all
# efibootmgr -v
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0001,0000
Boot0000* debian HD(1,GPT,9ea62a12-52cd-4dea-b4e0-4ee63b65f1b4,0x800,0x1dc800)/File(\EFI\debian\shimx64.efi)
Boot0001* debian HD(1,GPT,2b8d99be-e716-4fa0-84fb-f7a01fc1da5b,0x800,0x1dc800)/File(\EFI\debian\shimx64.efi)
Boot0080* PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,0,0)/HD(1,GPT,fbb8e9c7-869a-4bf6-8dfe-eb56718c1a6c,0x40,0x1fc0)/File(\EFI\BOOT\BOOTX64.efi)
BootFFFF* PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,0,0)/HD(1,GPT,fbb8e9c7-869a-4bf6-8dfe-eb56718c1a6c,0x40,0x1fc0)/File(\EFI\BOOT\BOOTX64.efi)
I got a warning but I think tht doesn't matter
Code: Select all
efibootmgr: ** Warning ** : Boot0000 has same label debian
What I don't get is for what are the entries Boot0080 and BootFFFF?
Could that be left overs from previous installed disk and hence those entries can be remmoved as well?
Thanks again for your comments