Solved

Recovering /boot directory

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

Expert Comment

by:auther_bin
ID: 6283658
 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
ID: 6286780
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
ID: 8433049
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
ID: 8492615
per recommendation.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

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