Skip to content

Instantly share code, notes, and snippets.

@chenxiaolong
Created November 27, 2017 01:33
Show Gist options
  • Save chenxiaolong/4beec93c464639a19ad82eeccc828c63 to your computer and use it in GitHub Desktop.
Save chenxiaolong/4beec93c464639a19ad82eeccc828c63 to your computer and use it in GitHub Desktop.
Switching between AHCI and RAID on the Dell XPS 15 (9560)

Switching between AHCI and RAID on the Dell XPS 15 (9560)

This guide likely applies to other models and, potentially, even laptops from other OEMs that have NVME drives. However, I've only tested this on my Dell XPS 15 (9560) with the OEM Windows installation from the Signature Edition model.

Switching from RAID to AHCI

Switching from RAID to AHCI is significantly simpler than switching from AHCI to RAID. All that's needed is a successful boot to Safe Mode.

  1. To 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
  2. Reboot and hit F2 to enter the BIOS.

  3. Change the SATA mode to AHCI.

  4. Save and reboot.

  5. 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
  6. Reboot one last time. If you open the Device Manager, there should now be a Standard NVM Express Controller device under Storage Controllers.

Switching from AHCI to RAID

Switching from AHCI to RAID is complicated and involves fiddling with the registry so that the RAID controller exists in the PnP database. Make sure you have a backup of your installation before proceeding.

NOTE: I've tested this under the OEM Windows 10 installation only.

  1. Before starting, ensure that the Intel RST drivers from the Dell support page are installed.

  2. Download DevManView and extract the ZIP file. This will be used to find the registry keys for the RAID controller because Device Manager is not available in the Recovery/WinPE environment.

  3. Hold down shift and click the Reboot button in the start menu. This will bring up the Advanced Startup menu on the next boot.

  4. Hit F2 to enter the BIOS when the system reboots.

  5. Change the SATA mode to RAID.

  6. Save and reboot.

  7. When the Advanced Startup menu appears, select the Command Prompt. It may ask for a login.

  8. The Recovery/WinPE environment contains its own copy of the Intel RST drivers so it is possible to access the Windows installation in RAID mode. Run DevManView from the Command Prompt to get a list of all the devices. For example:

    C:\Users\chenxiaolong\Downloads\devmanview-x64\DevManView.exe
  9. Hit Ctrl + F and search for RAID. There should be a device named Intel Chipset SATA RAID Controller.

  10. Right click the device and click Open in RegEdit. It should open regedit.exe and nagivate to a path similar to the following:

    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\PCI\VEN_8086&DEV_282A&SUBSYS_07BE1028&REV_31\3&11583659&0&B8
    
  11. Open notepad.exe in the Command Prompt and copy/paste the value of ClassGUID from the registry. It will be needed later. In my case, the GUID was:

    {4d36e97b-e325-11ce-bfc1-08002be10318}
    
  12. Right click the key in the treeview and export it to a file named intel_raid_pnp.reg.

  13. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\@ClassGUID@\0000 where @ClassGUID@ is the ClassGUID value obtained in step 11.

  14. Right click the key in the treeview and export it to a file named intel_raid_class.reg.

  15. At this point, we have all the registry keys, taken from the Recovery environment, almost ready to be applied to the Windows installation. There are just a few changes that need to be made because the .inf file referenced may not match what's in the Windows installation.

  16. Load the SYSTEM registry hive from the Windows installation. In the treeview, click on HKEY_LOCAL_MACHINE and select File -> Load Hive....

  17. Select C:\Windows\system32\config\system and name the key INTEL_RAID_FIX.

  18. Nagivate to HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverPackages, find the key that begins with iastorac.inf_, and make a note of the (Default) value. This is the .inf file for the Intel RST driver in the Recovery environment. In my case, this was oem21.inf.

  19. Nagivate to HKEY_LOCAL_MACHINE\INTEL_RAID_FIX\DriverDatabase\DriverPackages, find the key that begins with iastorac.inf_, and make a note of the (Default) value. This is the .inf file for the Intel RST driver on the Windows installation. In my case, this was oem44.inf.

  20. Open both of the exported .reg files (intel_raid_pnp.reg and intel_raid_class.reg) and find and replace every instance of the following strings in both files:

  • \SYSTEM\ -> \INTEL_RAID_FIX\
  • Value from step 18 -> Value from step 19 (eg. oem21.inf -> oem44.inf in my case)
  1. Save and close the .reg files.

  2. The registry changes are now ready to be merged. In the File -> Open dialog of Notepad, right click each of the .reg files and click Merge.

  3. Navigate to the paths in steps 10 and 13, but change the location in the address bar from \SYSTEM\ to \INTEL_RAID_FIX\. Verify that the correct .inf file is being referenced in the values. If the values are incorrect, please follow the instructions carefully, starting from step 10 again.

  4. Navigate to HKEY_LOCAL_MACHINE\INTEL_RAID_FIX and select File -> Unload Hive....

  5. Set the default boot mode to Safe Mode by running the following command:

    bcdedit /set '{default}' safeboot minimal
  6. Close all of the windows and reboot. With any luck, Windows will successfully boot into Safe Mode.

  7. 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
  8. Reboot one last time. If you open the Device Manager, there should now be an Intel Chipset SATA RAID Controller device under Storage Controllers.

  9. It may be worth reinstalling/updating Intel RST from the Dell support page to ensure that everything is in a consistent state.

