How to change from IDE, ATA or RAID to AHCI

I decided to break the RAID1 on my Dell M6500 so I could run Microsoft Server 2012 R2 along with my Windows 7 installation. When the RAID was deleted I thought it would be best to switch my SATA controller over to AHCI since I’m running two Corsair Force GT SSD drives. After changing to AHCI the computer blue screens during boot. I have done it several times before but not often enough to remember what needs to be enabled. This behavior is documented in Microsoft KB922976 (Error message occurs after you change the SATA mode of the boot drive) with automatic registry fix and all. However this is not the complete solution for all situations.

According to the KB you need to enable loading of the AHCI driver, a no brainier! And also enable the Intel AHCI controller driver. But what is not included in the KB article is that the ATAPI driver also needs to be enabled for it to work. If you try to change from ATA to AHCI it is already enabled, if your computer booted with the ATA setting.

So according to the KB you should set these two registry keys to “0”:

HKEY_LOCAL_MACHINESystemCurrentControlSetServicesMsahciStart
HKEY_LOCAL_MACHINESystemCurrentControlSetServicesIastorVStart

But you should also check that this one is set to “0”:

HKEY_LOCAL_MACHINESystemCurrentControlSetServicesatapiStart

You can also run these commands instead:

[ps]
REG ADD HKLMSystemCurrentControlSetServicesmsahci /v Start /d 0 /f /t REG_DWORD
REG ADD HKLMSystemCurrentControlSetServicesIastorV /v Start /d 0 /f /t REG_DWORD
REG ADD HKLMSystemCurrentControlSetServicesatapi /v Start /d 0 /f /t REG_DWORD
[/ps]

Now your computer will start without the blue screen!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: