Solved

Recovering /boot directory

Posted on 2001-07-12
3
174 Views
Last Modified: 2013-12-15
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
Comment
Question by:anjala
3 Comments
 
LVL 17

Expert Comment

by:dorward
ID: 6279566
Not entirely sure but I would try using a boot disk then rebuilding the kernel (or upgrading to the the latest version).
0
 
LVL 14

Accepted Solution

by:
xberry earned 50 total points
ID: 6285277
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
 

Author Comment

by:anjala
ID: 6292136
thanks a lot ! ! 1
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question