• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • 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
 
auther_binCommented:
 Oh, my god! I really can't think it out, HOW IT BE DELETED! The directory "/boot" is the most important directory in all the system, so you'd better give it a better care. And, If this directory has been deleted all :( nothing can do by lilo, the system can't boot at all. if only the kernel.h has been deleted by a mistake, you can copy from another machine to you box, And if you can't find the anther machin, just use the RedHat cd-r to make a linux boot disk, by which boot your machine up, and then find the kernel.h in /usr/src/linux directory or it's sub directory. cp to /boot. And try again. Oh, maybe I think the boot floppy disk should have the file "kernel.h" in it's "/boot" directory, just copy the one is more better.

Just try it, and good luck!

:)
0
 
garbouaCommented:
LOL,
well if you have the CD, boot with it and tell installation that you are upgrading, It will reinstall LILO, Kernel Image and kernel hearders.  Unless you have a custom build kernel.  
Ps  try not to work on box using root login, use one of your other accounts, and you can always "su" if you need.
0
 
majorwooCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area to:
Accept garboua's answer
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
majorwoo
EE Cleanup Volunteer
0
 
SpideyModCommented:
per recommendation.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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