@mathpluscode
Copy link

Worked for my Alienware Aurora R7!

@rcurran1221
Copy link

Worked on my Dell XPS 15 7950!

@karthikbharadwaj95
Copy link

Worked like charm on my ASUS Vivobook 14 and Dell Latitude 5300. Thanks much !

@JakubBarta
Copy link

worked on my dell xps 13

@nailsonlinux
Copy link

Worked on my Dell G5 5590

@tcox85
Copy link

tcox85 commented Jan 29, 2021

So I have a Dell Optiplex 990, with Windows 10 Pro installed on an SSD. When I switch from RAID ON to AHCI in bios and save and restart, it tells me I have 'No Bootable Devices found'
Any idea how to counterract that?

@Disane87
Copy link

Disane87 commented Mar 8, 2021

Can confirm on a DELL 15 9560 it's working flawlessly.

@myh-st
Copy link

myh-st commented Mar 8, 2021

thanks worked on my DELL Latitude 5290
SSD 970 EVO 1 TB

@lomassubedi
Copy link

Is there an easier way to switch from AHCI back to RAID?
Painful to go back ! Did not work in my case though. Could not find this part :
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\PCI\VEN_8086&DEV_282A&SUBSYS_07BE1028&REV_31\3&11583659&0&B8

@cdonnellytx
Copy link

cdonnellytx commented Jun 2, 2021

Switching from RAID to AHCI worked for my Aurora R7 as well, using the Toshiba 2TB SSD it came with.

@luqiang21
Copy link

For bcdedit /set '{current}' safeboot minimal command, there is no single quote around {}, otherwise, you will get errors.

@zuluqq
Copy link

zuluqq commented Sep 28, 2021

Worked on a Dell XPS 13 7390, running Linux (Ubuntu 20.04.3 LTS).

Specifically, it fixed the following error: I woke up and suddenly had a Support Assist screen with a yellow "low power" warning, which I clicked "Continue" through (this always worked previously). Then I suddenly got into a volume group "ubuntu-vg" not found error in a BusyBox loop, with a screen always saying intramfs as the last line.

Switching from "RAID On" to "AHCI" saved the day (just steps 2-4 above): Reboot and enter BIOS via Fn+F2 > System Configuration > Sata Operation > switch from "RAID On" to "AHCI". Everything works perfectly. I was worried it wouldn't because my drive was encrypted and there was a worrying warning message as I made this switch (https://www.dell.com/community/XPS/HELP-Install-Ubuntu-Dual-Boot-switch-RAID-On-to-AHCI/m-p/5752914), but this ended up not being a problem at all. Turns out Ubuntu cannot run on RAID, so even installing Ubuntu on a flash drive and peeking at your system through disk utilities will not show any of the drives on the machine.

@prabhatCH
Copy link

Worked on a Dell XPS 9500 with Windows 10 pre-installed on it. Thank You very much!

@jirevwe
Copy link

jirevwe commented Nov 3, 2021

Worked on Dell G7 7500 with windows 11 pre-installed on it. Thank you very much!!!

@DavidAntliff
Copy link

DavidAntliff commented Dec 8, 2021

Switching from RAID to AHCI worked on an XPS 9710 with Windows 10 Pro pre-installed.

@keithdang7580
Copy link

Thank you, worked for XPS 15 9510 Windows 11

@Mayank-glitch-cpu
Copy link

while openin win cmd in safe mode it ask for permission and as a hell it won't open

@rcmpgi
Copy link

rcmpgi commented Sep 16, 2022

