Link to home
Start Free TrialLog in
Avatar of anjala
anjala

asked on

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.

Avatar of auther_bin
auther_bin

 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!

:)
ASKER CERTIFIED SOLUTION
Avatar of garboua
garboua

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
per recommendation.

SpideyMod
Community Support Moderator @Experts Exchange