BIOS support for booting from UEFI partition on Linux MD RAID 1 array

Are there any known AM5 (or other) motherboards which will boot from a UEFI partition contained in a Linux MD RAID1 array? I have my general data mirrored across 2 devices with RAID1 and I’d like to be able to do so with my boot partition as well for increased reliability. In-theory, this should be trivial for a BIOS to support. But I can also see BIOS manufacturers not caring about Linux support.

I currently have a Gigabyte B650 Gaming X AX V2 motherboard (Microcenter deal) and would like to do this, but I don’t want to deal with the headache of reworking my boot partitions if it won’t work. I’m up for switching motherboards if there are any which are known to have this work.

Yes, I think this is the sad state of affairs.

In reality, it works the other way round. If you setup a raid using mobo capabilities it can be accessed in Linux using mdraid tools.
But because it’s proprietary and not guaranteed to work with any other mobo this is not a recommended route to take.

The only real compatible way is to have an ESP on every disk with the same files.

If you use the UEFI default fallback loader path on each then you don’t even need to configure them in UEFI variables.

One way to keep them in sync is to have /boot on your actual root fs, then use a package manager post-commit hook to rsync it to every ESP.

It’s possible and temping to use MD RAID-1 with metadata format 0.90, which stores the MD superblock at the end of the partition instead of at the start - like the latest format, but since UEFI is free to modify the ESP contents (and commonly do), and it doesn’t know anything about MD, then it’ll quickly corrupt the contents.

1 Like

This topic was automatically closed 273 days after the last reply. New replies are no longer allowed.