How to install RAID drivers on already installed Windows 7?

Change the BIOS back to IDE Enhanced so Windows can boot.

In the Windows\System32\Drivers folder is a file called iaStorV.sys installed by OS by default.

Into the registry we go.

Navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\iaStorV

Change REG_DWORD "Start" from 3 to 0

Reboot

Go into the BIOS and change Sata Configured To to RAID

Windows should boot as normal, no lockups or BSODs and you should see it installing Device Drivers followed by Device Installed Successfully.

I tested it prior to installing the Intel Storage Matrix v8.7.0.1007 (current as @ 18/2/09) and it worked fine.

I installed the Intel Storage Matrix software anyway to gain access to the Storage Console component and on reboot it worked just as good.

Long story short, ICH10R with Windows 7 required the modification of a single digit to enable RAID functionality right out of the box. No reg. keys, no copy/pastes, no prayers.

Anyway I think that wraps it up, try at your own risk and always backup first.

Source: http://forums.overclockers.co.uk/showpost.php?s=69448c6b35756aeb127dd4559ce9b431&p=13940673&postcount=3


From How to enable AHCI/RAID mode without reinstalling windows (P35/ICH9/ICH9R) as suggested by Walt:


Wanting to add a RAID array to an existing system configured with an IDE mode boot drive, the poster found that once the BIOS was changed to RAID, the system started in safe mode.

To get around this, they switched the BIOS back to IDE, booted windows, went into the registry editor, navigated to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStorV and changed the REG_DWORD Start from 3 to 0 before rebooting and configuring RAID in the BIOS again.


Note, as always, I would highly recommend doing a full disk backup of your system before trying this, and at the very least back up your registry before editing it.


Further information

As suggested by tanantish this is also documented in the Microsoft Knowledgebase article Error message occurs after you change the SATA mode of the boot drive (KB922976)

Let me fix it myself

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: * 322756 How to back up and restore the registry in Windows

To resolve this issue yourself, enable the AHCI driver in the registry before you change the SATA mode of the boot drive. To do this, follow these steps:

  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 Control dialog box, click Continue.
  4. Locate and then click one of the following registry subkeys:
    • HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci
    • HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\IastorV
  5. In the pane on the right side, right-click Start in the Name column, and then click Modify.
  6. In the Value data box, type 0, and then click OK.
  7. On the File menu, click Exit to close Registry Editor.

In addition, answers to the question Changing from RAID to AHCI on the Microsoft community forum suggest that other registry keys might need to be modified as well or instead of these, depending on your hardware. Possibilities include:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\atapi
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\nvstor
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\nvraid
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\amdsata 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\iastor 

For those of you (like me) who have an AMD system with an SB8xx or SB9xx controller (and possibly other models as well), try this guide: http://www.wikihow.com/Enable-RAID-or-AHCI-without-Reinstalling-Windows-(for-AMD-SB85-or-SB8XX-Controllers)

This process worked for me. I have a MSI 990FXA-GD80 with an AMD CPU running Windows 7 64-bit.

The guide is pretty detailed, so I will only summarize it here.

  1. Set your BIOS to AHCI or RAID mode (whichever will be your final selection).

  2. Boot into linux (a live CD is sufficient) and run the command lspci -vvnn. This lists all PCI devices. Find your RAID controller and write down the vendor ID (4 digits), device ID (4 digits), and subsystem ID (8 digits with a colon). I found this list of PCI vendor IDs informative: http://www.pcidatabase.com/vendors.php?sort=id.

  3. Change the BIOS back to IDE mode.

  4. In Windows, copy your RAID driver (probably named ahcix64s.sys) to C:\Windows\System32\drivers.

  5. Import the registry information below (create a text file with the .reg extension). Be sure to set the vendor ID, device ID, and subsystem ID.

  6. Set your BIOS to AHCI/RAID mode.

Registry information:


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1002&dev_4393&cc_0104]
"ClassGUID"="{4d36e97b-e325-11ce-bfc1-08002be10318}"
"Service"="ahcix64s"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ahcix64s]
"Type"=dword:00000001
"Start"=dword:00000000
"ErrorControl"=dword:00000001
"Tag"=dword:00000001
"ImagePath"="system32\\drivers\\ahcix64s.sys"
"Group"="SCSI Storport"
"DisplayName"="AMD AHCI Compatible RAID Controller"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ahcix64s\Parameters]
"BusType"=dword:00000008
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ahcix64s\Parameters\PnpInterface]
"5"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ahcix64s\Settings]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ahcix64s\Settings\CAM]
"EnableALPEDisableHotplug"=dword:00000000
"EnableCCC"=dword:00000000
"CCCTimeoutValue"=dword:0000000a
"CCCCompletionValue"=dword:00000020
"NCQEnableDiskIDBits"=dword:ffffffff
"EnableHIPM"=dword:00000000
"EnableDIPM"=dword:00000000
"EnableHDDParking"=dword:00000001
"CAMTimeOutValue"=dword:00000005
"EnableAN"=dword:00000001
"EnableAPS"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ahcix64s\Enum]
"0"="PCI\\VEN_1002&DEV_4393&SUBSYS_43931849\\3&13c0b0c5&0&FA"
"Count"=dword:00000001
"NextInstance"=dword:00000001

