LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-18-2006, 06:34 AM   #1
crofty13
LQ Newbie
 
Registered: Feb 2005
Location: Thailand
Posts: 28

Rep: Reputation: 15
Xp broke my Master boot record.


I am running dual boot on my PC, Redhat Ent 4 and Win XP.

I had to reinstall Xp and it has now overwritten the MBR so I cannot access Grub it just boots straight from the C:/ drive instead of the /boot partition.

How can I get it back? Is there any software for repairing the MBR?
 
Old 06-18-2006, 07:40 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Boot with the Installation media into rescue mode by typing 'linux rescue' minus the single quotemarks when the menu screen is displayed. Answer a few question and read the on-screen messages. Pay extra attention to the chroot screen, and follow the advice. When ready type something like;

/sbin/grub-install --recheck /dev/hda

When done type 'exit' (twice) and reboot.

Last edited by Lenard; 06-18-2006 at 07:41 AM.
 
Old 06-18-2006, 11:23 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Things like the Ultimate Boot CD--or any "live Linux" such as Knoppix will have utitilies for reinstalling GRUB.

One suggestion: Put GRUB on a floppy--when you reinstall window, you will still be able to get into Linux.
 
  


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
Dual boot Linspire & Win XP - new master boot record? jimbo5454 Linux - Newbie 5 07-23-2006 12:06 AM
master boot record help sfr7 Linux - Laptop and Netbook 10 04-25-2004 08:52 AM
Master Boot Record linuxuser05 Linux - General 3 01-11-2004 06:57 PM
master boot record alaios Linux - General 1 04-22-2003 08:41 AM
master boot record dark_light Linux - General 11 07-03-2002 05:21 AM


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

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