Solved

Recovering /boot directory

Posted on 2001-07-12
3
168 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now