moduled.dep no such file or directory

FATAL: Could not load /lib/modules/2.6.32-358.18.1.el6.x86_64/modules/moduled.dep: no such file or directory

I had trouble while installing RHEL 6 on my virtual machine. After installation of RHEL 6 I got error Could not load/lib/modules/2.6.32-358.18.1.el6.x86_64/modules/moduled.dep: no such file or directory.

Fix :

1. Go to the rescue mode.

2. Run following command:

#chroot /mnt/sysimage

3. run following command

#depmod -a

4. Reboot your machine and enjoy :)

}