Moving from AHCI to Raid
In the previous blog post, we moved from RAID to AHCI. Moving from AHCI to RAID can also be achieved without reinstalling Windows. With my NVME disk, I have not seen a huge performance difference between AHCI with the native Windows driver and RAID with Intel RST. If, however, you want to move back from AHCI to RAID when newer drivers become available this is also possible. Depending on your approach it can be a more tedious process with some risk, but normally you can always fall back to AHCI if it doesn’t work out and,
You can also find a procedure to move from RAID to AHCI in https://gist.github.com/chenxiaolong/4beec93c464639a19ad82eeccc828c63. I mentioned before. Make sure you read and understand it before jumping in. Also, why try the easier ways first. Read on!
I personally have used other ways to do this. Manipulating some registry settings in combination with a safe boot before booting normally does the trick as well. This works with both SATA SSD and M.2 NVMe drives and it enables relatively fast switching between back and forth between AHCI and RAID. I have described this method below. I have also tried the same process used to switch from RAD to AHCI and that works as well.
- Switch to safe boot
- Reboot into BIOS
- Change from AHCI to RAID in the BIOS
- Boot into safe mode
- Turn off safe mode and reboot normally again
Nothing else and that also did the trick, just like with moving from RAID to AHCI. So the link above and my step by step below is here for completeness. You have options in case one of them doesn’t work!
Step by step AHCI to RAID registry method
This procedure I describe below works on Windows 10 1803/1809 and has been tested on Dell Latitude E6220 an XPS 13 9360. Editing the registry is always a little risky if you have no clue what you are doing. So, beware if you mess up and can’t figure out how to get out of this pickle, you might need to redeploy/restore from backup.
To change the SATA operation mode from AHCI to RAID follow the steps below.
Prepping the registry settings
- Open the registry editor
regedit - Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSetXXX\Services\and find the some of the keys that are below (not all will exist depending on your laptop’s configuration):
- iaStor: (Intel RAID, 3 = off, 0 = on).
- iaStorAVC: (Intel Chipset SATA RAID Controller,3 = off, 0 = on).
- iaStorAV: (Intel(R) SATA RAID Controller Windows,3 = off, 0 = on).
- iaStorV:(Intel RAID Controller Windows 7, 3 = off, 0 = on)
- storAHCI: (this is AHCI, 3 = off, 0 = on)
You can put all these to 0 if you want, that doesn’t matter but normally you’ll know which one matters. AHCI is easy, there is only one entry. For the iaStor options I know I need
When you find a StartUpOverride sub key and it is set to 3 also change this to 0 for the value you want to switch to.
Just make sure you set the one you need to 0 as then it will be picked up when you switch between AHCI/RAID in the BIOS. If you’re in you can set them all to 0 as the setting in the BIOS will pick up the correct one and windows will reset the StartupOverride value where needed.
When changing values in CurrentControl001 or 002 make sure you know the one that is being used. You can find that inHKEY_LOCAL_MACHINE\SYSTEM\Select in the value named Current. If it is 1 edit CurrentControl001 if its 2 edit CurrentControl002 (that key might not even exist).
Making sure you go into safeboot mode
- After changing the registry setting set the default boot mode to Safe Mode, use msconfig.exe or open an admin cmd/PowerShell window and run:
bcdedit /set ‘{current}’safeboot minimal - Reboot and hit F2 to enter the BIOS.
- Change the SATA mode to RAID.
- Save and reboot.
- After Windows successfully boots into Safe Mode, disable Safe Mode with msconfig.exe or open an admin cmd/PowerShell window and run:
bcdedit /deletevalue ‘{current}’safeboot - Reboot again.
- Log in and verify in Device Manager, that you now have the Intel Chipset SATA RAID Controller device under Storage Controllers.
Updating the Intel RST driver
- You are now back to RAID but are still at the driver level that is causing your BSODs. Mine was 15.9.
- To fix that you need to upgrade your Intel RST driver. While doing so you might get a warning about being unable to inject the driver into the recovery partition but you can ignore this and take care of that later.
- Now reboot again and check the storage controller now in device manager. You’ll find an Intel Chipset SATA/PCIe RST Premium Controller now with driver version 16.7.0.1009 at the time of writing and that is the one I used and which fixed the BSODs for me when using RAID. Now DELL also releases updates on their support site you can try. If that doesn’t fix it, grab a more recent one from Intel if you can find one to try. That is what I did here.
- The old AHCI disk is still visible when you enable show hidden devices but also shows the disk name as know to the Intel Chipset SATA/PCIe RST Premium Controller.
Important
Note that if you have a BSOD during the installation don’t despair, try again and after a successful run and reboot you’ll have the new driver. Then you’ll have to work on the laptop and see if it still blue screens. If so, revert back to AHCI.
I hope this helps someone out there, including my future self.