Difference between revisions of "AHCI"

From ArchWiki
Jump to navigation Jump to search
(Created page with 'Advanced Host Controller Interface ([http://en.wikipedia.org/wiki/AHCI AHCI]) is the '''native''' work mode for SATA drives. It's been in the Linux kernel since version 2.6.19. E...')
 
Line 3: Line 3:
 
SATA drives are usually configured as '''legacy''' Parallel ATA by the BIOS and the OS. Follow these two steps to enable AHCI:
 
SATA drives are usually configured as '''legacy''' Parallel ATA by the BIOS and the OS. Follow these two steps to enable AHCI:
  
==== Edit mkinitcpio.conf ====
+
==== Add the AHCI module to the kernel image ====
First we have to add the AHCI module to the kernel image. We do this by editing /etc/mkinitcpio.conf and adding ahci to the MODULES array:
+
We do this by editing /etc/mkinitcpio.conf and adding ahci to the MODULES array:
  
 
<code>
 
<code>
 
MODULES="ahci"
 
MODULES="ahci"
 
</code>
 
</code>
 +
 +
Then we rebuild the kernel image, so that it includes our module:
 +
 +
<code>
 +
mkinitcpio -p kernel26
 +
</code>
 +
 +
==== Configure from BIOS ====
 +
This depends from one motherboard to another. Enter the BIOS and search for something like:
 +
 +
<code>Enable SATA as: IDE/AHCI</code>
 +
 +
or:
 +
 +
<code>SATA: PATA Emulation/Native/Enhanced</code>
 +
 +
Choose AHCI or Native, save your settings and exit the BIOS. Consult your motherboard manual if you don't know which of the modes is AHCI since the naming can vary.

Revision as of 00:24, 2 March 2009

Advanced Host Controller Interface (AHCI) is the native work mode for SATA drives. It's been in the Linux kernel since version 2.6.19. Enabling AHCI has two main benefits: support for hot pluggable SATA drives (just like USB) and Native Command Queuing (NCQ).

SATA drives are usually configured as legacy Parallel ATA by the BIOS and the OS. Follow these two steps to enable AHCI:

Add the AHCI module to the kernel image

We do this by editing /etc/mkinitcpio.conf and adding ahci to the MODULES array:

MODULES="ahci"

Then we rebuild the kernel image, so that it includes our module:

mkinitcpio -p kernel26

Configure from BIOS

This depends from one motherboard to another. Enter the BIOS and search for something like:

Enable SATA as: IDE/AHCI

or:

SATA: PATA Emulation/Native/Enhanced

Choose AHCI or Native, save your settings and exit the BIOS. Consult your motherboard manual if you don't know which of the modes is AHCI since the naming can vary.