LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-07-2007, 05:14 PM   #1
ericcarlson
Member
 
Registered: Jan 2002
Posts: 161

Rep: Reputation: 30
Recovering GRUB on dual boot XP/RH box


Heres exactly what I did: I installed W2003 on a 20G disk and told it to use only 10G. Then I installed RH6 in the other 10G and got the nice GRUB menu letting me boot either. Then I got a virus with W2003 and realized I didn't want it as AVG wouldn't work, so I just installed XP from a boot CD and told it to hose the W2003 partition. That worked, but its taken out GRUB! I know I have a fully working RH system on the other partition so just need to get GRUB back. This must be easy without needing a full RH install again - right? Thanks in advance.
 
Old 02-07-2007, 05:58 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
You should be able to boot from the Redhat install disk and get into you Linux from there. Since the grub config file is already setup, all you need to do is get grub back in the mbr.

When the install CD boots up, see if you can get to a terminal using ctrl-alt-F1. If so, then do this:
(assumes IDE disk with Windows on partition 1, and Linux on 2)
Code:
grub    starts the grub shell
root (hd0,1)   tells grub that /boot is here  (note that grub counts from zero)
setup (hd0)   puts grub on the mbr
 
Old 06-05-2007, 07:55 PM   #3
jot
LQ Newbie
 
Registered: Aug 2004
Location: Singapore
Distribution: Ubuntu and Fedora
Posts: 25

Rep: Reputation: 0
Thumbs up it worked

Since Eric didn't reply, I just want to let others know - it perfectly works!

One little hint: be careful when typing the grub commands. It does not tolerate missing or extra spaces. So type exactly as what pixellany has written.
 
  


Reply

Tags
dual boot, grub


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
recovering from grub-install /dev/hda1 deleting windows XP boot loader Steve Mading Linux - Software 7 02-22-2010 07:53 PM
LXer: Howto: Recovering grub boot loader password LXer Syndicated Linux News 0 02-22-2006 04:16 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Removed Second HD with Dual-Boot RH9/XP Box; Now Grub Won't Load MadFunk Linux - General 1 01-05-2004 06:29 PM
recovering from Window crash in dual boot vinod_0005 Linux - Newbie 3 10-08-2003 02:38 AM


All times are GMT -5. The time now is 02:01 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