How To Enable Ahci For Mac

broken image


How
  1. How To Enable Ahci For Mac
  2. How To Enable Ahci For Mac Computer

How to enable ahci mode for sata in bios without reinstalling windows. Of course, come in f10 setup. Problems can set to ahci for drivers support for the system. Fail to compatibility issue after installation ahci in f10 setup. Inacessible boot device, windows 10 pro when in ahci mode on a asus p6t se motherboard. SATA AHCI, Microsoft Community. Jun 09, 2011 On the Start menu, select Control Panel. Mac os x mountain lion iso direct download. Double-click 'System' from the Classic View (or the small or large icon view in Microsoft Windows 7). Select 'Device Manager' in the left pane. Mount and blade gekokujo guide. Swf extractor. Aug 28, 2015 I am running windows 10 on macbook pro early 2011. I used BOOTICE as described in the link below to enable AHCI mode for SSD drive. Tutorial: Enable SATA AHCI Mode in Windows 7,8,8.1 10 MacRumors Forums My problem now is the computer cannot wake up from sleep. How can I undo the changes made. Reboot again and Windows 10 will automatically start with AHCI drivers enabled. Whenever you want to switch back to RAID again, just try the same process above to enable RAID mode. It is important you should first boot into Safe Mode after changing the SATA mode in the BIOS. Apple added a command called trimforce in OS X 10.10.4, allowing Mac owners using third party SSDs to enable TRIM. Open a new Terminal window. You can do this by simply searching 'terminal' in Spotlight or heading to 'Applications - Utilities - Terminal.'. With Terminal open, run the following command and hit Return.

My configuration:
single internal hard drive in iMac with a single NTFS partition. This is BIOS identifier (hd0,1). In linux, this will be SATA device /dev/sda. The SATA controller is from ICH8M and has PCI identifier 8086:2828. Please change these references to your system configuration.
Don't worry, I still have OS X on an external FW800 drive but that's not relevant here.
First of all, I tried loading Windows 7 on my Intel Mac and then came to a few conclusions:
  • BIOS mode boot has the negative side-effect that it disables AHCI mode in the SATA controller. This leads to degraded performance of hard drive access.
  • EFI mode boot of Windows 7 requires EFI 2.0 which isn't included in the firmware.
  • Macs don't like to boot from external devices. Windows doesn't like to be installed on external drives.
