how to re-create initrd image in RHE 6 /Centos 6 servers

14 viewsLinux
0

initrd image having the system  drivers loading to initialize the hardware’s. Initrd image got corrupted and unable to  boot the server. How to re-create initrd image and boot up the server?

Initrd is available in /boot FS with initramfs-`uname -r`.img

Rebuild the initramfs for the current kernel version:

# dracut -f -v
kernel version different to the initrd you are building

# dracut -f /boot/initramfs-2.6.32-220.7.1.el6.x86_64.img 2.6.32-220.7.1.el6.x86_64

Edited question