Unix/Linux Go Back    


Boot Loaders Discuss GRUB, BURG, UEFI, GPT, Mac EFI, GRUB2 and other topics about boot loaders.

GRUB restart issue

Boot Loaders


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-13-2011   -   Original Discussion by kopper
kopper's Unix or Linux Image
kopper kopper is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 30 November 2011, 1:51 PM EST
Posts: 39
Thanks: 14
Thanked 2 Times in 2 Posts
GRUB restart issue

hi guys

I have an issue with my grub configuration
I see I have this in my menu.lst file



Code:
default=0
timeout=1
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-238.19.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-238.19.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-238.19.1.el5.img

but every time I reboot my server is not able to boot up it get stuck at this GRUB prompt


Code:
grub>

and I have to manually boot the system up with


Code:
grub> root (hd0,0)
grub> kernel /vmlinuz-2.6.18-238.19.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
grub> initrd /initrd-2.6.18-238.19.1.el5.img
grub> boot

any idea how to reload or make my menu.lst file active again?

thanks a lot guys
Sponsored Links
    #2  
Old Unix and Linux 09-13-2011   -   Original Discussion by kopper
Corona688's Unix or Linux Image
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 19 April 2018, 5:37 PM EDT
Location: Saskatchewan
Posts: 22,635
Thanks: 1,172
Thanked 4,306 Times in 3,972 Posts
Did your menu.lst work before, then stop working after these modifications?

Can we see your complete menu.lst ?
Sponsored Links
    #3  
Old Unix and Linux 09-13-2011   -   Original Discussion by kopper
kopper's Unix or Linux Image
kopper kopper is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 30 November 2011, 1:51 PM EST
Posts: 39
Thanks: 14
Thanked 2 Times in 2 Posts
got it working guys

since menu.lst was OK Linux

I did these 2 commands and now I got it working



Code:
grub-install /dev/sda
install (hd0,0)/grub/stage1 d (hd0) (hd0,0)/grub/stage2 p (hd0,0)/grub/menu.lst

for the second command you will need to invoke grub at shell so grub> will show up
and insert the command

Last edited by kopper; 09-14-2011 at 02:16 AM..
The Following User Says Thank You to kopper For This Useful Post:
Corona688 (09-13-2011)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Restart a Service!! linuxaddict7 Shell Programming and Scripting 5 09-08-2009 03:13 PM
Grub screen issue while booting...... Amol21 Red Hat 5 07-27-2009 11:28 AM
grub problem- keeps rebooting as soon as it tries to do grub moesays UNIX for Dummies Questions & Answers 1 11-07-2007 04:46 AM
grub help seshumohan Linux 8 02-02-2007 05:03 PM
Getting rid of grub jad Debian 4 07-04-2006 10:57 AM



All times are GMT -4. The time now is 07:22 PM.