meta data for this page
This is an old revision of the document!
UEFI
UEFI multi disc
How to handle redundant boot from multiple discs ?
Added 2 more EFI partitions (3 discs setup):
# Change partition 1 type to EFI on each disc: sgdisk -t 1:EF00 -c1:efi $DISK mkfs.fat -F 32 $DISK-PART blkid $DISK-PART mkdir /boot/efi0 mkdir /boot/efi1
Add new partitions to fstab:
- /etc/fstab
UUID=D12D-CBBD /boot/efi0 vfat umask=0077 0 1 UUID=D150-1EE7 /boot/efi1 vfat umask=0077 0 1
- grub_update.sh
#!/bin/bash -eu DEVICES=( \ "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_500GB_Sxxxxxxxxxxxxxx,efi1" \ "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_500GB_Sxxxxxxxxxxxxxx,efi0" \ "/dev/disk/by-id/nvme-ADATA_LEGEND_710_xxxxxxxxxxxx,efi" \ ) for DEVLINE in "${DEVICES[@]}"; do read -r DEV BOOTDIR <<< "$(echo "${DEVLINE}" | tr ',' ' ')" grub-install --target=x86_64-efi --efi-directory=/boot/"${BOOTDIR}" "${DEV}" done