LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2013, 04:31 AM   #1
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
grub issue


Hi,
i need help related to grub..
basically i deleted my grub.conf file from /boot/grub/grub.conf..... but now when i am trying to recover it show me sucessfully done but when i restart my machine it shows me grub> .. plz help .. how can i reinstall grub... i have tried using grub-install and chose right disk and i have done in centos 5 and cent os6. plz tell me if u need any other information .. my machine is stuck at grub> only. thanks in advance...
 
Old 07-28-2013, 05:22 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,255

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
So have you done:
Code:
grub-mkconfig -o /boot/grub/grub.cfg
 
Old 07-28-2013, 05:27 AM   #3
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
but this command id not available.. or plz tell me how to run dis command.

but this command id not available.. or plz tell me how to run dis command.
 
Old 07-28-2013, 09:07 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
If you had a grub.conf file, then you are using Grub Legacy and you should be able to reinstall Grub from the CD you used to install CentOS. Another CD with Grub Legacy should work also. If you know the drive/partition where your boot files are it should not be a problem. You didn't indicate how many drives/partitions you have so if you have your CentOS on sda1 and want Grub in the mbr of sda you could use, from the grub prompt (grub>):

Quote:
root (hd0,0)
setup (hd0)
quit
You will need to make the appropriate changes for partition/drive.
 
Old 07-28-2013, 09:40 AM   #5
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
grub issue

Hi,

I have tried.
Code:
root (hd0,0)
setup (hd0)
quit
but of no use..
again when i restart my centos it again comes to grub> ..
my boot partition is /dev/sda1...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] grub issue dushyantgohil Linux - Newbie 3 10-26-2012 12:37 PM
[SOLVED] another grub issue r_s Linux - Newbie 2 01-25-2011 05:20 AM
Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue wombat53 Linux - Software 9 09-04-2009 07:20 AM
Grub Issue mjwhitby Linux - General 3 02-25-2005 09:52 PM
GRUB issue Galileo430 Linux - Newbie 3 04-07-2003 04:19 PM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration