Nicolas George wrote: > Hi. > > Is there a solution to have a whole-disk RAID (software, mdadm) that is > also partitioned in GPT and bootable in UEFI?
Not that I know of. An EFI partition needs to be FAT32 or VFAT. What I think you could do: Partition the disks with GPT: 2 partitions each, EFI and mdadm raid. We'll call these sda1 and sda2, and sdb1 and sdb2. Install Debian. Use sda1 for EFI (/boot/efi), sda2/sdb2 for mdadm to create md0. Create a degraded mdadm mirror on sdb1, with metadata 1.0. Call this md1. mkfs vfat on md1. Mount it as /mnt/tmp. Get the UUID and put it in /etc/fstab as the new value for /boot/efi. copy everything from /boot/efi to /mnt/tmp. sync, and umount /mnt/tmp. wipefs /dev/sda1, then use mdadm to add it to md1. After the resynch is finished (watch /proc/mdstat), try a reboot. Note that UEFI should detect this as two different boot disks, and will not automatically switch between them. But booting after sda fails should be as simple as switching to sdb1. I have not tested this. I could be wrong. -dsr-