How to convert an existing Windows 7 installation from IDE to RAID

I have successfully converted a pre-existing Windows 7 IDE installation to a RAID 0 configuration. It was actually not that difficult. I read hundreds of posts on multiple forums and was never able to find a solution, so I figured it out myself. Below are the steps to accomplish the task. Note: If your current OS hard drive will be used in the RAID array, you must first clone your operating system partition to a hard drive that will not be used in the RAID array.

  1. Prerequisites: You must have the hard drives you will be using in your RAID, a different hard drive with your current Windows 7 installation, and an external hard drive for an OS image (DVDs or Blu-Rays would work, but much more time consuming).

  2. In the Windows start menu search box type "regedit" (without the quotes) then right click the entry and click "Run as Administrator" then enter your user credentials for the UAC prompt then click yes to open regedit.

  3. In regedit navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci, in the right pane right click "start" then click "modify"

  4. In the window that opens change the hexadecimal value to "0" and click OK. Close regedit click "File" at the top left and click "Exit".

  5. Restart your computer. Enter the BIOS and change your SATA configuration to AHCI. Save settings and exit BIOS.

  6. When the computer boots up, Windows 7 will install the AHCI drivers automatically. A prompt will tell you that your computer needs to restart.

  7. Restart your computer. After booting up you should receive no hardware installation prompts. If you do, restart again.

  8. Once there are no hardware installation prompts or restart notifications. Shut down your computer.

  9. Most motherboards and RAID cards have an option to run specific SATA ports as IDE in RAID mode.

  10. Verify/Connect your hard drive to a SATA RAID port that supports IDE (refer to your BIOS or motherboard manual to determine port, on my board it was SATA 5 & 6).

  11. Power on your system, enter the BIOS, and change SATA operation to RAID, but change the mode to IDE (RAID is turned on, but will be running in IDE mode on the specified ports). Save BIOS settings and exit.

  12. Boot into Windows 7 and you should be prompted to restart. Restart your computer.

  13. You should now have a RAID controller that requires drivers. Install your RAID drivers. Restart computer.

  14. Verify that your computer boots up and all hardware is installed and there are no prompts to restart. If asked to restart again, restart computer.

  15. Check the device manager and verify that everything is installed properly and functioning. Shut down the computer.

  16. Connect your OS hard drive to a different SATA port not assigned to the RAID. Connect the hard drives you want to use in the RAID to the proper SATA ports (I set up a RAID 0 with two identical 1 terabyte drives on SATA ports 5 & 6).

  17. Power on computer and enter the BIOS. Go to SATA operation and change the mode from IDE to RAID (Should now have RAID enabled and mode set to RAID). Save changes and exit BIOS.

  18. During boot up, press the key combination to enter the RAID configuration utility (mine was Ctrl-F). Create your RAID. Save changes and exit.

  19. Boot up to Windows and, using Windows Disk Management (right click Computer and choose Manage, then click Disk Management), initialize the drive and partition/format if desired/required.

  20. If the OS or RAID drives contain multiple partitions, go to the next step. If cloning drive follow this step and skip the next step. Using your favorite image creating software (I use Acronis or Ghost), clone the OS drive to the RAID drive. This can be tricky if there are multiple partitions on the OS drive or the RAID drive. If the OS drive and RAID drive both utilize a single partition, cloning is the best option. After cloning drive, reboot computer.

  21. Skip this step if you cloned the OS drive to the RAID drive. Using your favorite image creating software (I use Acronis or Ghost), create an image of your Windows 7 partition and restore the image to the desired partition on your newly created RAID. Reboot computer.

  22. Enter your system BIOS and change your hard drive boot priority to start with your RAID drive. Save changes and exit BIOS.

  23. Boot in to Windows and verify that the RAID drive is now your C:\ drive. Using Windows Disk Management, re-partition/format original OS drive, or if no longer needed in system, shut down computer and disconnect original OS drive.

  24. If all went well, you should now be running Windows 7 on your newly created RAID drive and your original OS drive is either blank and available as a backup/storage drive or no longer installed in the computer.


I found a really tricky way to install Raid drivers into a already Windows 7 system with AHCI as default settings. Firstly have a spare hard drive that you will use to install a fresh copy of Windows 7 on it (but with RAID option set in the BIOS important!). Disconnect your main Windows 7 from your system before to install a fresh copy of Windows 7 on the spare hard drive. Now that you have done your fresh installation. Reconnect your main Windows 7 and let the RAID option set in the BIOS. Reboot your machine but force jump into BIOS to select which drive your main Windows 7 is on and choose to boot it now! Windows 7 will look for missing drivers (raid) and find those into your fresh install and finally install those (instead of getting BSOD) from your fresh install. Cannot be easier than that :)