Trying to switch from AHCI to RAID on a Win11 XPS 9520 did NOT work for me. Even extrapolating/trying to correct for different driver name (seems to be called Intel RST VMD Controller now?). The bcdedit step stopped the machine from booting even when switching back to AHCI, which was an added frustration! luckily that could be undone from WinRE with: bcdedit /deletevalue {default} safeboot
Need to try this again on a machine != my own and see if I can work out what went wrong. I can't believe Win11 and Win10 are that different under the hood.

@gwallet
Copy link

gwallet commented Sep 29, 2022

Thanks a lot!

Switching from RAID to AHCI worked just fine on Dell XPS 15 9510 and Windows 10
Just don't use single quotes, {current} is enough

@bkmurdock
Copy link

Thanks! This worked on my Dell XPS 15 9570 using the packaged Windows 10 install.

@0rShemesh
Copy link

Thank you very much!
Works excellent on Windows 11 Home 10.0.2261
Del XPS 15 9570

@MimiDev
Copy link

MimiDev commented Aug 15, 2023

I was so hopefull reading through all of these, but I've come to the grim realisation that this setting doesn't exist for Dell Inspiron 14 7430 2-in-1 :(((
There are no SATA settings at all and not possible to set anything anywhere to AHCI
13th gen i7 with 1TB M.2 PCIe NVMe SSD ... linux live USB can't see the harddrive

@cwang8686
Copy link

Great article! This solved my many years issue trying to convert AHCI to RAID. Make some changes and simplified the process on Dell Precision 3650-i9 PC.

  1. Install Win10 on a new HD with RAID mode
  2. Use DenManView to save intel-raid-pnp.reg and intle-raid-class.reg (step 10 to step 14)
  3. change the HD to your org. AHCI HD and set to AHCL mode on Precision 3650
  4. merge the two reg files into your AHCI hard disk, then run MSCONFIG and set to SAFE boot
  5. after boot up in safe mode, then run msconfig to remove safe mode
  6. Set PC to RAID mode and your AHCI HD can boot in RAID mode now

@mjeffrey
Copy link

mjeffrey commented Oct 4, 2023

Raid->AHCI worked on Dell XPS 15 9570 with windows 11.
Thank you!

@noelhibbard
Copy link

noelhibbard commented Jan 19, 2024

I'm trying to go from AHCI to RAID and I am not sure how to do the first step, "Before starting, ensure that the Intel RST drivers from the Dell support page are installed.". When I try to install RST while in AHCI mode, the installer fails saying "you are trying to install software on an unsupported platform". I suspect I need to manually extract the installer and hand copy some files but not sure.

Another note, I'm on Win11 and BitLocker is enabled.

@noelhibbard
Copy link

I finally got moved over to RAID and it's WAY easier and less convoluted. I downloaded the RST drivers and then stuck them in a folder on my Win11 USB install media. Then I rebooted and then went into the bios to switch from AHCI to RAID and then booted from the Win11 installer and did a Shift-F10 and then ran this command to load the drivers into the install environment:

drvload c:\RST\iaStorVD.inf

Then I ran diskpart to verify that my disks showed up and to get the drive letter to my OS drive. Then I ran this command to inject the driver into the OS:

dism /image:G:\ /add-driver /driver:c:\RST\iaStorVD.inf

Then I rebooted and it came right up. No fussing with the registry or safeboot. Took me two full days to figure this out.

@wyup
Copy link

wyup commented Jan 21, 2024

Another option is to enable the VMD controller from BIOS without remapping SATA or PCIe yet (it takes two options to enable RST on my Asus BIOS: enable VMD controller and map SATA/PCIe). Once in Windows, a new 'VMD controller' appears in Device Manager without driver. Upgrade driver and point to the folder with iaStorVD.inf. Reboot again and enable 'map SATA/PCie to VMD'. Reboot and that's it. Then you can install the full Setup.exe application with the included IntelOptane management app.

@noelhibbard
Copy link

@wyup , pnputil was the first thing I tried, before even resorting to Google, but it still wouldn't boot, not even in safe mode.

The Dell I am using didn't have an option to enable the controller without also attaching SATA ports.

@wyup
Copy link

wyup commented Jan 21, 2024

You're right, I did pnputil with the VMD controller on, I didn't check with it off. I'll edit my comment and remove the first part.

@Forceflow
Copy link

Used this to switch an 9570 which only had a single NVME ssd back to AHCI mode. Silly Dell. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment