TECH / Windows 4 min read

How to Enable AHCI Mode in BIOS Without Reinstalling Windows 7, 10 & 11 (Fix BSOD 0x0000007B)

Antonio NEMCD Author
Published Aug 7, 2016 · 4 min

When Windows is installed on a PC where the motherboard BIOS (or UEFI) SATA controller was left in legacy IDE Mode (also labeled Compatible Mode, Standard IDE, or Native IDE depending on the board manufacturer), the operating system automatically disables the built-in AHCI storage driver at boot time to speed up startup.

Switching SATA controller mode from IDE to AHCI in motherboard BIOS

The problem surfaces as soon as you upgrade to a solid-state drive (SSD) or add a PCI-E SATA expansion card. SSD management tools like Samsung Magician or Kingston SSD Manager immediately warn you that AHCI mode is required to unlock full sequential speeds, Native Command Queuing (NCQ), and proper TRIM support. However, if you simply enter the BIOS and switch SATA Mode from IDE to AHCI, Windows will crash during boot with a Blue Screen of Death (BSOD 0x0000007B / INACCESSIBLE_BOOT_DEVICE) and enter an endless reboot loop.

Switching the BIOS setting back to IDE lets Windows boot normally again. Fortunately, you do not need to format your drive or reinstall Windows to turn on AHCI – you just need to re-enable the native AHCI boot driver in the Windows Registry before changing the BIOS setting.

Method 1. Enabling the AHCI Driver in Windows 7 via Registry (msahci & iaStorV)

Before making changes, unplug any external USB hard drives or flash drives so only your internal SATA drives are initialized during the transition. While Windows 7 is still booted in legacy IDE mode, follow these four steps:

  1. Open the Registry Editor: press Win + R on your keyboard, type regedit into the Run dialog, and press Enter (or type regedit in the Start Menu search box).
  2. Navigate to the Microsoft AHCI service key: in the left folder tree, expand the following path:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci

Locating the msahci service key in Windows Registry Editor

  1. Enable boot-time start: in the right pane, double-click the Start DWORD value and change its data from 3 (or 4) to 0, then click OK.

Setting Start value to 0 for msahci in regedit

  1. Enable the Intel/AMD storage key (iaStorV): on many Intel chipset motherboards, Windows also relies on the iaStorV service. Open the neighboring key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStorV and set its Start parameter to 0 as well.

Close Registry Editor, restart your computer, and immediately press Del or F2 to enter BIOS/UEFI setup. Switch your SATA controller mode from IDE to AHCI, save changes (F10), and boot into Windows. The system will automatically load the Standard AHCI 1.0 Serial ATA Controller driver, complete hardware installation, and prompt you for one final restart.

Method 2. Enabling AHCI in Windows 10 and Windows 11 (storahci)

Starting with Windows 8, Microsoft replaced the legacy msahci driver with storahci. If you are migrating a Windows 10 or Windows 11 system from IDE to AHCI, update these registry entries instead:

  1. Open regedit and navigate to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\storahci
  2. Double-click the Start value and set it to 0.
  3. Expand the storahci folder and check if it contains a subkey named StartOverride. If StartOverride exists, open it and change the value of entry 0 from 3 to 0 (or delete the StartOverride subkey entirely, otherwise Windows 10/11 will override your setting and block the driver from loading).
Universal Safe Mode trick (no Registry editing required): in Windows 10 and Windows 11, you can skip Registry Editor altogether. Open Command Prompt as Administrator and run bcdedit /set {current} safeboot minimal. Restart the PC, enter BIOS immediately, and switch SATA mode to AHCI. Windows will boot into Safe Mode and automatically enable the storahci boot driver. Once on the Safe Mode desktop, open an elevated Command Prompt, run bcdedit /deletevalue {current} safeboot, and reboot normally into full speed AHCI mode.
Related posts:

Leave a Comment