So I swapped my OS X drive with Windows drive in the process of undusting my iMac. It now can boot both OSes.
This post is all about getting the SATA controller back into AHCI mode after the compatibility layer in the intel Mac changed it. AHCI gives NCQ and might be somewhat faster so I really wanted to try that after my younger brother nagged me about it during our dayly Mac-vs-PC argues.
I can talk about what I did wrong during those attempts but I will try to keep it short:
  • Start regedit and locate the following key: HKLMSystemCurrentControlSetServicesmsahci
    Change the 'Start' value to '0'. This will make Windows attempt to load the AHCI driver stack when it boots.
  • Download a Linux live-CD with GRUB 1.98. (others might indicate 0.xx as grub and 1.xx as grub2). I decided on the latest Ubuntu live-CD. Older versions just won't do unless you want ugly patches. You want to have the setpci grub module.
  • Download the 'Rapid Storage Technology' manager software (includes the driver) and the 'RST Driver Files for F6 Install' from the Intel website.
    In my case the latest version for x64 Windows was iata96enu.exe and f6flpy96x64.zip
    The manager software will not install yet but you have to install at least the driver by unpacking it and force a device installation:
    Go to Device Manager, select Serial ATA Storage Controller, Update driver software, Browse, Pick from list, Have disk, Ignore the warning. This should be ok since the next time you'll boot Windows, the device will be different anyway.
  • Boot the Linux CD :-)
    Hold option key when booting the Mac to see it as a boot option. Load the System until you can start a terminal. Get root access:
    sudo -i
  • Because it booted from CD, it doesn't know much about the hard drive. Therefore create a device map file that maps (hd0) to /dev/sda.
    vi /boot/grub/device.map
    i(hd0)[tab]/dev/sda[esc]:wq
    If you know some linux, you know what I mean.
  • Mount your Windows partition in Linux.
    mkdir /mnt/win
    ntfs-3g /dev/sda1 /mnt/win
  • Install grub to the MBR and copy the data files too.
    grub-install --no-floppy --modules=ntfs --root-directory=/mnt/win /dev/sda
    This should report no error.
  • If you already had a Boot directory on your Windows partition (most likely), you'll now have two boot directories (-.-); Fix it by moving the contents.
    mv /mnt/win/boot/grub /mnt/win/Boot

    rmdir /mnt/win/boot
  • reboot
    reboot (duh)
  • At the grub prompt you should now be able to try some commands.
    lspci
    setpci -d 8086:2828 90.b=40
    lspci (should now show 2829 instead of 2828)
    root (hd0,1)
    chainloader +1
    boot
  • If Windows now boots, it should be in AHCI mode and hopefully go ask for the drivers.
    You can install the RST manager or just check the Device Manager to see if it's working as intended.
  • You can create a C:Bootgrubgrub.cfg file to automate the booting process. (Note: 'Manual editing of /boot/grub/grub.cfg is not encouraged')
    set timeout=10
    set default=0
    menuentry 'Windows 7 with AHCI' {
    setpci -d 8086:2828 90.b=40
    set root=(hd0,1)
    chainloader +1
    }
  • PS: If somehow Windows booting was not working in the first place or you don't want any of this anymore, you can use the Windows 7 DVD. Some recovery commands you then can use:
    bootrec /FixBoot

    bootrec /RebuildBcd

    bootrec /FixMbr
    (should erase grub again but I don't know why you would want that)
I this I have all my notes into this post and hope that besides me remembering how to do it, also will help you and other Mac fans :P

How To Enable Ahci For Mac

06-17-2009, 09:02 AM
Cheetah
Location: Monticello, MN, USA

How To Enable Ahci For Mac Computer

HOW TO: Boot Mac Pro in AHCI mode under Vista and XP to use all 6 SATA ports
I have originally made this post on the InsanelyMac forums but I feel that it may be better suited on this site where everyone seems to be more welcoming and just more helpful in general.
I have made some updates to this post to include some extra information compared to the IM post.
The following will enable you to use all 6 SATA ports on the Mac Pro (original and Early 2008 for sure)
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.
There are currently two methods to enable this support.
The newer method created by johnsock where he created a script to run under OSX to modify the MBR of the disks that have Vista, XP or Windows 7 installed on them.
-----------------------------------------------------------------------------------------
Here is a quick how to for his script.
He does still consider his script to be a beta and that while it does have an auto-detect feature for the OS you are attempting to install it on, there is no guarantee that it will function and that you assume all risk if it doesn't work properly.
Vista 32/64 Windows 7 32/64
- Run Regedit
- Navigate to 'HKLMSystemCurrentControlSetServicesmsahci '
- 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.
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.
Now 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.
-------------------------------------------------------------------------------------------------------------
Here is the second approach and this is known to work well.
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 'HKLMSystemCurrentControlSetServicesmsahci '
- 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
- This will tell GRUB to ignore the built in device map of grub and that you will define a new one.
- 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.
- 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
- This tells grub where to obtain the stage1, stage2, menu.lst files from
- installs grub bootloader to MBR of first hard drive in system
- it will echo if the installation has succeeded or had errors
- to quit grub
- 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.
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.
The 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.
The attachment 'ahci.zip' contains the script by johnsock to modify the MBR.
Attached Images
Disk_4.jpg (357.1 KB, 559 views)
AHCI_in_vista.JPG (135.7 KB, 547 views)
Attached Files
boot.zip (55.8 KB, 202 views)
ahci.zip (1.9 KB, 463 views)
REAL Mac Pro - OC 3.1Ghz -2x 2.8GHz -XFX 5770 1GB / 8800GT- 10GB RAM -1.55TB - 2 SATA Optical - Lion / Snow Leo / Windows 7 x64 / in AHCI Mode
Toshiba X205-SLI6 17' Dual 8600M GT 256MB SLI, 400GB -
Win7 x64 / Lion vanilla / Snow Leo Vanilla - Full QE/CI - WiFi Dell 1390 (pin 20 removed) - ALC268 VoodooHDA - working fingerprint reader, Bluetooth well everything but display brightness changing.
Dell poweredge T110 2.8ghz 8 core xeon server 8gb ram




broken image