Solved

Recovering /boot directory

Posted on 2001-07-12
3
176 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 Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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 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.:

733 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