[HOWTO] Boot Macs with Intel Chipset in AHCI Win7 Vista XP Linux, 6 SATA + 2 PATA for Mac Pro, faster disk access in Mac Books too |
[HOWTO] Boot Macs with Intel Chipset in AHCI Win7 Vista XP Linux, 6 SATA + 2 PATA for Mac Pro, faster disk access in Mac Books too |
|
ludacrisvp
InsanelyMac Sage
|
![]() |
Sep 15 2008, 05:35 AM Post #1
|
![]() ![]() ![]() ![]()
|
Update 06-30-10
Support has been added for the latest generation Mac Book Pro 6,2 that are running the Intel i5/i7 processor chipset. WILL NOT WORK ON 13" CORE 2 DUO MBP WITH NVIDIA CHIPSET, OR THE MAC MINI ALUMINUM This script version 1.1 is only for the i5/i7 chipsets that are used in the Mac Book Pros It may also work on the new Quad Core 27" iMacs - unable to find a tester - It may also work on the newest Mac Pros - also no tester available - Version 1.1 will not work on Mac Pro prior to 2009 Version 1.0 confirmed to work on all Mac Pros prior to 2009 should also work on Mac Book Pros prior to mid 2010 See post 137 for all details The latest version of the Intel Rapid Storage Technology and some i5 chipset drivers are available on post 137 Instructions have also been added to the beginning of the script for registry editing in Win7 and Vista ------------------------------------------------------------------------------------------------------ UPDATE: 4-29-09 Here is a newer, easier method to perform the modifications to your existing setup with a script made by johnsock, he is one of our newer members on the scene and it looks like he is off to a great start in helping those of us with real Macs to enjoy Mac hardware in Windows to its fullest. See post 44 for the detailed explanation of how he was able to do this. To just download his AHCI modification file click here It is still a work in progress but it does save a lot of work. Here is a quick how to for his script. Vista 32/64 Windows 7 32/64 - Run Regedit - Navigate to "HKLM\System\CurrentControlSet\Services\msahci" - edit the "Start" key and change the value from what it is to "0" - this will tell Vista to check for AHCI on next boot and install the AHCI driver if it is in AHCI mode - this installs the generic AHCI Microsoft driver and it is really a poor driver for your hardware and you will need the Intel ones to get full performance. For Windows XP You need to Force the installation of the AHCI mode driver over the Legacy driver --Here is how-- - Open device manager - Under IDE / ATA section open properties for the "Intel� 631xESB/6321ESB Ultra ATA Storage Controller - 2680" - Update the driver for 2680 with one labeled 2681 (ESB2 SATA AHCI Controller) - You will need to uncheck the box that limits you to only known supported drivers for your hardware - Once installed it will require a restart - Attempting to restart into XP without doing the next steps will leave you with a BSOD and instant reboot Load up Mac OS X or Linux Live CD OSX Run johnsock's script in "Terminal" under 'sudo' mode. CODE ludacrisvps-mac-pro:~ ludacrisvp$ sudo -s Password: bash-3.2# /Users/ludacrisvp/Downloads/ahci.sh AHCI Master Boot Record Patch 1.0 Type /Users/ludacrisvp/Downloads/ahci.sh -h for command line options. Scanning drives... Windows partition found on /dev/disk4 Do you want to use this drive? (Y/N)y The MBR on /dev/disk4 appears to already be modified. bash-3.2# /Users/ludacrisvp/Downloads/ahci.sh AHCI Master Boot Record Patch 1.0 Type /Users/ludacrisvp/Downloads/ahci.sh -h for command line options. Scanning drives... Windows partition found on /dev/disk4 Do you want to use this drive? (Y/N)n Enter drive to use: /dev/disk1 Backing up MBR from /dev/disk1 to ./backup.mbr MBR backup complete. Detected Windows Vista Master Boot Record. Are you ABSOLUTELY sure you want to write the modified MBR to /dev/disk1? (Y/N)y Modified MBR written to /dev/disk1 If it fails to autodetect you can follow this below to manually choose your drive. Open "Disk Utility" Find the drive that has the OS you have installed the AHCI device drivers too. Right click or Command click on the part of the drive that says how large it is and choose "Information" This will tell you what drive to use when running the script. Disk order can and does change randomly with each boot. The drive below is my Windows 7 drive and in this case it is Disk4 as you can see in the red box.
Disk_4.jpg ( 357.09K )
Number of downloads: 586Now you will want to run the full installation of the Intel Matrix Storage Drivers on any of the OSs that you have converted to AHCI mode. -------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------- OLD METHOD USING GRUB FOR LINUX INSTALLS NOT UPDATED FOR MAC BOOK PRO MID 2010 UNLESS REQUESTED --------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- Well I finally got around to figuring this out and here is how to do it. The following will enable you to use all 6 SATA ports on the Mac Pro Early 2008 It might enable AHCI on other Mac platforms, however I have none to test with. There was mention of a MacBook Pro user enabling AHCI for faster drive access in Windows on the OnMac forum. This will let you add your Blu Ray or DVD SATA drives to your Windows install without losing one of your hard drive bay Sata ports. This will increase your data transfer speeds in Windows from the 100mb speed of the legacy mode to the native 1.5gbps or 3.0gbps of your SATA drive. I give credit to pipomolo42 for figuring out that it can be done. And for the Modified Stage1 file for the GRUB boot loader. It was done on the OnMac Forums in the middle of 2007 in an attempt to enable RAID 5 in Windows. However it wasn't easy for the casual user or power user to get done with out having major headaches. Here are the links to the required files that will be needed. Download and install rEFIt from inside OS X Windows XP/Vista x86/x64 Intel Matrix Storage Manager Drivers - Direct from Intel Website Ubuntu Live 8.04.1 AMD64/EM64T Desktop Version - Download from your nearest location, make sure to choose the desktop version for the 64 bit based systems, this is a CD based version and will therefore fit on a CD-R.
boot.zip ( 55.84K )
Number of downloads: 334The attachment "boot.zip" contains the Modified Stage1, Stage2 and Menu.lst that are needed for the GRUB installation to work properly on the Mac Pro. ---------------------------------------------------------------------- There are several methods that you can use to setup your system. I will go through Vista and XP for those that are already installed. It is possible to install fresh versions of the OS by loading the install disc through grub and providing the drivers for the AHCI controller via USB for Vista or slipstreamed in XP or Vista. 1. Load Live CD - Run Partition Editor - Create a small FAT32 Partition at the beginning of the drive - I chose to make a 100mb partition and formatted it to FAT32 - This re-sized and moved my XP partition down the drive by 100mb - this took about 45 mins 2a. Reboot into XP (if using Vista skip this step and use step 2b) - Force the installation of the AHCI mode driver over the Legacy driver - Open device manager - Under IDE / ATA section open properties for the "Intel� 631xESB/6321ESB Ultra ATA Storage Controller - 2680" - Update the driver for 2680 with one labeled 2681 (ESB2 SATA AHCI Controller) - You will need to uncheck the box that limits you to only known supported drivers for your hardware - Once installed it will require a restart - Attempting to restart into XP after this will leave you with a BSOD and instant reboot, this is caused because XP is loading the AHCI driver and it is failing to load because the hardware is still in legacy mode. 2b. Vista only - Run Regedit - Navigate to "HKLM\System\CurrentControlSet\Services\msahci" - edit the "Start" key and change the value from what it is to "0" - this will tell Vista to check for AHCI on next boot and install the AHCI driver if it is in AHCI mode 3. Load the Live CD again - Copy the provided stage1, stage2, menu.lst to the following location on the 100mb partition /boot/grub/ - Time to install GRUB bootloader 4. Open Terminal - enter following commands CODE sudo grub --device-map=/dev/null - This will tell GRUB to ignore the built in device map of grub and that you will define a new one. CODE device (hd0) /dev/sda - This maps your first hard drive as the device "hd0" in grub - keep in mind that GRUB counts up from 0 - grub will echo the command to confirm it was accepted. CODE find /boot/grub/stage1 - This will echo the location of the stage1 file - ex: (hd0,2) -This would translate to hard disk 1 partition 3 for normal people - You will use the (hdX,Y) for the next step CODE root (hd0,2) - This tells grub where to obtain the stage1, stage2, menu.lst files from CODE setup (hd0) - installs grub bootloader to MBR of first hard drive in system - it will echo if the installation has succeeded or had errors CODE quit - to quit grub CODE exit - to close terminal 5. Restart and remove Live CD 6. From rEFIt Menu choose boot Linux from HD (the Penguin icon) 7. It will load Grub then show a boot menu for - Windows XP in AHCI Mode and - Windows Vista in AHCI Mode 8. Fully install the Intel drivers from the link provided above in each OS that is booting in AHCI mode for proper performance. 9. Take it from there and enjoy having 6 Sata ports that have the proper performance with NCQ enabled -------------------------------------------------------- You may need to edit the "menu.lst" file for the appropriate locations of the operating systems on your machine. On my system I am using an IDE drive for my XP install and that is also where grub is installed to. I have 4 hard drives installed 1 IDE, 3 SATA. I have 1 OS installed on each of their own physical drive. On your system you might not be using /dev/sda because that is most likely going to be your Mac OSX drive Chances are you will use /dev/sdb for the second sata bay in your case.
AHCI_working_in_vista.JPG ( 130.25K )
Number of downloads: 404
AHCI_working_in_XP.JPG ( 110.17K )
Number of downloads: 263Edit reason: Swapped this post to beginning with the 4th post to have the HOWTO be the beginning for the topic. For some reason this topic will not notify me via email about replies so if I don't respond to questions right away that is most likely the reason. I do however check back often. This post has been edited by ludacrisvp: Jun 30 2010, 06:21 AM |
ludacrisvp [HOWTO] Boot Macs with Intel Chipset in AHCI Win7 Vista XP Linux Sep 15 2008, 05:35 AM
Dynatnt1 ludacrisvp,
I downloaded your drivers and followed... Sep 29 2008, 04:16 AM
ludacrisvp QUOTE (Dynatnt1 @ Sep 28 2008, 11:16 PM) ... Sep 30 2008, 03:24 AM
ludacrisvp During my attempts to enable all 6 SATA ports insi... Oct 22 2008, 09:05 AM
snappy2 Hi ludacrisvp. I'm about to do this to my Mac ... Oct 23 2008, 06:19 PM
ludacrisvp QUOTE (snappy2 @ Oct 23 2008, 01:19 PM) H... Oct 24 2008, 03:29 AM
snappy2 Hi ludacrisvp - thanks for the informative reply a... Oct 24 2008, 01:01 PM
resipsa Snappy2
Those fat partitions are the efi partitio... Oct 25 2008, 01:20 AM
ludacrisvp QUOTE (resipsa @ Oct 24 2008, 08:20 PM) S... Oct 25 2008, 05:03 AM
resipsa Hi ludacrisvp,
First, I want to say thank you for... Oct 24 2008, 05:18 PM
ludacrisvp QUOTE Will the grub stages that you patched only w... Oct 25 2008, 08:36 PM
resipsa You did a much job at explaining it ludacrisvp.
... Oct 25 2008, 09:25 AM
Dynatnt1 Hey Ludacrisvp,
Thanks for figuring this out. I am... Oct 26 2008, 09:25 PM
ludacrisvp QUOTE (Dynatnt1 @ Oct 26 2008, 04:25 PM) ... Oct 26 2008, 10:47 PM
Dynatnt1 Oh I see. I just get worried messing with my parti... Oct 26 2008, 11:07 PM
ludacrisvp QUOTE (Dynatnt1 @ Oct 26 2008, 06:07 PM) ... Oct 27 2008, 12:20 AM
MacAddictG4 QUOTE (ludacrisvp @ Sep 15 2008, 05:35 AM... Nov 5 2008, 03:18 AM
ludacrisvp That sounds to me like you are not booting in AHCI... Nov 5 2008, 09:52 AM
MacAddictG4 Thanks for the quick reply. From post 4 I was able... Nov 5 2008, 10:31 PM
ludacrisvp The stage1 for grub gets installed into the MBR of... Nov 5 2008, 11:18 PM
MacAddictG4 Awesome, that got it! Thanks for the help.
I... Nov 6 2008, 01:57 AM
ludacrisvp Glad I could help you out.
Good luck with HD-DVD a... Nov 6 2008, 02:01 AM
Infrared Working very nicely for me, thanks
What I'm ... Nov 7 2008, 01:04 PM
dancinghenrys QUOTE (ludacrisvp @ Sep 15 2008, 05:35 AM... Dec 19 2008, 05:45 AM
ludacrisvp QUOTE (dancinghenrys @ Dec 18 2008, 11:45... Dec 27 2008, 01:06 AM
chipster21 Hi there,
first of all, sorry for my English, I... Dec 28 2008, 04:11 PM
chipster21 QUOTE (chipster21 @ Dec 28 2008, 05:11 PM... Dec 31 2008, 12:34 AM
gibbsj I'm having trouble on third step "find /b... Jan 4 2009, 09:34 PM
chipster21 QUOTE (gibbsj @ Jan 4 2009, 10:34 PM) I... Jan 5 2009, 12:59 PM
sebhag Big thanks to ludacrisvp!
Did this a couple o... Jan 7 2009, 10:17 PM
ludacrisvp Thanks, it is nice to see that I have made some pe... Jan 8 2009, 05:22 AM
sebhag Here's the drive spec:
I love it, although ... Jan 10 2009, 11:28 PM
TallCoolOne Thanks for all this info, I finally got AHCI worki... Feb 12 2009, 11:55 PM
ludacrisvp I don't actually have a Blu-Ray drive in my Ma... Feb 13 2009, 07:47 AM
TallCoolOne QUOTE (ludacrisvp @ Feb 12 2009, 11:47 PM... Feb 14 2009, 07:16 AM
macpionier Hello ludacrisvp,
I have a question that is the d... Feb 13 2009, 09:45 AM
ludacrisvp Yes, OS X uses AHCI natively.
My best guess would ... Feb 13 2009, 09:58 AM
TallCoolOne Ok so after I got all excited that it now works an... Feb 14 2009, 11:32 PM
sebhag QUOTE (TallCoolOne @ Feb 14 2009, 11:32 P... Mar 17 2009, 01:17 PM
thalar I am apparently missing something because I absolu... Apr 6 2009, 05:17 AM
johnsock I have managed to get AHCI enabled (for real, not ... Apr 20 2009, 01:26 AM
ludacrisvp @johnsock - This is a perfect place to post what y... Apr 20 2009, 02:12 AM
mchaggis Firstly, thanks a million to ludacrisvp for the OP... Apr 20 2009, 02:51 PM
johnsock I'm glad to see some interest in this. I'd... Apr 20 2009, 09:50 PM
lobster.boy Hi Guys
Thanks ever so much for sharing your conc... May 5 2009, 10:24 AM
johnsock QUOTE (lobster.boy @ May 5 2009, 05:24 AM... May 5 2009, 09:20 PM
fridgeymonster3 @ludacrisvp... So, I'm too stuck at the find /... Apr 21 2009, 04:22 AM
mchaggis johsock: yes the 09 Mac Pro does use ICH10 (http:/... Apr 21 2009, 08:12 AM
johnsock QUOTE (mchaggis @ Apr 21 2009, 03:12 AM) ... Apr 21 2009, 08:43 PM
ludacrisvp I have tested the Vista loader modified MBR for Jo... Apr 22 2009, 08:09 AM
mchaggis I got it working too, but using the 'original... Apr 22 2009, 11:14 AM
johnsock QUOTE (mchaggis @ Apr 22 2009, 06:14 AM) ... Apr 22 2009, 07:34 PM
mchaggis It seems to be working on my main disk now too. T... Apr 22 2009, 01:28 PM
johnsock
Here is a script for automating the MBR mod. It... Apr 25 2009, 10:39 PM
ludacrisvp Hey John,
The auto detect didn't work for me.... Apr 29 2009, 10:37 PM
mchaggis Sorry, I had to send my Mac Pro away for repair wi... Apr 30 2009, 07:42 AM
johnsock QUOTE (mchaggis @ Apr 30 2009, 02:42 AM) ... Apr 30 2009, 09:13 PM
ericwarren Guys,
Thanks for the help. I think this thread w... May 5 2009, 02:57 PM
nanothing Hi thanks for all the hard work, though i'm no... May 7 2009, 11:43 PM
nanothing QUOTE (nanothing @ May 7 2009, 11:43 PM) ... May 8 2009, 02:21 PM
bazilato you fix for letting vista detecting Disk in AHCI M... May 9 2009, 04:06 PM
fridgeymonster3 I just wanted to thank johnsock and ludacrisvp for... May 12 2009, 07:07 PM
ludacrisvp The only thing I can think of would be to make sur... May 12 2009, 07:13 PM
Rankrotten Big thanks to all who put this script together
... May 20 2009, 08:55 PM
kasimodem Hi all,
Found this tread and it's very intere... May 27 2009, 07:35 PM
johnsock QUOTE (kasimodem @ May 27 2009, 02:35 PM)... May 27 2009, 10:49 PM
kasimodem Thanks for answer. I understand what benefits AHCI... May 28 2009, 01:14 AM
johnsock QUOTE (kasimodem @ May 27 2009, 08:14 PM)... May 28 2009, 02:23 AM
sebhag Lot of action in this thread lately - good to see... May 31 2009, 10:34 PM
johnsock I'm glad so many people are trying out this sc... Jun 1 2009, 12:10 AM
sebhag QUOTE Let us know how it works if you try it out.
... Jun 2 2009, 07:33 PM
Infrared Nice work, johnsock.
I wonder if a similar approa... Jun 3 2009, 09:56 PM
johnsock I got a request to post the source code for the ch... Jun 7 2009, 07:50 PM
Infrared I'd be interested in learning more about the d... Aug 19 2009, 07:44 PM
miketan63 Hi ludacrisvp, Thanks for a great motivation for t... Jun 14 2009, 04:57 PM
tgulli QUOTE (miketan63 @ Jun 14 2009, 09:57 AM)... Jun 15 2009, 09:03 PM
johnsock QUOTE (tgulli @ Jun 15 2009, 04:03 PM) I ... Jun 18 2009, 03:32 AM
tgulli QUOTE (johnsock @ Jun 17 2009, 08:32 PM) ... Jun 18 2009, 02:23 PM

johnsock QUOTE (tgulli @ Jun 18 2009, 09:23 AM) It... Jun 18 2009, 07:32 PM

miketan63 Hi johnsock,
Attached detail system report.
Disk... Jun 18 2009, 08:20 PM

miketan63 Hi johnsock,
original.mbr - Invalid partition tab... Jun 18 2009, 09:36 PM

tgulli QUOTE (johnsock @ Jun 18 2009, 12:32 PM) ... Jun 19 2009, 08:54 PM
miketan63 Hi johnsock,
Thank you for replying. My hope for... Jun 18 2009, 04:32 PM
miketan63 Hi johnsock,
Unsuccessfully install AHCI - 3 Tim... Jun 17 2009, 11:34 AM
thinkhard I did on my MacBook Pro as johnsock writed. Howeve... Jun 22 2009, 09:50 AM
tgulli QUOTE (thinkhard @ Jun 22 2009, 02:50 AM)... Jun 22 2009, 01:52 PM
thinkhard MBP MA895, with chipset Intel PM965
ICH8M 3 Port S... Jun 22 2009, 04:52 PM
graphicsmonkey Hi
I have followed the instructions and installed... Jun 24 2009, 11:19 AM
dobbshead Hi johnsock,
I tried install the intel AHCI drive... Jul 8 2009, 09:00 AM
gugucom I have a 2006 Mac Pro which was successfully conve... Aug 3 2009, 04:27 PM
timeToy I have a MacBook Air 2.16Ghz (With the MCP79) and ... Aug 25 2009, 03:51 AM
johnsock QUOTE (timeToy @ Aug 24 2009, 10:51 PM) I... Aug 25 2009, 04:26 AM
plat QUOTE (johnsock @ Aug 25 2009, 12:26 AM) ... Aug 27 2009, 09:48 PM
ya_shin I tried the script method today and it apparently ... Aug 31 2009, 03:08 PM
johnsock QUOTE (ya_shin @ Aug 31 2009, 10:08 AM) I... Aug 31 2009, 03:27 PM
ya_shin QUOTE (johnsock @ Aug 31 2009, 11:27 PM) ... Aug 31 2009, 03:53 PM

johnsock QUOTE (ya_shin @ Aug 31 2009, 10:53 AM) T... Sep 1 2009, 04:01 PM
plat QUOTE (johnsock @ Aug 31 2009, 11:27 AM) ... Aug 31 2009, 08:00 PM
ya_shin I was following the description for XP in the firs... Sep 3 2009, 12:29 PM
bigpunter Hi everyone!
I found this topic through a goo... Sep 27 2009, 06:04 PM ![]() |
|
Lo-Fi Version | Time is now: 6th September 2010 - 03:24 AM |