HOW TO switch from IDE to AHCI mode without having to reinstall Win XP (GUIDE)

Status
Not open for further replies.

Jack the Newbie

New member
GENERAL OF THE ARMY
Joined
Nov 20, 2006
Messages
14,939
Problem:

If you forgot to activate AHCI-mode in BIOS before you installed Windows XP SP2 on one of your SATA drives you will encounter a serious problem if you attempt to switch to AHCI-mode after the installation is already completed:  Windows XP SP2 will not start properly anymore.

Why AHCI?

AHCI stands for Advanced Host Controller Interface. One of the main reasons for switching to AHCI-mode is to take advantage of the NCQ-Feature of your SATA harddrive.  NCQ (Native Command Queuing) allows ATA drives to accept more than one command at a time and dynamically reorder the commands for maximum efficiency. NCQ, when used in conjunction with a hard drive that supports NCQ, can increase storage performance on random workloads.

Solutions:

There are basically two possible solution that do not involve a re-installation of the whole operating system. 

1.] Solution #1 is the simpler one as it only involves a few mouse clicks in Device Manager.  Apache Thunder has posted a detailed guide with screenhots which can be found >>here<<. 

2.] In case Solution #1 fails, there is another way to do this (Solution #2), which is somewhat more complicated as it involves a registry patch that has to be customized for the specific Intel Chipset used on the mainboard at hand.  The guide that I am going to reproduce here was originally posted on a German Gigabyte forum by JZ.
[ http://62.109.81.232/cgi-bin/sbb/sbb.cgi?&a=show&forum=1&show=450&start=0 ]

I figured it would probably not a bad idea to put up a thread about here as well.

I have successfully tested the whole thing on the following mainboards:

-P965 Platinum (ICH8R)
-P35 Platinum/Neo2-Series (ICH9R
-975X Platinum PowerUp Edition (ICH7DH)


First Step:

Open Windows Notepad and create a REG-file and name it as you like (example: AHCI.reg)

Copy and paste the following lines into that reg-file and save it (use the right content for your controller (ICH8R, ICH9R and ICH7DH)

ICH8R

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2821&cc_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor]
"Type"=dword:00000001
"Start"=dword:00000000
"Group"="SCSI miniport"
"ErrorControl"=dword:00000001
"ImagePath"="system32\\drivers\\iaStor.sys"
"tag"=dword:00000019
"DisplayName"="Intel AHCI Controller"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Parameters]
"queuePriorityEnable"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Enum]
"0"="PCI\\VEN_8086&DEV_2821&SUBSYS_B0051458&REV_02\\3&13c0b0c5&0&FA"
"Count"=dword:00000001
"NextInstance"=dword:00000001


ICH9R [THX @monographix  :emot-tip-wink:]

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2922&cc_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor]
"Type"=dword:00000001
"Start"=dword:00000000
"Group"="SCSI miniport"
"ErrorControl"=dword:00000001
"ImagePath"="system32\\drivers\\iaStor.sys"
"tag"=dword:00000019
"DisplayName"="Intel AHCI Controller"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Parameters]
"queuePriorityEnable"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Enum]
"0"="PCI\\VEN_8086&DEV_2922&SUBSYS_B0051458&REV_02\\3&13c0b0c5&0&FA"
"Count"=dword:00000001
"NextInstance"=dword:00000001

ICH10R


Windows Registry Editor Version 5.00

;
; Important: The File iastor.sys has to be present in the System32\Drivers folder.
;


[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3A22&cc_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor]
"Type"=dword:00000001
"Start"=dword:00000000
"Group"="SCSI miniport"
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,69,00,61,00,53,00,74,00,6f,00,72,\
  00,2e,00,73,00,79,00,73,00,00,00
"Tag"=dword:00000019
"DisplayName"="Intel AHCI Controller"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Parameters]
"queuePriorityEnable"=dword:00000000
"BusType"=dword:00000003

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Enum]
"0"="PCI\\VEN_8086&DEV_3A22&SUBSYS_B0051458&REV_01\\3&13c0b0c5&0&FA"
"Count"=dword:00000001
"NextInstance"=dword:00000001

Now double-click on your reg-file to make the above changes to the Windows registry.

Do not restart your computer at this point.


Second Step:

Copy the iaStor.sys-File into the \Windows\System32\Drivers\-Folder if it isn't in there already. 

The file is part of the of the Intel Matrix Storage Manager-Packet (IATA621_CD.EXE) and can be retrieved manually:

\START\Run --> IATA621_CD.EXE -a -a

After entering this command the file should be in the following folder:

...\Program Files\Intel\Intel Matrix Storage Manager\Driver

...and ready to be copied.

Third Step:

Restart your computer, enter BIOS and switch to AHCI-mode.

Save, exit and load Windows XP which should now start properly, discover the SATA AHCI Controller and ask for a driver.

Abort the whole Windows-Driver-Installation procedure and run IATA621_CD.EXE instead to take care of the installation.

Restart your system.

-----------

Done. 



Sugestions and corrections are very welcome.
 
