[FrontPage] [TitleIndex] [WordIndex

This is a read-only archived version of wiki.centos.org

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).

1. 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.

2. 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 7 and multipathed root ('/') issue the following before chroot-ing to '/mnt/sysimage':

mount --bind /run /mnt/sysimage/run
systemctl start multipathd.service

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.


2023-09-11 07:23