I have Windows installed on an NVME drive and Ubuntu on a SATA drive which is connected to a hard drive power switch.
I want Windows to boot when the Ubuntu drive is turned off and when it is on I want to boot to Ubuntu. I will then hide the GRUB menu so I do not have to manually select. The Windows drive is always on.
I am not sure how to I can achieve this. I have tried selecting GRUB as the bootloader but when the Ubuntu drive is off a GRUB console screen appears and I have to type "exit" to get into Windows. When Windows is the bootloader and the Ubuntu drive is on, Windows starts up.
Does anyone have any pointers to get this working? Thanks
Edit:
Drive info: https://paste.ubuntu.com/p/WcPrSyq66Q/