Switch RAID to AHCI without reinstalling Windows 10

3

1

My Dell XPS 9560 uses RAID as a SATA Controller. After I change it to AHCI Windows 10 will not boot.

What should I do if I don't want to reinstall Windows 10?

qin

Posted 2017-12-26T11:40:14.493

Reputation: 287

Answers

3

You need to install the correct driver for your AHCI storage controller before changing the mode in the BIOS.

If you don't do so, after switching the mode Windows cannot load the storage controller driver needed to access the boot volume. Because this driver is loaded before the Plug and Play Manager, Windows can't automatically detect or otherwise search for the correct driver.

Pre-installing the driver should solve this.

That said, you don't mention the reason you want to do this, but if it's for reason of performance, in my experience there's no difference between the two modes on Dell XPS machines.

I say Reinstate Monica

Posted 2017-12-26T11:40:14.493

Reputation: 21 477

5

There is actually another way around this.

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:

  1. Run cmd as administrator (not PowerShell, you would have to escape {...})

  2. Copy-paste this command, which will start Windows in Safe Mode the next time you reboot:

    bcdedit /set {current} safeboot minimal
    
  3. Restart the computer and enter UEFI/BIOS setup.

  4. Change the SATA operation mode from RAID to AHCI.

  5. Save changes and exit Setup and Windows will automatically boot to Safe Mode.

  6. Launch cmd again, as in step #1.

  7. Copy-paste this command, which will start Windows in Normal Mode the next time you reboot:

    bcdedit /deletevalue {current} safeboot
    
  8. Reboot and Windows will automatically start with AHCI drivers enabled.

LinuxSecurityFreak

Posted 2017-12-26T11:40:14.493

Reputation: 2 298

Very interesting. So you're saying that booting into Safe Mode will work even though the storage mode has been changed...and that Windows will notice the change and load the correct driver on the next normal boot? (If so, it would be nice to explicitly state in your answer this is what it accomplishes.) – I say Reinstate Monica – 2018-09-19T13:16:00.223

@TwistyImpersonator I am heading to my bed now. Feel free to improve my answer. And yes, it means what you are saying. – LinuxSecurityFreak – 2018-09-19T16:46:44.957

OK. I wouldn't want to have made that edit without confirming that was your intent. – I say Reinstate Monica – 2018-09-19T16:47:43.407

@TwistyImpersonator Answer edited, thanks for the text. – LinuxSecurityFreak – 2018-09-20T02:34:50.550

Thanks, this was the solution in my case. I installed Fedora along side my Windows installation on an XPS laptop, but to do so, I had to switch to AHCI so Fedora could see my storage drives. After doing so, Windows wouldn't boot. This allowed me to use Windows in AHCI. Thanks again. – root – 2019-03-02T15:29:36.067