Creating a New Initial RAM Disk

If you have changed a motherboard or moved a disk to a different system it may fail to boot due to the lack of appropriate drivers in the initial RAM disk image (initramfs for CentOS 6, initrd for CentOS 5).

Boot in Rescue Mode

  1. Boot from a CentOS installation disc (for example, CD #1 or DVD).
  2. Type "linux rescue" at the "boot:" prompt.

  3. Mount all filesystems in read-write mode.

Create the New Initramfs or Initrd

Change root to real root ('/') on your hard disk and make the new initramfs or initrd.

mount --bind /proc /mnt/sysimage/proc
mount --bind /dev /mnt/sysimage/dev
mount --bind /sys /mnt/sysimage/sys
chroot /mnt/sysimage

For CentOS 6:

For CentOS 5:

Reboot

cd /
sync
telinit 6


This page was created by PhilSchaffner. Other Wiki contributors are invited to make corrections, additions, or modifications.

The page was inspired by this forum thread. Please see the thread for additional discussion.

TipsAndTricks/CreateNewInitrd (last edited 2014-04-25 14:27:47 by AnssiJohansson)