Okay, so the problem that I have is a little bit more complex. I'm using an Asus motherboard. It started with updating to windows 11 from windows 10. And my problem is that in BIOS i have safte boot on, but my operation system is showing that I have safe boot off. So I went to BIOS and I saw that something like os type is set to other OS not to microsoft uefi mode. And it said in bios that you should use microsoft uefi when you have uefi bios and other os if you have something other,
but I have uefi BIOS but the option the whole time was to other os. So I thought that maybe this would solve the problem. But when I try to boot my computer with this option on it shows that the computer couldn't launch and to go to C:\Windows\System32\LogFiles\Srt\SrtTrail.txt for more info. So I went there, and there is only one error. (the translation could have some mistakes because my windows language is Polish)
Root cause found:
An important boot file c:\windows\system32\drivers\iastorac.sys is corrupted.
Repair action: Repair file
Result: Failure. Error code = 0x57
Operation time = 1266ms
I've tried searching for solution on the internet but nothing works. I updated the bios, drivers etc.
Keep in mind that I had safe boot always on, on the windows 10. And the problem has been since I downloaded windows 11.