Windows will not boot and bluescreens after changing BIOS mode from ATA, SATA, RAID, or “Legacy” to AHCI mode
If you’ve installed windows on a machine and the BIOS was set to ATA, SATA, or RAID mode upon install and then switch the BIOS to AHCI mode, Windows will likely fail to boot and you will see a Bluescreen. This is because Windows 7 and other versions of Windows do not enable the AHCI driver by default. To enable the driver and resolve the issue, you can do the following:
To resolve this issue yourself, enable the AHCI driver in the registry before you change the SATA mode of the boot drive. To do this, follow these steps:
- Exit all Windows-based programs.
- Click Start, type regedit in the Start Search box, and then press ENTER.
- If you receive the User Account Control dialog box, click Continue.
- Locate and then click one of the following registry subkeys:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MsahciHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\IastorV
- In the pane on the right side, right-click Start in the Name column, and then click Modify.
- In the Value data box, type 0, and then click OK.
- On the File menu, click Exit to close Registry Editor.
More details here from Microsoft: https://support.microsoft.com/en-us/kb/922976