Adding AHCI support to initrd after installation

Issues related to hardware problems
Post Reply
ocgltd
Posts: 8
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
Forum Moderator
Posts: 27147
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.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

ocgltd
Posts: 8
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

Return to “CentOS 7 - Hardware Support”