English Community

ThinkPad NotebooksThinkPad T400 / T500 and newer T series Laptops Knowledge Base

Windows Bluescreen after enabling AHCI in System Bios


What happens if after turning on AHCI in a Lenovo systems Bios you get a Blue Screen of Death when Booting into Windows? The only way to boot back into Windows is to turn off AHCI putting the setting back to Compatibility mode. Is there a fix for this without having to reload Windows with the AHCI setting turned on?


Note: This is only a fix for Windows Vista and Windows 7.  XP users will still need to toggle to compatibilty mode in BIOS.


As a bit of background on this subject:


In the system BIOS, AHCI enables NCQ (Native Command Queueing) and hot-swapping of current-generation SATA hard drives. Enabling AHCI with SATA drives that support NCQ will provide higher performance in some cases by allowing the drive to optimize the order of read and write requests based on the position of the platter, reducing head movement and enabling the drive to serve requests in fewer rotations over time. 
However, AHCI should be enabled in the BIOS prior to OS installation. Turning it on after you’ve installed the OS will usually cause the BSOD symptom often described or hang the PC upon boot. This happens because Windows disables the AHCI drivers not needed during installation, so if you turn on the feature, the driver won’t be there at boot up and the system will crash.
Fortunately for Win7 and Vista there is a fix:
1. Back up your Registry before applying this fix.
2. Exit all Windows-based programs, click Start>Applications> Run, and type regedit and then press ENTER.
3. If you receive the User Account Control dialog box, click Continue.
4. Navigate to the following Registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci
5. In the right pane, right-click Start in the Name column, then click Modify.
6. In the Value data box, type 0, and then click OK and exit the Registry Editor.
7. Restart your PC and enter the BIOS menu at POST. Enable AHCI in your BIOS.
8. At boot-up, Windows will install the AHCI drivers and ask you to reboot your machine one more time.
You have completed the fix without having to reload the Operating System!

Was this information helpful?

Yes No


piedradelocura On 2013-06-03, 5:45 AM

This isn't working, it's still throwing a blue screen.


T410 w/ 500GB SATA @ 7200 RPM

Ext. eSATA LaCie 1TB

kgsiaw On 2014-08-07, 1:11 AM

I followed your instruction as follow:


 1. Navigate to the following Registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servic​es\Msahci

 2. In the right pane, right-click Start in the Name column, then click Modify.

 3. In the Value data box, type 0, and then click OK and exit the Registry Editor.


Still cannot boot, the worst thing end up is reinstall OS. Current HDD run on “Complicity” mode Bios set at this mode as well.


Please help to solve my problem.


T410. Windows 7 64bit


Welshprince On 2015-05-28, 10:26 AM

Off topic a small bit but dont know how to start a new one.

Can someone tell me What settings need to be in my BIOS for H500S Desktop, to detect a brand new Hard disk?

I have bought a Western Digital 1TB as an upgrade but after installation and switch on PC does not see it!

Can anyone offer any info please.

I thought the PC would automaticlly see the new drive but no such luck what do I need to do please?


Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop