• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

Recovering /boot directory

I am using Red Hat Linux 7.0 .

While booting, an error "/boot/kernel.h" is not found" is coming.

I found that /boot has been deleted.  

Can anyone suggest me how to overcome this problem without installing Linux again.


Very Urgent.

Thank u.
0
anjala
Asked:
anjala
1 Solution
 
dorwardCommented:
Not entirely sure but I would try using a boot disk then rebuilding the kernel (or upgrading to the the latest version).
0
 
xberryCommented:
Hi anjala,

first see if you have a boot disk available, maybe you did create one during installation.
Then boot to runlevel 3 with ' linux 3 ' & firt check your disk with ' e2fsck -p <your disk device>.
If some inodes were deleted then that could be a reason why your /boot directory can't be found
any londer. The option -p repaires any damages.
If it doesn't help but / filesystem still exists then you have to create your /boot new & copy standard
kernel header files, kernel & boot images from your installation CD/medium back to /boot.
Don't forget to rerun lilo afterwards with '/sbin/lilo'.

If you don't have a boot disk then use your
installation CD & start it in rescue mode. Then mount your filesystem & repeat steps as
recomended above. Working in rescue mode might not be so comfortable to you
though, so try to get a bootdisk with LILO & kernel on it. There are many
bootdisk images available on the internet.

0
 
anjalaAuthor Commented:
thanks a lot ! ! 1
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now