Checking if initrd has the correct modules installed

Written by James McDonald

February 9, 2011

# mkinitrd /boot/initrd-2.6.18-194.el5.img `uname -r` -f

# command to include a module
mkinitrd -v -f /boot/initrd-`uname -r`.img `uname -r` --preload=scsi_dh_rdac
# -f /boot/initrd-`uname -r`.img is the new initrd you are creating and -f says to overwrite if it exists.
# `uname -r` means create an initrd to suit the currently running kernel

# command to check if initrd has a specific module
zcat initrd-2.6.18-194.el5.img | cpio -it| grep -i scsi_dh_rdac


Submit a Comment

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

You May Also Like…

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...

PC Build

I recently built myself a PC using the SilverStone SG13 Case. I am planning to use it as a Hot Spare. So any client...