I have a dual boot system with two drives. Each drive has it own OS, with the one being Windows 10 and the other Debian 11. In order to prevent Debian seeing the Win10 drive, I have disabled it during the boot process like this: https://askubuntu.com/a/554417/805980
Everything works fine, but I see that sometimes (during installing updates on Debian maybe?) the GRUB gets updated, probably with update-grub. And since Debian doesn't see the Win10 drive, it removes it from GRUB.
Is there a way to make the Win10 entry in GRUB not be removed when the drive is not available and update-grub executes?
I don't know if it matters, but I don't use UEFI.