You need to install the correct driver for your AHCI storage controller before changing the mode in the BIOS.
Booting into Safe Mode will work even though the storage mode has been changed… Windows will notice the change and load the correct driver on the next normal boot. Basically that means, you can do this:
- Run cmdas administrator (not PowerShell, you would have to escape {…})
- Copy-paste this command, which will start Windows in Safe Mode the next time you reboot:
- bcdedit /set {current} safeboot minimal
- Restart the computer and enter UEFI/BIOS setup.
- Change the SATA operation mode from RAID to AHCI.
- Save changes and exit Setup and Windows will automatically boot to Safe Mode.
- Launch cmdagain, as in step #1.
- Copy-paste this command, which will start Windows in Normal Mode the next time you reboot:
- bcdedit /deletevalue {current} safeboot
- Reboot and Windows will automatically start with AHCI drivers enabled.
Note: Switching to AHCI is essential if you want to install any Linux as RAID mode is to my knowledge not supported, so you would not see your drive(s) in the installation menu.
.