Back again with another troubleshooting tutorial. This time we’ll deal with the initrd image file. This is the file needed during the booting to initialize the kernel. As I told you earlier that I am using scripts contained in Trouble-Maker tool. Last time it blow my network off and this time it’s playing with my initrd image. After running that script I got following screen-

Missing initrd image file in RHEL

As you can see that it’s showing file not found error. I even tried to boot into single user mode but that didn’t work because the same message appeared there too. Now the last option is to boot into rescue mode and try to recover from the shit.

I am using RHEL on Vmware and I select the booting device to CD to enter into rescue mode..You can also boot from RHEL CD if you are using RHEL as a stand-alone installation.  At the start of booting you’ll be prompt with the following screen. Type linux rescue to enter into rescue mode.

Booting into Linux Rescue Mode

Once you boot into rescue mode you’re system will be mounted on /mnt/sysimage. To enter into root environment you’ll have to issue chroot /mnt/sysimage command. So type this command.

We know that initrd file is defined at /boot/grub/grub.conf file. So I opened this file using vi /boot/grub/grub.conf command.You can’t use vim here. But here everything was ok.

Missing initrd file in RHELNow I got stuck at this point because grub.conf file was correct. Then I listed /boot to see the contents of the directory and-voila! The problem was here. The script I executed didn’t alter my grub file but it changed the name of the initrd file.

Recovering from missing initrd file in RHEL

It appended .missing to the name of initrd file and thus making it inaccessible for grub. To recover from that problem I just renamed it to its original name using mv /boot/initrd-2.6.18-128.el5.img.missing /boot/initrd-2.6.18-128.el5.img command.Now just save it quit the rescue mode using ctrl+d.Now the system started normally. So another problem is solved successfully.Let’s see next is what.

Advertisements