Solved

Recovering /boot directory

Posted on 2001-07-12
3
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

717 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