United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
# cp /boot/initrd-(kernel-version).img /boot/initrd-(kernel-version).img.bak # mkinitrd -f initrd-$(uname -r).img $(uname -r)For example:
cp /boot/initrd-2.4.21-27.0.2.ELsmp.img /boot/initrd-2.4.21-27.0.2.ELsmp.img.bak mkinitrd -v -f /boot/initrd-2.4.21-27.0.2.ELsmp.img 2.4.21-27.0.2.ELsmpThis example rebuilds the ramdisk for a system running the 2.4.21-27.0.2 SMP kernel. Adjust the mkinitrd command as necessary to match the kernel version running on your machine or use uname -r as shown above.
Note: This method has been known to fail with the ICH7 SATA chipset Check for Linux supported drivers prior to rebuilding it.
Note: Make a backup of the existing .img file in /boot for the current kernel if unsure of the stability or configuration of the new module before issuing the mkinitrd command:
# cp /boot/initrd-(kernel-version).img /boot/initrd-(kernel-version).img.bak
Optional: It is possible to create a separate entry in /boot/grub/grub.conf for the backup initial ramdisk image, to conveniently choose the old version at boot time without needing to restore the backup. This example configuration allows selection of either the new or old initial ramdisk image from the grub menu:
title Red Hat Enterprise Linux AS (2.4.21-27.0.2.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-27.0.2.EL ro root=LABEL=/ initrd /initrd-2.4.21-27.0.2.EL.img title Backup initrd (2.4.21-27.0.2.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-27.0.2.EL ro root=LABEL=/ initrd /initrd-2.4.21-27.0.2.EL.img.bak