Unable to boot into Centos 6.3 installation after grub corruption
Dear Friends,
I had a laptop installed with Centos6.3, Windows 7. Eventually this laptop had some graphic card issues and became unusable. However, the HDD containing the said OSes is intact.
A few months later while trying use this HDD on another laptop, I had trouble booting due to, corrupted grub, which used to say "kernel must be loaded first".
Later trying to recover the grub using live CDs, lead nowhere and I realised that the initramfs and vmlinuz files are not found to be anywhere in /boot or / and totally missing.
Tried booting from a Centos 6.3 installation DVD, in rescue mode and able to mount the drive and chroot to the Centos 6.3 installation.
But running dracut in order to rebuild initramfs...
"mount --bind /proc /mnt/sysimage/proc
mount --bind /dev /mnt/sysimage/dev
mount --bind /sys /mnt/sysimage/sys
chroot /mnt/sysimage
dracut -f"
produces the following error:
find: lib/modules/2.6.32-279.el6.i686': no such file or directory
find: lib/modules/2.6.32-279.el6.i686': no such file or directory
find: lib/modules/2.6.32-279.el6.i686': no such file or directory
find: lib/modules/2.6.32-279.el6.i686': no such file or directory
find: lib/modules/2.6.32-279.el6.i686': no such file or directory
Is there any way I can make this disk bootable?
How to generate the initramfs and vmlinuz files?
Since this installation was updated several times, I am really not sure what was the last kernel version, but it was one of the centosplus kernels, trying to remember.
I would highly appreciate your help.
Thanks and warm regards
|