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
384 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
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
sundeepgopal earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
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 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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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

10 Experts available now in Live!

Get 1:1 Help Now