LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2006, 06:48 AM   #1
vineet7kumar
Member
 
Registered: Aug 2005
Posts: 75

Rep: Reputation: 15
reinstalling grub


my friend had successfully installed windows and fc3 . after that on installing directx9 in windows the system rebooted showing

grub>

prompt.
no OS can be loaded . i supos there is a problem now with grub . how to reinstall it now?
if there is some other problem what can it be?

thanx.v
 
Old 01-10-2006, 07:29 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
At the grub prompt type:
grub> find /boot/grub/stage1

the answer is something like this: (hdx,y) where x and y are numbers. write down theses numbers. You need to replace x and y in the following commands:
grub> root (hdx,y)
grub> setup (hdx)
grub> quit

now reboot your computer again. this time, if nothing else was corrupted, you will get the grub menu again.

regards

Last edited by marozsas; 01-10-2006 at 07:31 AM.
 
Old 01-10-2006, 07:57 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,363

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
I suspect that you'll need to adjust the instructions above to use "setup (hd0)", so grub can be rebuilt in the MBR of the boot disk.
If you use some other number for "x", you'll hit the MBR on the wrong disk.

The grub prompt indicates it's already there.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstalling grub. greythorne Ubuntu 23 12-03-2005 01:51 AM
GRUB not reinstalling jboo Linux - Software 5 10-02-2005 10:55 AM
Reinstalling grub darkangel29 Linux - Newbie 3 04-03-2005 05:53 PM
reinstalling grub ELconkestador Linux - Software 1 02-12-2005 10:22 PM
Reinstalling GRUB Petelow Linux - Newbie 1 05-24-2004 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:54 PM.

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
Open Source Consulting | Domain Registration