?
Solved

My linux server that is running 3.0 redhat AS has lost the grub.conf file configration and can not boot to os

Posted on 2006-06-09
4
Medium Priority
?
391 Views
Last Modified: 2013-12-06
All you Linux experts I have a machine with 3.0 redHat AS that has lost the grub.conf file i need to recreate this file Please Help !!!! I have try the solutions that are posted on google but that did not worked .Please let me know How can i recreate that file .Please HELP >>>>>>HELP>>>>>>>HELP>>>>>>HELP
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0
Comment
Question by:kaka123
[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
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
sundeepgopal earned 1000 total points
ID: 16875827
Can you see a copy like grub.conf.rpmsave  in /etc??
It is a copy of your grub.conf ...

 If not use a rescue disk ... note the kernel version ..go to  /boot and check the files    vmlinuz-2.6.9-5.EL(something like this)  and initrd-2.6.9-5.EL.img

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/hdc1
#          initrd /boot/initrd-version.img
#boot=/dev/hdc
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-5.EL)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.9-5.EL ro root=LABEL=/ rhgb quiet
        initrd /boot/initrd-2.6.9-5.EL.img


Change the last two lines accordingly
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16878813
You may find that this file is in:

/boot/grub/  rather than boot

If you are uncomfortable with repairing this file, or if the problems are more sever, you may be able to use your install discs to 'upgrade' your installation.

HTH:)
0
 

Author Comment

by:kaka123
ID: 16887605
Thanks for the reply...

I have tested the above fix and that did not work .Any other ideas or stuff that I can try .Any help will be appreciated.

Thanks,
0
 

Author Comment

by:kaka123
ID: 16937938
On furtther troubleshooting we found that the /etc/rc.d/rc.sysinit  also got zero out.so we had to recreate the file in order to recreate this file we needed to install all the scripts again ....so we uninstalled or remove the scripts by running the command rpm -e initscripts  --nodeps  And then i run the up2date initscripts to install all scripts again .
After installing all the scripts i did the kernel upgrade for that i run the command  up2date -f kernel-smp and that updated the kernel and then rebooted the machine .....Everthing worked after the reboot .....
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
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…
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.
Suggested Courses
Course of the Month15 days, 7 hours left to enroll

743 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