Pages

Wednesday, June 1, 2011

Switching Windows 7 Build to use AHCI

This is a common problem but I figured I reference in order to switch a Windows 7 image from using the PCI IDE Controller driver to using AHCI boot driver.

If your image, (Ghost or otherwise) boots and starts windows loading then reboots. That or it may come up with the blue screen error code 0×0000007B. Which one it comes up with depends on if the BIOS is set to AHCI drives or SATA.

This can be caused by incorrect Hal but it may be be the Driver. If you have the original machine you pulled the image from make this change to the AHCI change in the registry.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci]
“Start”=dword:00000000



HOW TO: Switch to AHCI boot driver in Windows 7 after install

Then repull that image and push to the hardware before that had issues loading it.

Details
In my case a Windows 7 Ghost image made for a Dell GX620 would boot when cloned to a GX760. I deployed the image to a VMware VM with an IDE drive, made the registry change listed above, pulled a image of it and deployed it to the GX760 which now boots correctly but needed additional drivers.

Modifying the Registry on the machone already imaged.
I'm not sure if this works but I worked out from this link that it may be possiable to simply use the recovery console to load the registry hive on the not booting drive.


  • Using Recovery Console get the a Command Line Prompt
  • Open the registry editor: regedit
    • Note: This loads the registry editor with a temporary registry, not the windows registry from the hard disk.
  • Select HKEY_LOCAL_MACHINE in the registry tree, and go to the File menu and choose "Load Hive"
  • Open the registry hive file SOFTWARE from the location: C:\Windows\System32\Config
    • Give it a random name different to any of the existing names (the name doesn't matter).
  • Make the necessary changes to the registry hive.
  • Select the registry hive you edited, go to File, and choose "Unload Hive".
  • Then exit the recovery console and restart. The registry should have been changed.


2 comments:

  1. Thank you very very much. This works, and I was able to fix a AHCI issue in Win7 following your method. THANKS !!

    ReplyDelete
  2. Thanks for sharing this. I have an image created from an Optiplex 760 running in AHCI mode that I have to get working on a ton of Optiplex 745s and GX620s, all of which don't support AHCI. This just saved me a lot of work.

    Thanks again!

    ReplyDelete

Please leave a comment; someone, anyone!