Adding AHCI support to initrd after installation

Issues related to hardware problems
Post Reply
ocgltd
Posts: 10
Joined: 2010/03/21 20:34:16

Adding AHCI support to initrd after installation

Post by ocgltd » 2016/03/26 23:53:08

I built a complete CentOS7 system with lots of tools, preferences, etc in a VMware guest. Once working fine I moved it to my physical server. I managed to get grub2 installed and the bootloader now starts but drops into dracut shell.

I traced the problem down to AHCI. If I disable AHCI in the BIOS then the system boots into CentOS7. Can someone tell me how to add AHCI into the initrd on a running CentOS7 system? (So I can re-enable AHCI in the BIOS) I tried dracut --add-drive ahci and now I see:

lsinitrd /boot/initramfs-3.10.0-327.10.1.el7.x86_64.img | grep ahci
-rw-r--r-- 1 root root 63309 Feb 16 12:44 usr/lib/modules/3.10.0-327.10.1.el7.x86_64/kernel/drivers/ata/ahci.ko
-rw-r--r-- 1 root root 53813 Feb 16 12:44 usr/lib/modules/3.10.0-327.10.1.el7.x86_64/kernel/drivers/ata/libahci.ko

But it still won't boot with AHCI enabled in the BIOS

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Adding AHCI support to initrd after installation

Post by TrevorH » 2016/03/27 01:44:29

Your best bet is to build the new initramfs on the machine itself and let dracut do all the autodetection. You can do that by booting the install DVD in rescue mode and chrooting to /mnt/sysimage before you run dracut.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ocgltd
Posts: 10
Joined: 2010/03/21 20:34:16

Re: Adding AHCI support to initrd after installation

Post by ocgltd » 2016/03/27 03:51:09

I endded up using the --add-driver parameter on dracut to force the AHCI driver in, and then things started to work. T
Thanks!

Post Reply