Switch SSD mode from RAID to AHCI (for Windows and Linux dual boot)

On some computers, like the new Dell Pro Max Tower T2 and the old XPS 13, the SATA operation mode for the SSD is set to RAID by default.
Linux will not be able to see the SSD in RAID mode: you need to change it to AHCI.
If you just change it to AHCI in BIOS, Windows will not boot.

The idea is to boot Windows in Safe Mode once, then change the SATA mode to AHCI in BIOS, then boot Windows normally (it will automatically load the AHCI drivers).

WARNING: Do the procedure at your own risk!

The procedure can be found in many places online.
However, I decided to put the steps that worked for me here:

  1. Click the Start Button and type cmd; Right-click the result and select Run as administrator
  2. Type this command and press ENTER: bcdedit /set {current} safeboot minimal (If it does not work, use this alternative: bcdedit /set safeboot minimal)
  3. Restart the computer and enter BIOS Setup (in Dell, it is F2)
  4. Change the SATA Operation mode to AHCI from RAID
  5. Save changes and exit Setup, and Windows will automatically boot to Safe Mode.
  6. Do as in the first step to open an elevated command prompt.
  7. Type this command and press ENTER: bcdedit /deletevalue {current} safeboot (If it does not work, use this alternative: bcdedit /deletevalue safeboot)
  8. Reboot once more, and Windows will automatically start with AHCI drivers enabled.

Note that in the Dell Pro Max Tower T2 BIOS, you must enable the “Advanced Setup” (see the top-left corner) to be able to change the operation mode in the “Storage” section:

Here are the sources I used:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.