Jack the Newbie said:
Are you sure?  Have a look here in BIOS:

Integrated Peripherals --> On-Chip ATA Devices --> On-Chip SATA Controller --> ?? ??



That is the one? I have that one...
I expected it would be an entry named "AHCI" something.
It can only be set to "IDE" and "Disabled", I think...
Confusing...
 
Can you use ACHI and a RAID 0 array at the same time. Like, have ACHI set in BIOS for a RAID array? Probably not right?
 
will it work on Windows Vista too ? i have P965M Platinum with 320GB of Seagate 7200.10 HD.

I install both Vista & XP with dual booting.
 
Bob the Fish-

I have the same setup - 975x PUE BIOS 7.5 (although I backed down to 7.4 and had the same issue). BSOD while following the procedure. The device ID used in the reg file in this thread does not match my machine, either. Is this the case with others?
entry from the reg file here:
ven_8086&dev_2821&cc_0106

entry for my SATA controller:
ven_8086&dev_27c1 <-- AHCI mode
ven_8086&dev_27c0 <-- IDE mode

even with the patched entry, it does not work. Upon reenabling IDE mode, I get a device listed in the registry at HKLM\SYSTEM\CurrentControlSet\Services\iaStor\Enum
0 = Root\LEGACY_IASTOR\0000

(The name of this key shows as "1" instead of "0" if you imported the whole registry file from here, which defines "0" already.)
Any ideas?

XP SP2
MSI 975X Platinum PowerUp Ed.
80GB Seagate 7200.10 drive

FOLLOW UP (SOLVED) -

I got angry and forced the regular SATA driver to be replaced by the AHCI Controller driver in the device manager, rebooted, turned it on, and now everything works.
Go figure.
-Chris



 
roguepenguin said:
Bob the Fish-

I have the same setup - 975x PUE BIOS 7.5 (although I backed down to 7.4 and had the same issue). BSOD while following the procedure. The device ID used in the reg file in this thread does not match my machine, either. Is this the case with others?
entry from the reg file here:
ven_8086&dev_2821&cc_0106

entry for my SATA controller:
ven_8086&dev_27c1 <-- AHCI mode
ven_8086&dev_27c0 <-- IDE mode

even with the patched entry, it does not work. Upon reenabling IDE mode, I get a device listed in the registry at HKLM\SYSTEM\CurrentControlSet\Services\iaStor\Enum
0 = Root\LEGACY_IASTOR\0000

(The name of this key shows as "1" instead of "0" if you imported the whole registry file from here, which defines "0" already.)
Any ideas?

XP SP2
MSI 975X Platinum PowerUp Ed.
80GB Seagate 7200.10 drive

FOLLOW UP (SOLVED) -

I got angry and forced the regular SATA driver to be replaced by the AHCI Controller driver in the device manager, rebooted, turned it on, and now everything works.
Go figure.
-Chris

Witch of the listed drivers did you use i get 6 options.
 
This tweak didnt work at first with my board. After some search seeing its coming from a ICH8 chipset i altered the device 2821 values in the reg code with the corresponding to ICH9R, 2922. Heres how it should look:



ICH8 said:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2821&cc_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor]
"Type"=dword:00000001
"Start"=dword:00000000
"Group"="SCSI miniport"
"ErrorControl"=dword:00000001
"ImagePath"="system32\\drivers\\iaStor.sys"
"tag"=dword:00000019
"DisplayName"="Intel AHCI Controller"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Parameters]
"queuePriorityEnable"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Enum]
"0"="PCI\\VEN_8086&DEV_2821&SUBSYS_B0051458&REV_02\\3&13c0b0c5&0&FA"
"Count"=dword:00000001
"NextInstance"=dword:00000001



ICH9R said:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2922&cc_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor]
"Type"=dword:00000001
"Start"=dword:00000000
"Group"="SCSI miniport"
"ErrorControl"=dword:00000001
"ImagePath"="system32\\drivers\\iaStor.sys"
"tag"=dword:00000019
"DisplayName"="Intel AHCI Controller"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Parameters]
"queuePriorityEnable"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Enum]
"0"="PCI\\VEN_8086&DEV_2922&SUBSYS_B0051458&REV_02\\3&13c0b0c5&0&FA"
"Count"=dword:00000001
"NextInstance"=dword:00000001


Also The iaStor.sys ofcourse can be extracted from the latest matrix storage manager downloaded from Intel site (something like iata78_enu.exe). And its installation files that are being unpacked with the -a-a parameters are found in the Program files folder in the boot hard drive (eg C:\Program Files\Intel)


 
Quadrifoglio Verde said:
I wasn't trying to disagree with you or your excellent guide. I just wanted to make people aware of the possible disadvantage of NCQ. Simply stated, for most desktop users NCQ is not worth enabling. Marketing is trying to make us believe otherwise...

In years long gone by I used SCSI drives on the desktop. Enabling NCQ on a good host adapter (and even cheaper ones like the later Symbios logic) provided a great boost for compiling.

The ultimate test I'd like to see is e.g. a Linux kernel compile.

