Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Enable and/or Disable AHCI

27 May 2011   #1
jharris1993

Two soup cans and some string.
 
 
Enable and/or Disable AHCI

I hope I am not duplicating something here. . . . I did look - Honest!

I ran into an interesting problem and found an easy fix.

First: I wanted to ENABLE AHCI because (supposedly) it improves HDD performance. (It also enables a host of other interesting features.)

I discovered the trick of setting the START paramater in the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci
from "3" to "0" - and then making the switch in the BIOS.

I tried to switch back, and simply resetting this start value to "3" doesn't work.

The issue here is that there are actually TWO keys that control the IDE/AHCI interface choice:
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\pciide
When the system is in IDE interface mode, the respective start values are:
  • msahci's START value is "3"
  • pciide's START value is "0"
When the system is in AHCI interface mode, the respective start values are:
  • msahci's START value is "0"
  • pciide's START value is "3"
It is entirely possible that setting the START value to zero in the key representing the interface type you wish to use, may cause the corresponding key in the other interface type to automagically switch to "3". I do not know this, nor have I tested it.

What works for me is setting both START values to the values that correspond to the interface I wish to use.

It should be trivially easy with a couple of judicious exports to make two registry files, one of which enables AHCI, the other of which enables IDE, by combining the two keys into one file, and setting the START parameters appropriately.

On a slightly different topic, one may ask WHY would someone want to flip back-and-forth between interfaces anyway? Shouldn't the interface selection be a "one-shot-deal"?

In my case I am taking some physical system hard drives and converting them to virtual disks (vhd's) to run them in virtual systems. Unfortunately the 2008-R2 hypervisor only supplies IDE type interfaces for boot devices. So - if I have a system configured for AHCI and want to virtualize it, I have to switch it back to IDE before I make the virtual image of the drive.

In the reverse scenerio, I may want to take a vhd image and write it to physical media - and if I want to ultimately set it to AHCI, I would have to make the corresponding flip in the Registry before swapping interfaces.

What say ye?

Jim


My System SpecsSystem Spec
.
27 May 2011   #2
James Colbert

 
 

Hi jharris. Welcome.

Quote:
First: I wanted to ENABLE AHCI because (supposedly) it improves HDD performance. (It also enables a host of other interesting features.)
For me, the reasons to enable AHCI are Native Command Queuing and Hot Swapping, hot swapping being the most important to me.

As far as switching back and forth, I could imagine issues arising from that (including confusion as to what mode I was running in at a given time...).

But if I needed to do it as a utility to convert drives to vhd's, I would consider a dual boot, with the AHCI disabled boot just a simple OS with whatever utilities I needed to get the job done. Keeping it simple would mean a quick boot to desktop and a small partition.

James
My System SpecsSystem Spec
15 Aug 2013   #3
M4dn3ss

Windows 7 Professional x64
 
 

Sorry to bump this thread, but I think this is related...
Anyway after having installed Windows in IDE mode, I decided to switch to AHCI, so I changed msahci's start value to 0. It rebooted fine and installed the necessary drivers, and I also noticed the hard drive WEI score increased. So it sounds like it should be enabled and working properly right?
However, I wanted to compare POST screen times for AHCI vs IDE, so I switched to IDE mode in BIOS, and I noticed that Windows was still able to boot... it supposedly isn't supposed to be able to boot right?
So I looked in the registry editor and realised the 'start' values for both pciide and msahci were both set to 0. So how can I tell if AHCI is properly enabled or not?


EDIT: Spoke too soon... I downloaded AS-SSD benchmark and in AHCI it reports that I'm in AHCI (msahci) mode. Then if I use IDE, it says it's in IDE (pciide) mode, yet Windows still boots. Is it bad to have both drivers enabled? I changed pciide's start value to 3, then tried booting in IDE and only then did it crash just as I expected. So is it better to disable pciide if I'm using AHCI? I mean since Windows didn't automatically disable it, I have no idea.
My System SpecsSystem Spec
.

23 Jul 2014   #4
wartexmx

windows 7 ultimate x64
 
 

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\msahci =0
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\iaStor =0 - for me as laptop user work it this one
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\iaStorV =0
My System SpecsSystem Spec
Reply

 Enable and/or Disable AHCI




Thread Tools




Similar help and support threads
Thread Forum
AHCI : Enable in Windows 7 / Vista
AHCI : Enable in Vista and Windows 7 after OS install AHCI Advanced Host Controller Interface makes NCQ Native Command Queing along with hot-plugging or hot swapping through SATA Serial-ATA host controllers possible; Vista was the first to offer this feature. The issue with AHCI is it needs...
Tutorials
How to Enable AHCI - No option in BIOS.
Hey All, I'm purchasing a new SSD next week. I've been reading up on it and it looks like I need to enable AHCI in my BIOS. I can't find any option for AHCI though. I currently have my System setup as RAID0. This was how it was set up in the factory and I haven't changed it. The only...
Hardware & Devices
AHCI : Enable in Windows XP after OS install
For info on other OS's take look here: http://www.sevenforums.com/tutorials/61869-ahci-enable-windows-7-vista.html You can use this method on Legacy BIOS or uEFI/BIOS firmware. For this example I am using a PC with uEFI/BIOS firmware & Secure Boot DISABLED. With a Intel Chip Set. ...
Tutorials
enable AHCI in Windows 7
hi... i found several tutorials to enable the AHCI-driver in win7/vista but the registry keys don't match mine... the tutorial is as following: 1. Exit all Windows-based programs. 2. Click Start, type regedit in the Start Search box, and then press ENTER. 3. If you receive the User Account...
Hardware & Devices
Windows 7...>SSD....Enable AHCI B4 Installation
Okay I plan on doing a clean install of Windows 7 on my laptop. I have an SSD from crucial. I know that I need to enable AHCI BEFORE I start the installation of Windows 7...correct? Now....I saw this Intel website in regards to AHCI. Intel® Rapid Storage Technology — Configure the...
Installation & Setup
AHCI to Enable or Not?
Hi, I am using a HP Pavillion 180t computer with Window 7(SP-1), IE9 RC. 12GB Ram, Quad Core i7, 3.33Ghz. I do not have AHCI enabled based upon the Tutorial to do so. Would enableing AHCI be of value to me? If so how? Any help appreciated.
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 16:22.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App