Adding AHCI to centos initrd

Ever needed to add AHCI to a centos system after an install. A quick way to do it is just:

modprobe ahci
cp /boot/initrd-`uname -r`.img /boot/initrd-`uname -r`.img.bak
mkinitrd -f --with=ahci /boot/initrd-`uname -r`.img `uname -r`

UPDATE: on centos6 its now

modprobe ahci
cp /boot/initramfs-`uname -r`.img /boot/initramfs-`uname -r`.img.bak
mkinitrd -f --with=ahci /boot/initramfs-`uname -r`.img `uname -r`

7 thoughts on “Adding AHCI to centos initrd”

  1. Not working… modprobe load the ahci driver, detects as being used by 4 devices, no errors on mkinitrd… reboot, set AHCI in bios, locks up during boot, can’t find root, panic, death.

    1. I’d need the full boot process log to have a better idea of what is going on.

      You can always disable ahci in bios and boot up again.

Leave a Reply

Your email address will not be published. Required fields are marked *