LinuxQuestions.org
Help answer threads with 0 replies.
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 01-09-2003, 05:59 PM   #1
nyroc
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Rep: Reputation: 0
Repair grub?


I installed XP, then RH8 on a 10gb hard drive months ago.

I upgraded XP to .Net Server, which overwrote the MBR.

I used fdisk to set the first linux partition as active, but when I boot I get the message:

GRUB

and nothing happens.

Is there any way to fix this? I am not afraid of a little work. I want to know how to do this the good way rather than reinstall RH8.

Also, should I have installed linux differently the first time around, with the boot loader in hda2? Is that what I did wrong? I think I am using hda3 as ext3, hda4 as swap, hda2 as boot loader and Winblows is on hda1.
 
Old 01-09-2003, 06:50 PM   #2
nyroc
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Original Poster
Rep: Reputation: 0
I fixed it. sorry for making people look.

1. I booted from a linux install disk but typed linux rescue
2. I wound up in a temp shell
3. I typed chroot /mnt/syslinux (my real hard drive was mounted there, this allowed the use of grub commands)
4. /sbin/grub
5. root (hd0,1) this means first drive, second partition, the partition I want the bootloader in
6. setup (hd0,1) after I type this and got a successful message, I rebooted and saw my dual booting configuration back exactly as is was before I installed microoverpricedforabuggyoperatingsystem.
 
  


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
howto repair GRUB using debian setup CD ? cccc Linux - Distributions 4 11-06-2010 06:00 AM
repair console pansarevaibhav Linux - Newbie 1 10-15-2005 01:58 PM
repair 10.1 ??? d1l2w3 Mandriva 1 04-10-2005 10:27 AM
GRUB repair on dual boot system NickTheBubble Linux - Newbie 2 10-07-2004 01:06 PM
Grub repair Snake007uk Linux - General 13 05-10-2002 07:14 AM


All times are GMT -5. The time now is 05:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration