Jump to content

[HOWTO] Boot Macs with Intel Chipset in AHCI Win7 Vista XP Linux


  • Please log in to reply
403 replies to this topic

#81
miketan63

miketan63

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Hi johnsock,

Attached detail system report.

Disk0 have 4 partitions.
0s1 - EFI (GPT Protective Partition) - 200MB
0s2 - Leopard - 54.88GB
0s3 - XP - 56.59GB
0s4 - Unallocated - 126MB

Boot Camp (Kbd.mgr.exe) created one safe haven - Disk0s4 to hide
from frequent viruses coming only from M$ OS. He proclaimed it
Wastage Of Disk Space and allocated it for himself only. Joke , lah
mike

Hi johnsock,

Thank you for your quick reply.

I forced installed ahci.sh 3 times already following ludascrisvp
instructions - sudo -s .

Detached all USB external HDD, flash drive during installation.
Consider mine a Single HDD - Disk0 & ODD - Disk1.

Funny ahci.sh detected Disk1 ?

Maybe kbd.mgr.exe.app/?!+-% do not allow such change.

Waiting for your generous instructions.

Thanks, mike (KGB.mgr.app.exe)


.

#82
miketan63

miketan63

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Hi johnsock,

original.mbr - Invalid partition table
Error loading operating system
Missing operating system

Attached.

thanks, mike

Hi johnsock, Failed again - 19 Jun . mike

Attached Files



#83
tgulli

tgulli

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
Attached File  backup.zip   406bytes   11 downloads

Please send me the backup of your original MBR so I can take a look at it. Do you now or have you ever had any other bootloaders installed on that drive?


The only thing I had installed is refit but later removed. This did work on the MAC Pro that we have here and worked wonderfully and it was done with the same process as the iMAC.

edit*

Attached File  backup.zip   406bytes   11 downloads

I was bad and didnt select the file to upload! haha

#84
thinkhard

thinkhard

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
I did on my MacBook Pro as johnsock writed. However, I can not boot into WinXP. MBP showed me a blanking document icon with a question mark on it. What happened?
I think the script may not work fine on MBP because of the code inserted into MBR.
How to open AHCI on my MBP? My new SSD is suffering from limitation of old mode.

#85
tgulli

tgulli

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts

I did on my MacBook Pro as johnsock writed. However, I can not boot into WinXP. MBP showed me a blanking document icon with a question mark on it. What happened?
I think the script may not work fine on MBP because of the code inserted into MBR.
How to open AHCI on my MBP? My new SSD is suffering from limitation of old mode.


If im not mistaken (which i may be!) but it might have something to do with the chipset we all have? What chipset does your MBP have?

#86
thinkhard

thinkhard

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
MBP MA895, with chipset Intel PM965
ICH8M 3 Port Serial ATA Storage Controller 2828
ICH8M Ultra ATA Storage Controllers 2850

#87
graphicsmonkey

graphicsmonkey

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
Hi

I have followed the instructions and installed the intel matrix storage console in windows 7 (build 7022) and used johnsocks script in osx. however now in windows 7 i cant see any other operating system through bootcamp. but when i am in osx i can switch to windows. i have my osx installed on 2 ocz summit drives raid 0. Im pretty sure everything wnet smoothly so im not sure what is wrong.

can anyone help?

#88
dobbshead

dobbshead

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
Hi johnsock,

I tried install the intel AHCI drivers (IATA88ENU.exe) on the windows xp drive of my MacPro (1st gen 3GHz dual quad core) and then used your script, but got a brief BSOD flash and then nothing. So I restored the old MBR, and went for the "last known safe" option and all was fine again. No problems (other than the initial gut-wrenching panic) but no AHCI. :wallbash:

However, I suspect my MBR is different, as I think during defragmentation by PerfectDisk, the MBR gets changed. Or perhaps it's down to my using NTFS-3G on the mac. Anyhow, I wondered if your MBR skills might be able to help me out if I sent you my backup.mbr -- or at least confirm that my MBR is odd and that the only way to work it is to redo the MBR. If that's the case, what do you recommend? Does Apple's boot camp have it's own MBR or does it just use WinXP's stock MBR? ie can I use FIXMBR, or do I need to wipe the disk and redo the whole boot camp thing?

Another thought is that I have two physical drives for Windows, although only one has a bootable system, so the D Drive doesn't have an MBR, as it's not a bootable disk (or at least that's what I reckoned - but I've got used to being very wrong about stuff over the years). So do I in fact have a perfectly normal MBR and just need to give them both MBRs for this to work?

Thanks in advance for any light you can shed on this.

Attached Files



#89
gugucom

gugucom

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts
I have a 2006 Mac Pro which was successfully converted to AHCI mode with Johnsock's script. Thanks a lot for the good work.

I also own a MacBookPro from late 2008 with unibody case. Apple unfortunately switched from Intel to the nVidia MCP97 controller which is supporting AHCI version 1.2 according to my profiler under OS X 10.5.7. I say unfortunately because I do not find any separate AHCI driver as we do from Intel. I was wondering if that problem has been discussed here before. Search has not helped me. I'm mostly using 64-Bit Windows and have Vista Business and Win7 RC1-64 which I have tried. I can install both version thanks to the excellent Winclone program. Is anybody aware of a way to set the two internal SATA ports to AHCI mode in that laptop?

Thank you for your attention.

#90
Infrared

Infrared

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts
I'd be interested in learning more about the details of AHCI configuration. I have downloaded the Intel ESB2
documentation:

http://www.intel.com...shts/313082.htm

Any pointers to the most relevant sections would be appreciated as there are hundreds of pages in that :thumbsdown_anim:

#91
timeToy

timeToy

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
I have a MacBook Air 2.16Ghz (With the MCP79) and it seems that Johnsock's script do not work with theses, I will assume that the address to enable the AHCI is different that the one for the Intel chipset.

Anyone with this information ?

#92
johnsock

johnsock

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts

I have a MacBook Air 2.16Ghz (With the MCP79) and it seems that Johnsock's script do not work with theses, I will assume that the address to enable the AHCI is different that the one for the Intel chipset.

Anyone with this information ?



Hello all,

I apologize for not responding to many of your posts here. I've been out of the country with limited internet access and very busy with work for a while. I will try to answer all questions that I can once I get a chance to go through all the posts I've missed. I want to address this and some other questions specifically since I've had some PM's about them while I was away.

My script WILL NOT work with the nVidia MCP79 chipset since it does not use the same PCI configuration registers as the Intel ESB/ICH models. I don't know all of the systems that use this chipset, but I know the new Unibody MB/MBP models are affected, as well as the MBA apparently. Pre-unibody models have Intel chipsets and work fine, as do all Mac Pro models. I can't speak for the iMac and Mac Mini models, but I suspect that the newer ones use the MCP79 as well. Someone please confirm this for everyone here.

I have a new unibody MBP and I'm working on a solution for enabling AHCI, but I'm not having much luck so far. The main problem is that nVidia does not publish the needed documentation for their chipsets, so I have no reference material to work with. I'm sure this information is available to their licensees, but I'm not one. If anyone here has access to low level programming specifications for the MCP79 and is allowed and/or willing to share it, please PM me with the details. Any nVidia engineers here, your help would be greatly appreciated.

Also, there have been a few questions about the script not working for some people who have used the rEFIt bootloader. I have not had a chance to see if rEFIt installs it's own MBR, but it appears that this MAY be the case. I'm working this out currently and I'll update the script accordingly if this turns out to be true. If anyone can confirm or deny that rEFIt modifies the MBR, please let me know.

I've also been thinking of making a native OSX application for patching the MBR that would take the place of the script. What do you guys think? It would require a little work on the front end but would be easier for me to modify if needed down the road. Bash scripts are great, but they hurt my head.

I'm glad to see this is getting some use and I hope we can figure out how to get AHCI working on the newer systems. I'll post updates if they become available.

#93
plat

plat

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts

Hello all,

I apologize for not responding to many of your posts here. I've been out of the country with limited internet access and very busy with work for a while. I will try to answer all questions that I can once I get a chance to go through all the posts I've missed. I want to address this and some other questions specifically since I've had some PM's about them while I was away.

My script WILL NOT work with the nVidia MCP79 chipset since it does not use the same PCI configuration registers as the Intel ESB/ICH models. I don't know all of the systems that use this chipset, but I know the new Unibody MB/MBP models are affected, as well as the MBA apparently. Pre-unibody models have Intel chipsets and work fine, as do all Mac Pro models. I can't speak for the iMac and Mac Mini models, but I suspect that the newer ones use the MCP79 as well. Someone please confirm this for everyone here.

I have a new unibody MBP and I'm working on a solution for enabling AHCI, but I'm not having much luck so far. The main problem is that nVidia does not publish the needed documentation for their chipsets, so I have no reference material to work with. I'm sure this information is available to their licensees, but I'm not one. If anyone here has access to low level programming specifications for the MCP79 and is allowed and/or willing to share it, please PM me with the details. Any nVidia engineers here, your help would be greatly appreciated.

Also, there have been a few questions about the script not working for some people who have used the rEFIt bootloader. I have not had a chance to see if rEFIt installs it's own MBR, but it appears that this MAY be the case. I'm working this out currently and I'll update the script accordingly if this turns out to be true. If anyone can confirm or deny that rEFIt modifies the MBR, please let me know.

I've also been thinking of making a native OSX application for patching the MBR that would take the place of the script. What do you guys think? It would require a little work on the front end but would be easier for me to modify if needed down the road. Bash scripts are great, but they hurt my head.

I'm glad to see this is getting some use and I hope we can figure out how to get AHCI working on the newer systems. I'll post updates if they become available.


hey johnsock i'm a noob and i don't really know what i'm doing but maybe this can help :unsure: i have a 730i chipset mobo which uses the desktop version of the MCP79. i set my bios to IDE AHCI and RAID and booted a knoppix cd and use lspci to dump the PCI configuration space in each mode. does this help? can i do something else?

Attached Files



#94
ya_shin

ya_shin

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts
I tried the script method today and it apparently failed.

I own a MacPro 1.1, purchased in 2007. I installed Windows XP with Boot Camp on the same disk as OS X. When trying to update the driver it wasn't listed, so I downloaded one from Intel (S5000 something) and installation seemed to go fine.

Upon restart I booted into OS X and executed the script in Terminal. I ended up with a modified MBR, a backup.mbr (attached) and ahci.mbr (also attached). However, I can now no longer boot into Windows, even in safe mode, as it automatically reboots during the start up routine.

I then took a quick look at the two create MBR files and to my surprise the backup file actually says "Invalid partition tableError loading operating systemMissing operating system". The other file says "Bad partition tableBad OSNo OSCK" instead.

In case it help: During the procedure I was first inclined to use the actual BOOTCAMP disc number, but entering /dev/disk1s3 resulted in "Unable to read MBR". Using /dev/disk1 then created the attached files.

Confused,

Achim

Attached Files



#95
johnsock

johnsock

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts

I tried the script method today and it apparently failed.

I own a MacPro 1.1, purchased in 2007. I installed Windows XP with Boot Camp on the same disk as OS X. When trying to update the driver it wasn't listed, so I downloaded one from Intel (S5000 something) and installation seemed to go fine.

Upon restart I booted into OS X and executed the script in Terminal. I ended up with a modified MBR, a backup.mbr (attached) and ahci.mbr (also attached). However, I can now no longer boot into Windows, even in safe mode, as it automatically reboots during the start up routine.

I then took a quick look at the two create MBR files and to my surprise the backup file actually says "Invalid partition tableError loading operating systemMissing operating system". The other file says "Bad partition tableBad OSNo OSCK" instead.

In case it help: During the procedure I was first inclined to use the actual BOOTCAMP disc number, but entering /dev/disk1s3 resulted in "Unable to read MBR". Using /dev/disk1 then created the attached files.

Confused,

Achim


Achim,

You need to restore from the backup MBR and install the correct driver using the instructions posted here by ludacrisvp. Your computer is rebooting because the AHCI mode MBR is installed properly, but without the correct driver, Windows will BSOD and then automatically reboot. Making Windows work after switching from legacy to AHCI mode is tricky and involves more than just installing a driver. This is true on any Windows computer, not just Macs using this script.

The messages you see regarding partition table errors are supposed to be in the MBR. Those messages are displayed at boot time when the MBR encounters an error. The messages you see are correct.

The correct use would be /dev/disk1 rather than /dev/disk1s3 because the MBR is stored on the first sector of the disk and not associated with any particular partition.

Hope this helps


hey johnsock i'm a noob and i don't really know what i'm doing but maybe this can help ;) i have a 730i chipset mobo which uses the desktop version of the MCP79. i set my bios to IDE AHCI and RAID and booted a knoppix cd and use lspci to dump the PCI configuration space in each mode. does this help? can i do something else?


I looked at the dumps you sent and I can see that the MCP79 reports different ID's based on which mode it's in, just like the Intel chipsets. I still can't figure out how to write configuration data to the chipset, though. It's good to have someone here with an easily switchable nVidia chipset to obtain data from. I'll see what else I can think of for you to try out on your system and let you know. Thanks for the help!

#96
ya_shin

ya_shin

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts

Achim,

You need to restore from the backup MBR and install the correct driver using the instructions posted here by ludacrisvp. Your computer is rebooting because the AHCI mode MBR is installed properly, but without the correct driver, Windows will BSOD and then automatically reboot. Making Windows work after switching from legacy to AHCI mode is tricky and involves more than just installing a driver. This is true on any Windows computer, not just Macs using this script.

Thanks for the response, John. I will try again... (how o I restore the backup...? :P)

So apparently the installation of the intel driver went wrong somewhere? Maybe I used the wrong one? It didn't seem to available in the driver database within windows and on the intel website there was several choices, how to make sure I use the right one?

I understood thing sare tricky, but thought that according the instructions it was straight forward:
- install AHCI driver (correct one...; are there wrong ones?)
- run the script modifying the MBR
- install Matrix Storage program from intel
[That's also just about as far as my knowledge/courage ratio will get me. Your and ludacrisvp's description is the best (and almost only) one I could find and which appeared easy enough for my level. Willing to go beyond with guidance :hysterical:]

Achim

#97
plat

plat

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts

Achim,

You need to restore from the backup MBR and install the correct driver using the instructions posted here by ludacrisvp. Your computer is rebooting because the AHCI mode MBR is installed properly, but without the correct driver, Windows will BSOD and then automatically reboot. Making Windows work after switching from legacy to AHCI mode is tricky and involves more than just installing a driver. This is true on any Windows computer, not just Macs using this script.

The messages you see regarding partition table errors are supposed to be in the MBR. Those messages are displayed at boot time when the MBR encounters an error. The messages you see are correct.

The correct use would be /dev/disk1 rather than /dev/disk1s3 because the MBR is stored on the first sector of the disk and not associated with any particular partition.

Hope this helps




I looked at the dumps you sent and I can see that the MCP79 reports different ID's based on which mode it's in, just like the Intel chipsets. I still can't figure out how to write configuration data to the chipset, though. It's good to have someone here with an easily switchable nVidia chipset to obtain data from. I'll see what else I can think of for you to try out on your system and let you know. Thanks for the help!


setpci in linux or WPCREDIT in windows can modify the PCI configuration data. maybe you can boot from USB w/o loading a IDE driver to play around with the registers.

#98
johnsock

johnsock

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts

Thanks for the response, John. I will try again... (how o I restore the backup...? :()

So apparently the installation of the intel driver went wrong somewhere? Maybe I used the wrong one? It didn't seem to available in the driver database within windows and on the intel website there was several choices, how to make sure I use the right one?

I understood thing sare tricky, but thought that according the instructions it was straight forward:
- install AHCI driver (correct one...; are there wrong ones?)
- run the script modifying the MBR
- install Matrix Storage program from intel
[That's also just about as far as my knowledge/courage ratio will get me. Your and ludacrisvp's description is the best (and almost only) one I could find and which appeared easy enough for my level. Willing to go beyond with guidance :)]

Achim


You must install the needed driver and then modify the registry setting so that Windows will re-detect your devices upon reboot. Without this step, windows will start booting with the driver in legacy mode and crash because the controller is in AHCI mode. The driver you use is included with Windows, but you have to select it manually since Windows will think that it is not an appropriate driver for your hardware. It sounds like you may have missed the registry editing step. Just restore your MBR from backup and try again.

Here's how to restore the backup:

sudo fdisk -y -u -f ./path/to/backup.mbr /dev/rdisk0

Make sure you put the proper path to the backup MBR file and use the proper disk number. Also, that command uses rdisk instead of disk for a reason.

setpci in linux or WPCREDIT in windows can modify the PCI configuration data. maybe you can boot from USB w/o loading a IDE driver to play around with the registers.


I will take a look at WPCREDIT. Thanks!

#99
ya_shin

ya_shin

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts
I was following the description for XP in the first post of the thread. The procedure jumps directly from driver installation to rebooting and script usage. I may be missing the forest for the trees but could you please mention what to change in the registry again?

I will then use your MBE restore description and try again.



As for the driver, I couldn't find an AHCI or "2681" in Windows' original database, which is why I downloaded one from intel. I had found a vague reference for the MacPro1.1 motherboard being a modified version of the S5000, that's why I used that. After unchecking that security check box I looked in the IDE/ATA section under intel, maybe
that's the wrong section?

#100
bigpunter

bigpunter

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
Hi everyone!

I found this topic through a google search many months ago. At the time, I tried the original method with basically no sucess - I'm not to hot with Linux... So I gave up on the idea and stuck with OS X.

Looked at this thread again this month and I was really going to try it again, however after seeing johnsock's script I was delighted with the ease of use. My Win 7 RC1 worked perfect with it on my drive and I have now pre-ordered my copy of Win 7 Ultimate.

Just like to say a massive thank you to ludacrisvp for kicking this off and johnsock for making it possible for someone like me to do it with my eyes closed! :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy