Solved

Recovering /boot directory

Posted on 2001-07-12
4
204 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
4 Comments
 
LVL 1

Expert Comment

by:auther_bin
Comment Utility
 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!

:)
0
 
LVL 5

Accepted Solution

by:
garboua earned 50 total points
Comment Utility
LOL,
well if you have the CD, boot with it and tell installation that you are upgrading, It will reinstall LILO, Kernel Image and kernel hearders.  Unless you have a custom build kernel.  
Ps  try not to work on box using root login, use one of your other accounts, and you can always "su" if you need.
0
 
LVL 9

Expert Comment

by:majorwoo
Comment Utility
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
0
 

Expert Comment

by:SpideyMod
Comment Utility
per recommendation.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

13 Experts available now in Live!

Get 1:1 Help Now