(p.s. I'm reading this btw not for the XP side, but I hope that AHCI mode might kill some of the bios bugs of my (plain) P965-F :wall: :bonk:)
 
Jack the Newbie said:
Thanks for your update.  :biggthumbsup:  :emot-tip-wink:
:worship: Thx for this thread Jack the Newbie and thx for the MSI Neo2 update monographix !! You saved me a lot of time !!

I've got a dual boot XP Pro/Vista Ultimate and it works the same way, except that you need to replace all "iaStor" occurences (without quotes ;-) by "iasStorV" for vista reg file ...

btw, I use AHCI for eSata "hot plug"...

HTH and... Thx again!!
:biggthumbsup:

 
hi,

I did all the steps many time and always the same death screen.

my configuration:

-xp pro Sp2
-motheboard Msi platinium 975X powerup (ICH7DH) with the last update.
-I used IATA621_CD.EXE to extract iastor.sys (I did also a test with iata75_cd)
-for the reg file I used :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2821&cc_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor]
"Type"=dword:00000001
"Start"=dword:00000000
"Group"="SCSI miniport"
"ErrorControl"=dword:00000001
"ImagePath"="system32\\drivers\\iaStor.sys"
"tag"=dword:00000019
"DisplayName"="Intel AHCI Controller"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Parameters]
"queuePriorityEnable"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Enum]
"0"="PCI\\VEN_8086&DEV_2821&SUBSYS_B0051458&REV_02\\3&13c0b0c5&0&FA"
"Count"=dword:00000001
"NextInstance"=dword:00000001


and after hours nothing... :bon
someone can help me ?  :worship:
thanks


 
If the procedure I described in the first post of this thread does not work, you have to re-install Windows XP with AHCI mode enabled and integrate the drivers during setup.

https://forum-en.msi.com/index.php?topic=100940.0
 
Well thanks for your answer,  :)
but I am asking a question ; why some people (in this tread) having the same system like me (motheboard Msi platinium 975X powerup /Xp pro Sp2) the steps works ?  :shocking:

thanks again  :emot-tip-wink:
 
I don't know.  I worked on my system and I have the same board + OS.

Try the following content for your reg-file and see if that changes anything:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_27C1&dev_2821&cc_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor]
"Type"=dword:00000001
"Start"=dword:00000000
"Group"="SCSI miniport"
"ErrorControl"=dword:00000001
"ImagePath"="system32\\drivers\\iaStor.sys"
"tag"=dword:00000019
"DisplayName"="Intel AHCI Controller"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Parameters]
"queuePriorityEnable"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Enum]
"0"="PCI\\VEN_8086&DEV_27C1&SUBSYS_72461462&REV_02\\3&2411E6FE&0&FS"
"Count"=dword:00000001
"NextInstance"=dword:00000001
 
Re-hi,

Forget my last question, now it's working fine  :agrees: ,
-I just changed the sata connection for the boot hardDisk (to the blue one under Msi platinium powerup).

when I reboot all is ok, nothing different, intel Matrix storage works :) .

-strange thing, the boot hard drive in materiel propreties it's writing "Sata maxtor 7 scsi disk device"
but this hard disk is not "scsi"..?

anyway thanks again  :yes:


 
I just changed the sata connection for the boot hardDisk (to the blue one under Msi platinium powerup).

You mean the connector that stands a little seperated from the other four? That port is hosted by the JMicron Controller, not by Intel ICH7DH...

That also explains why it is listed as a SCSI Device:

http://www.jmicron.com/Driver.htm

Click on "FAQ" and you will find this info:

JMB driver base on Windows SCSI mini port driver architecture , if any device attach on JMB controller will be an SCSI device.

So after all, what you did there may have worked, but it has nothing to do with the procedure.

 
yes this connector  :shocked:

I really dont know why this procedure dont work with me, I did all the steps many time,  lot of people having this Mb and it works good
:wall:

-my xppro is up to date and very stable.

is there any other solutions ?
tnks
 
is there any other solutions ?

Actually, re-installing Windows with AHCI mode enabled in BIOS IS the standard procedure.  The steps decribed here are meant to provide an alternative that works in many (but unfortunately not in all) cases.  There is not much you can do but to reinstall XP and integrate the ICH7DH AHCI drivers during Setup. 

 
Just for fun I tried to switch from IDE to AHCI mode using this method on the rig in my sig (P35 chipset).
I followed the guide to the letter but blue screen anyway. Has anyone successfully used this method on a
P35 chipset?
 
wonderwrench said:
Just for fun I tried to switch from IDE to AHCI mode using this method on the rig in my sig (P35 chipset).
I followed the guide to the letter but blue screen anyway. Has anyone successfully used this method on a
P35 chipset?

Yes and P965, I wish hadn't on the P35 though :wall: Hard disk is slower now........

Yes is NCQ hard drive..... win some and lose some

On P965, it's great...........

Will be doing a re-install on P35 and see if F6 option is any better.....
 
Status
Not open for further replies.
Back
Top