PSA: If you have linux on a different disk and want to install windows on another, unplug your linux disk, or windows will trash your ESP partition
For those interested, I totally forgot about this.
My PC consists of 2 ssd disks and a storage HDD disk.
I have windows installed on one and linux on the other ssd.
I know I can setup a multi boot system using only one ESP pertition, but I wanted independence between one OS and the other.
Before I go further, for those that don't know, the ESP partition is your /boot partition for UEFI setups (I know it's more than that, but I want to keep this simple)
It's pretty straightforward: You mount it, run grub and it will let you boot in UEFI mode - just like you've always done with BIOS.
Microsoft windows creates its own ESP partition unless it does see another ESP partition on any other disk, then, it will procceed to (try to) use that partition as windows ESP partiton in order to boot in UEFI mode. Only it won't use it properly, will trash it, windows will boot in BIOS mode in the end and you won't be able to boot your linux system :) (Thanks microsoft!)
So, in order to keep the harmony, I ended up unplugging the LINUX disk altogether when I had to reinstall windows last week (mobo and cpu upgrade). Forgot about this little fact and had to chroot into my encrypted linux system and recover the esp partition (was quite easy, tho)
I'll leave this here in case anyone runs into the same issue anytime.
[link] [comments] ...